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-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of sdp_51
Sent: Sunday, 22 October 2006 3:45 p.m.
To: [email protected]
Subject: [amibroker] coloring candlesticks according to code?

 

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
Software support Small business finance Business finance online
Business finance training Business finance course

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

__,_._,___

Reply via email to