as you can see from the log, i got 1 fill for entry. next i am trying to place exit orders for stop and target. the exit order for target goes through but the exit order for stop gets rejected. i have attached my code from onExecution.
2016-01-25 11:07:50 AM Strategy 'MA_pullback/60300671': Entered internal SubmitOrderManaged() method at 2016-01-25 11:07:50 AM: BarsInProgress=0 Action=Buy OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='long1069' FromEntrySignal=''
NinjaScript strategy 'MA_pullback/60300671' submitting order
2016-01-25 11:07:51 AM Strategy 'MA_pullback/60300671': Entered internal SubmitOrderManaged() method at 2016-01-25 11:07:51 AM: BarsInProgress=0 Action=Sell OrderType=MIT Quantity=1 LimitPrice=0 StopPrice=1.0837'1 SignalName='exit targetlong1069' FromEntrySignal='long1069'
NinjaScript strategy 'MA_pullback/60300671' submitting order
2016-01-25 11:07:51 AM Strategy 'MA_pullback/60300671': Entered internal SubmitOrderManaged() method at 2016-01-25 11:07:51 AM: BarsInProgress=0 Action=BuyToCover OrderType=StopMarket Quantity=1 LimitPrice=0 StopPrice=1.0827'3 SignalName='exitstoplong1069' FromEntrySignal='long1069'
2
protected override void OnExecutionUpdate(Cbi.Execution execution, string executionId, double price, int quantity,
Cbi.MarketPosition marketPosition, string orderId, DateTime time)
{
if (entryOrderlong != null && entryOrderlong == execution.Order)
{
Print(entryOrderlong.FromEntrySignal + " " + signal);
exittargetlong=ExitLongMIT(0, true, entryOrderlong.Quantity, price+atrValue, "exit target" + signal, signal);
exitstoplong= ExitShortStopMarket(0, true, entryOrderlong.Quantity, EMA(22)[1] - ATR(14)[1], "exitstop" + signal, signal);
}
}

Comment