Long buy:
fills at 100.00
stop entered at 99, limit at 101
limit filled at 101 on the same bar as the position opened.
In some cases this is fine since the bar open and was filled near the lower range of the bar and hit 100 before the price moved to 101 and closed above moved through 101 as the bar was being created.
But in a case where the bar opened at 101.5, moved down and closed at 99.5 both the sell and the buy orders were shown to be triggered even though the price never saw 101 after it hit 100.
I understand this is a problem with backtesting in a strategy, since it trades correctly in Market Reply. And Strategy Analyzer doesn't know the price history, just the OHLC.
My question is, what change can I make to make the test results in the Strategy Analyzer to more accurately reflect the actual trade?

Comment