1. Our version of NinjaTrader is 8.0.18.1 64-bit.
2. The strategy we're using is: SampleOnOrderUpdate.
3. When the position of the strategy is 1L it generates its stop and target orders.
4. If I disconnect the strategy and reconnect it again using Immediately submit as start behavior, it does not recognize old target and stop orders and generates new orders.
5. When stop loss order condition is met, then all stop loss orders are filled, but only the last target order is cancelled. This causes a short position in the account. The rest of target orders remain in a working state.
6. Looking in the forum, we found a "possible solution".
https://ninjatrader.com/support/foru...ses-connection
a. Activate Cancel exit orders when a strategy is disabled.
b. Set Handling = Keep Running
7. By doing this, the orders (target and stop loss) get cancelled when the strategy is deactivated,
When the strategy activates again, generate new stop and targets orders but at different prices.
We are using this strategy as an example for strategy development, because it uses Manage Approach to manipulate orders when resuming strategies.
So. it still doesn't solve our problem.
We hope you can help us. Thanks..
Comment