I have a strategy in tradingview that enters every time this condition is true, but I only need to enter the second occurrence of this condition
LongCondition = (wasOverSold and crossoverBull) and up_trend == false
the LongCondition
gets true only on the exact candle where the blue cross appears (macd crossover), after that it is gets false all the time.
I already have tried using the history-referencing operator enter = LongCondition[1] ? true : false
but it just delays the buy entry.
how can i find that second occurrence every time after an enter exit?