View Full Version : Coloring Historical bars
03-23-2007, 12:20 PM
I'd like to be able to color a bar say that is 5 periods earlier than the currentbar when certain conditions are met on the current bar. So for example if the 12 bar sma drops below the 20 bar ema then I'd like to color the bar 5 periods before this happened. I know that you can colour the current bar using barcolor but can you somehow do something like barcolor(5) to color the bar 5 periods prior?
03-23-2007, 07:01 PM
Unfortunately this is not support by NT right now. We'll put it to our list of future considerations. Thanks for your suggestion.
03-24-2007, 04:08 AM
Instead of implementing as bar color, you could implement as a plot using DOT style. If the bar is not colored, you would not set a plot value.
To set the value of the current bar:
To set the value several bars ago:
plot.Set(int barsAgo, double yValue);