I am currently developing my strategy in ninjatrader8.
When I analyze my strategy in Strategy Analyzer, I found out that even though most orders are captured correctly, few orders which I submitted in OnBarUpdate() method are not reflecting (or maybe I can say they are not captured) in OnOrderUpdate() method.
Is there anything special with submitting order in onBarUpdate() method which I omitted here. Appreciate your support. Thank you.
This is the command I used to submit order in OnBarUpdate() method:
EnterShortStopMarket(0,true,Convert.ToInt32(Defaul tQuantity), (Low[0] - (TickSpace * TickSize)) , @"IB Short");
And this is the command which I expect to be executed in OnOrderUpdate() method:
if(order.Name=="IB Short")
{
shortOrder = order;
Print(string.Format("{0} | IB Short Counter: {1} | On Order Update: {2} ", Time[0], barCounter, shortOrder.ToString()));
}
Comment