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

[amibroker] Re: Is it possible to color only certain bars in a price chart based on criteria?


  • Date: Fri, 01 Jan 2010 15:43:17 -0000
  • From: "Alan" <alan@xxxxxxxxxxxxxx>
  • Subject: [amibroker] Re: Is it possible to color only certain bars in a price chart based on criteria?

PureBytes Links

Trading Reference Links


Try this!

//start code
UL = Param("Upper price limit", 1080, 0, 200000, 1, 0);
LL = Param("Lower price limit", 1000, 0, 200000, 1, 0);
RANGECOLOR = ParamColor("Range color", colorRed);
OTHERCOLOR = ParamColor("Out of Range Color", colorBlue);
Color = IIf( (High > LL) AND (Low<= UL) , RANGECOLOR, OTHERCOLOR);
Plot( Close, "Close", Color, styleBar ); 
//end code

Regards,
Alan

--- In amibroker@xxxxxxxxxxxxxxx, Potato Soup <potatosoupz@xxx> wrote:
>
> Say if I want all bars that are between a certain range to be red and the rest blue, or something like that. Is that possible in AB?
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/