tquinn
01-10-2007, 04:55 AM
I seem to be Thick Headed on this topic. I want an indicator, say MACD, where the Diff, plotted as bars, changes colors.
The idea is
if this bar > bar[1] then make (this bar) green else make it red
I've tried placing the Plots[2].Min=Diff[1] in the OnBarUpdate() method, thinking this would set the thresholds by comparing to the previous bar value.
It compiles and plots, but it still changes all history bars based on the current evaluation. I don't want to change the history, just the Current bar.
I know there is something simple I'm missing , just need some guidance I guess.
The idea is
if this bar > bar[1] then make (this bar) green else make it red
I've tried placing the Plots[2].Min=Diff[1] in the OnBarUpdate() method, thinking this would set the thresholds by comparing to the previous bar value.
It compiles and plots, but it still changes all history bars based on the current evaluation. I don't want to change the history, just the Current bar.
I know there is something simple I'm missing , just need some guidance I guess.