|
No problem. Just use a conditional statement for the third argument of
your Plot. The one below will plot "Up Days" in blue. For this
purpose, I define an "Up Day" as: a higher Close than yesterday; the
Close is greater than the Open; and, the Low is greater than the Low of
yesterday. Color = IIf(C > O AND C > Ref(C,-1) AND
Low > Ref(L,-1),colorBlue,colorRed); Plot(C,_DEFAULT_NAME(), Color ,64); Or this one, for RSI(7) crossing the assigned trigger
levels: Color = IIf(Cross(RSI(7),30),colorBlue,IIf(Cross(70,RSI(7)),colorRed,colorGreen)); Plot(C,_DEFAULT_NAME(), Color ,64); Regards, Gordon
Sutherland -----Original Message----- i want to color candlesticks according to some logic in my code, not whether down or up, is this possible? i hope so 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/ 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
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- [amibroker] coloring candlesticks according to code? sdp_51
- RE: [amibroker] coloring candlesticks according to ... Gordon Sutherland
- RE: [amibroker] coloring candlesticks according to ... Thomas Z.
- [amibroker] Re: coloring candlesticks according... scourt2000
- [amibroker] Re: coloring candlesticks accor... marketmonk777
- [amibroker] Re: coloring candlesticks a... marketmonk777
- RE: [amibroker] Re: coloring candlesticks a... Thomas Z.
- RE: [amibroker] Re: coloring candlesticks a... J. Biran
- [amibroker] Re: coloring candlesticks a... marketmonk777
- RE: [amibroker] Re: coloring candl... J. Biran
- Re: [amibroker] Re: coloring candl... Tomasz Janeczko
