Please provide a workaround for "Stop Limit for Stop Loss" toggle in AtmStrategy unavailable for stocks.
(ref: https://ninjatrader.com/support/help...ed_options.htm)
Is this by design to discourage users from trading stocks? Stop limit exit must-have for stock trading outside RTH.
If not, could you please provide a working code snippet as a work-around.
Below work-around I tried does not work as intended, it generated 2 exit pair orders (2 stop limits and 2 limits), for each 1 entry order.
- Inside OrderUpdate event handler, use account.Cancel to cancel stop market order,
- use account.CreateOrder to create an order of type StopLimit
- create a bracket limit exit order using the same oco as the StopLimit
Comment