[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Re: highlighting Value Labels for highs and lows



PureBytes Links

Trading Reference Links

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: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of richcb750
Sent: Thursday, 29 November 2007 6:45 p.m.
To: amibroker@xxxxxxxxxxxxxxx
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 amibroker@xxxxxxxxxxxxxxx, "richcb750" <rwennis@xxx> 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






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

<*> 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:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/