I'm using a few criteria in my strategy that must all be set to true before a trading signal is generated and an arrow is drawn on the chart.
if (Criteria1 == true && Criteria2 == true....)
Draw UpArrow etc.
In order to avoid having two subsequent arrows in a row drawn on the chart, I'd like to address the previous candle by checking if its criteria were already set to true or not. If this is the case (If all criteria of the previous candle were set to true) do not draw another arrow on the chart.
How can I address the previous candle in its entirety (not just the Close or Open of it but the candle as a whole?
I usually use Close [1] or Open [1] to address the previous candle but this obviously won't work here.
Thanks

Comment