That was the behavior I was seeing with my earlier tests.
The correct way to handle the second order submission intra bar would be to submit orders to a single tick data series, and the 2nd market order would trigger on the tick that fills the order.
However, it is convenient that you see the 2nd entry on the same bar, and gives you an intended result without adding the intrabar granularity. You are welcome to do that with backtesting if it is convenient for you, but I would not suggest it as a regular way to write a strategy.
Comment