- I don't get any errors in playback mode.
- The main (triggering) order is being placed in OnBarUpdate().
- The stop is being placed with ExitLongStopMarket() in OnExecutionUpdate()
- The Strategy Analyzer is set to use "Tick Reply"
From all the old posts about this error that I found, I would think that using Tick Reply would avoid this issue. But apparently not.
One solution I saw was to use High Order Fill Resolution set to 1 Tick, but I'm using multiple data series, so I can't do that. I assume "Tick Replay" is basically the same thing? (Yes?)
I'm printing some info inside the OnExecutionUpdate() method, right before trying to set the stop order...
- The main (long) order has a fill price of 4276
- Trying to place the stop order at 4273
- The H/L/C of the current bar (using High[0], Low[0] and Close[0]) print out H:4276, L:4272 and C:4276 --- so even though the stop is above the low of the bar, it's still below the current price (the close)
Questions:
- Shouldn't using Tick Reply allow this?
- Is using High[0], Low[0] and Close[0] "accurate" per tick when using Tick Reply (rather than the High/Low/Close of the finished bar)?
- Is using Close[0] a valid way to get the current price or is there a better way?
Any ideas?
Thanks!
In case it's helpful, here are my Backtest settings:

Comment