Think I need NinjaTrader support help.
I a have simple situation: the current price and two levels-above and below the price.(Let's say "LevelPlus1" and "LevelMinus1").
If EMA of price crossabove or crossbelow the levels-TP or SL is triggered. Other order is cancel by OCO.
Now, "version A (with limit order)"
...Unmanaged = true;
TraceOrders = true;
if (SELL != null
&& SELL.OrderState == OrderState.Filled
&& TPafterSELL == null
&& SLafterSELL == null
&& ((EMA(15)[0] >= LevelPlus1) || (EMA(15)[0] <= LevelMinus1)))
{TPafterSELL = SubmitOrder(0, OrderAction.Buy, OrderType.Limit, 1, LevelMinus1, 0, "1", "TAKE PROFIT");
SLafterSELL = SubmitOrder(0, OrderAction.Buy, OrderType.Stop, 1, 0, LevelPlus1, "1", "STOP LOSS");}
and,"version B (with market order)"
...{TPafterSELL = SubmitOrder(0, OrderAction.Buy, OrderType.Market, 1, LevelMinus1, 0, "1", "TAKE PROFIT");
SLafterSELL = SubmitOrder(0, OrderAction.Buy, OrderType.Stop, 1, 0, LevelPlus1, "1", "STOP LOSS");}
Please look at attached screenshots. I don't know what is the right decision.Please help.Thank You in advance.

Comment