I have a question about how NinjaTrader handles stop loss (SL) and take profit (TP) levels in backtesting.
Consider a scenario where I have an entry order, and in the same bar, both the SL and TP levels would be hit. I understand that with OHLC bar data, we can't know for certain the exact sequence of intra-bar price movements. How does NinjaTrader handle this situation in backtesting?
For example, let's say I have a 5-minute bar where:
- The open price is 100
- The high price is 105
- The low price is 95
- The close price is 103
And I place a long entry order at 100 with a SL at 98 and a TP at 102. Both the SL and TP levels would be hit within this bar. How does NinjaTrader determine whether the trade would be stopped out or reach the TP level first?
Any clarification on this matter would be greatly appreciated.
Best Regards,
Aviram Y.
Comment