Does anyone experience this problem?
I run a simple automated strategy and about 1 out of 10 trades, NinjaTrader would not submit the stop loss and target order as expected. It has caused me a few losses because I can't babysit my trades all the time.
I looked into the trace file for the troubled trade and I found the following message:
2011-06-17 10:58:05:656 Cbi.Globals.
ProcessEventArgsInThreadContext, exception caught: Object reference not set to an instance of an object.: ExecutionUpdateEventArgs: Execution='MOS/0000d3eb.4dfb1a5a.01.01' Instrument='MOS' Account='U812429' Exchange=Arca Price=61.12 Quantity=18 Market position=Long Operation=Insert Order='685029527' Time='2011-06-17 10:58:05 AM'
To debug the problem, I have simplified my strategy to something like, and yet the problem persists:
OnBarUpdate() { if (position== flat), DoEntry(); }
DoEntry() { if (EntryConditionOK()) { SetStopLoss(...); SetProfitTarget(...); EnterLongStopLimit(); }
Does anyone has any insight in this problem?
So far, I have not received any intelligent response from NT support.
Comment