I enter strategy based on values at candle (-1). Now if at candle (0) if I hit stop loss, I exit the condition.
But what happens is that because of every one minute condition check. I enter the strategy again because the condition at candle(-1) is still true and the current candle is not finished (This sort of is creating a loop of entry & exit in the candle at 0 ).
How can I avoid this, I still want a condition check at every minute most because to calculate Stop Loss?