ParamStyle function

asnavale

Well-Known Member
#2
I have seen a code where Plot function uses this

ParamStyle("Style", 0, maskAll )

Can you please tell what 0 and maskAll does ?

I have looked at the AFL Reference here : http://www.amibroker.com/guide/afl/paramstyle.html

But still not understood What is the impact of 0 and maskAll in the User Interface level.

Anybody have any pointer in this ?
Hi MP.

The value 0 in the second parameter means the style of the Plot is Line graph. A Line will be drawn instead of candles, bars or histogram, just like a moving average line.

Mask all means Show all allowed styles when you right click on the chart and select parameters. By default, Ami shows only thick, dashed, hidden, own scale styles.

-Anant
 

megapixel

Well-Known Member
#3
Hi MP.

The value 0 in the second parameter means the style of the Plot is Line graph. A Line will be drawn instead of candles, bars or histogram, just like a moving average line.
where do you get 0 = Line plot ? Its not written in the manual for ParamStyle . I may wish to check for values for other styles too ..Could you please post your source ?


Mask all means Show all allowed styles when you right click on the chart and select parameters. By default, Ami shows only thick, dashed, hidden, own scale styles.

-Anant
Thanks . This helped.
 

KelvinHand

Well-Known Member
#4
where do you get 0 = Line plot ? Its not written in the manual for ParamStyle . I may wish to check for values for other styles too ..Could you please post your source ?


Thanks . This helped.
Is written in the Plot function help guide:

style is a combination of one or more of following values:

styleLine = 1 - normal (line) chart (default)
....

logically, style = 0, suppose to mean no styles are selected. Could be internally it set default to 1. Otherwise amibroker don't know what to do.
 

megapixel

Well-Known Member
#5
Is written in the Plot function help guide:

style is a combination of one or more of following values:

styleLine = 1 - normal (line) chart (default)
....

logically, style = 0, suppose to mean no styles are selected. Could be internally it set default to 1. Otherwise amibroker don't know what to do.
Thanks ...This makes sense.

tell me one thing ...do I need to always put numbers there ? Can't I write just styleLine there in place of 0 ?

I'm saying this because styleLine is quite understandable but 0 is not....

Its just for my convenience ..
 
Last edited:

KelvinHand

Well-Known Member
#6
Thanks ...This makes sense.

tell me one thing ...do I need to always put numbers there ? Can't I write just styleLine there in place of 0 ?

I'm saying this because styleLine is quite understandable but 0 is not....

Its just for my convenience ..

look at the help guide:
- ParamStyle(''name'', defaultstyle = styleLine, mask = maskDefault )

stated defaultstyle = styleLine

if you are not using maskAll, then you can
megapixel = ParamStyle("megapixel"); OR
megapixel = ParamStyle("megapixel", styleLine); OR

if you are using maskAll, then you can use styleLine
megapixel = ParamStyle("megapixel", styleLine, maskAll);
 

megapixel

Well-Known Member
#7
Can anyone please tell why I'm getting this big line when I click on a candle in the chart ? I want to remove this line...want to keep my chart clean and nice looking.

 

KelvinHand

Well-Known Member
#8
Can anyone please tell why I'm getting this big line when I click on a candle in the chart ? I want to remove this line...want to keep my chart clean and nice looking.

The green & red vertical lines mark the starting and ending point, it is called range markers. if you zoom range, it will enlarge the range.

double click will cancel it.
 

megapixel

Well-Known Member
#10
Re: email password

Is it safe to put email password in AmiBroker >Preference> Alert?


Does this password saved locally or saved elsewhere location ?
 
Last edited:

Similar threads