I am using: NinjaTrader Version 8.0.26.0 64-bit
My strategy uses unmanaged orders.
This is a problem in Strategy Analyzer. It works when running on a chart with live data.
An order is filled with a OCO stop loss and profit target orders placed in the OnExecutionUpdate.
If the entry bar then crosses a profit level (only 1 point away) and moves the stop loss and the next bar is higher than the new stop loss, the Stop Market order does not execute until the price descends to the Stop Market Order.
Attaced are two examples of the same time period. The first fails. The second with slightly wider stops succeeds.
Entry is at 12/5/2022 23:41 and should exit at 23:42. Failure exit is 13/5/2022 03:58
Example 1:
Example 2
Thanks for your assistance
Comment