Hi,
I'm trying to create a balance of power indicator which has a simple
formula but I want to display it in a somewhat complex way.
I want to plot the parts over a certain value in green, those in a
range in yellow and those below a certain value in red.
here is my code:
THL = IIf(H != L, H - L, 0.01);
BOP = (C - O)/THL;
col = IIf( Ref(BOP,-1) > .1, ParamColor("Bulls",colorGreen),1);
col = IIf( col=1 & Ref(BOP,-1) < -.1,ParamColor("Bears",colorRed),1);
col = IIf( col=1 & Ref(BOP,-1) > -.1,ParamColor
("Indecision",colorYellow),1);
Plot(BOP, "BOP", col, styleHistogram | styleThick | styleArea);
It doesn't work. The syntax checks out according to AB but the graph
doesn't display correctly. All the bars are yellow, and there are
gaps in it, which I am assuming are supposed to be the other color
parts of the indicator. However, I also notice that though in my
code, anything over .1 should be green and those under -.1 should be
red, the yellow bars are all over the place, within the range and
above and below those limits. Can anyone help?
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/