The background color for the plotted value in the right-hand margin (y-axis)
is controlled from the third argument of the plot statement (the array
color) and so you can use a conditional statement in the third argument.

I don't maintain intra-day data - just EOD, but the code below may give you
a clue as to how to conditionally color the y-axis background for the value:

Prds            = Param("Periods",20,2,250,1);
HV              = H == HHV(H,Prds);
LV              = L == LLV(L,Prds);
Plot( C , "" , IIf(HV,colorGreen,IIf(LV,colorRed,colorBlack )) , 64 );

Regards,

Gordon Sutherland

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of richcb750
Sent: Thursday, 29 November 2007 6:45 p.m.
To: [email protected]
Subject: [amibroker] Re: highlighting Value Labels for highs and lows

Anybody know if this can be done?  I'm talking about the price labels
that show up along the Y axis.  I'd like to make the background color
green when a new intraday high is hit and red for low.

Thanks.

--- In [email protected], "richcb750" <[EMAIL PROTECTED]> wrote:
>
> Is it possible to change the background color of the Price value
> labels when the price is at a high or low level? 
> 
> Thanks.
>




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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links




Reply via email to