Create a new custom indicator naming it something like Price (color_range).
Then copy and paste the following code into it and save.
//start code
UL = Param("Upper price limit", 18, 10, 500, 1, 0);
LL = Param("Lower price limit", 10, 10, 500, 1, 0);
range = High - Low;
Color = IIf( range < UL AND range >= LL , colorRed, colorBlue);
Plot( Close, "Close", Color, styleBar );
//end code
By default all bars between the range of 10 and 18 will be red all
others will be blue. You didn't specify the range so I just used these
limits which can be changed in the code. I used the S&P500 Index to
test the code.
Hope this is what you were looking for.
Regards,
Alan
Potato Soup 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?
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4733 (20091231) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com