PureBytes Links
Trading Reference Links
|
al183 you might want to try this and see if this is what you want. ColorYours = IIf( H > Ref(HHV(H,20),-1), colorGreen,IIf(L< Ref( LLV( L, 20),-1), colorRed , colorBlack) ); Plot(C, "close",ColorYours, styleBar); I think you want today's array High to be above the "highest high in 20 bars" that occured Yesterday, hence you need the Ref ( x, -1) function. Same with the low. Regards ChrisB
al183 <al183@xxxxxxxxxx> wrote: I just can't get the code right so would appreciate some help. I want a normal O,H,L,C bar plot in black except I want bars where High > HHV(H,20) are colored green and bars where Low < LLV(L,20) are colored red. Thank you.
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
Brings words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.
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
|