♥ 0 |
I have a simple backtest I’m trying to build that simply prints an arrow above the first candle the break out of the 5 minute opening range either high or low. I want to visually see it working before I move onto a strategy test. <code>def short_trigger_candle = if close < ORLow and close[1] > ORLow then close else double.NaN; plot STO_flag = short_trigger_candle; My problem is that this will happen more than once but I’m stuck as I can’t figure out how to evaluate if it’s already triggered or not before it’s called again on the next candle. Hope this makes sense and truly appreciate any help. Thank you!
Marked as spam
|
Please log in to post questions.