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.
Comment