e.g. if Close is:
1.1103 / 1.1104 / 1.1105/ 1.1108 / 1.1109 / 1.1109 / 1.1111 / 1.1115
The indicator would show:
none/ 0.0001 / 0.0002 / 0.0005 / 0.0006/ 1.1109 / 0.0002 / 0.0006
I´m coding this:
If Close[0] != Close[1] myDataSeries.Set(Close[0] - Close[1]); else myDataSeries.Set(Close[0]);
How can you store a value and update it on each bar until condition set changes?
Comment