I have an ATM strategy set and I want to place two orders: one on the upper edge and one on the bottom edge of that range and I want use my pre-defined ATM strategy. I have chosen my ATM strategy, I right-click on the upper edge and choose "Buy Stop Market" and the first order is set. Now I right-click on the bottom edge and choose "Sell Stop Market" but Ninjatrader refuses that second order with the error message:
You can't submit an exit order to a strategy until any of its entry orders has been filled.
I then tried following: in ATM I did explicitly choose my ATM strategy but not the upper one which was already marked with the "lightning" symbol and indicated "active". By this I can put the second stop order on the bottom edge but --> whenever one order gets filled the other remains. My goal is that the second order automatically will be removed at the time the first order is filled. Simply said: One-cancels-other. It doesn't work however.
How can this be accomplished? any help appreciated.
Patricia
EDIT: I think I've solved it I forgot to enable the OCO function before submitting the two orders. So the steps are:
1) enable OCO-order by either right-clicking into the trading window or using CTRL-Z hotkey. This will enable and light up the green OCO button.
2) selecting the desired ATM1 strategy and then place the 1st order
3) re-selecting the desired ATM1 (not the active one which is indicated by a lightning!) and then place the 2nd order
4) deactivate OCO function again so the green OCO-button will disappear
Hope that's correct but it worked for me. Attached a few How-Tos related to this topic:
https://ninjatrader.com/blog/oco-why...-other-orders/
Comment