I´m using version 8.1.3.0 of Ninjatrader to report the following issue I´ve encountered, and I attach 4 screenshots illustrating it.
Basically, I´ve got a script that places orders using this ... (I´m not using OCO):
accountLong1.Submit(new[] {longEntryOrder1}); // enters a long position
accountLong1.Submit(new[] {longProfitTargetOrder}); // sets profit target
accountLong1.Submit(new[] {longStopLossOrder}); // sets the stop loss
Looking at account SIM101 and when the stop loss order "longStopLossOrder" is FILLED the expectation is that the position "longEntryOrder1" should be automatically closed and all I have to do is to check for the FILLED signal in methoc OnExecutionUpdate() to make sure it´s done.
But, what actually happens is that in the control panel, the ORDERS and EXECUTIONS tabs show accurately "longStopLossOrder" is FILLED and done, however in the POSITIONS tab shows the long position on SIM101 still open and active instead closed, which I don´t think that´s correct?
Also, if I open new->Trade Performance report and filter by SIM101 it clearly shows SIM101 long position was closed just as expected and reported in the ORDERS and EXECUTIONS tabs.
Therefore, I think something must be wrong with the way Ninjatrader is reporting or updating POSITIONS information, or at least in my particular scenario?
This issue isn´t happening every single time, but obviously I want to make sure that in a real live account the position is really closed as reported by the ORDERS and EXECUTIONS info received.
Any support will be really helpful,
Thanks

Comment