I am developing a strategy that moves Stop Loss to Breakeven after price moves certain amount of ticks but I have run into an issue when backtesting. During backtesting there is a situation when price moves sharply within the single bar and in that case stop loss is moved to breakeven which is fine. Problem is that stop loss is now higher than bar's low and it gets executed at the bar close although the current price is well above stop loss.
I'm using Calculate.OnEachTick.
Primary data series is 1 minute data on ES futures
I have added secondary data series (1 tick data) and I'm submitting orders to that data series in backtesting (as described in sample SampleIntrabarBacktest).
I have 2 questions:
- is this normal behaviour or it is a bug?
- can I work around this issue by using unmanaged approach (since I'm using Rithmic)?
Thank you,
FalcoTrader

Comment