Today, while running my strategy Ninja threw the following error: Order can't be submitted: order status is ChangePending (See the SS "Error message"). After, it also automatically closed the strategy.
After checking logs I could see that the initial entry order of 314 stocks Long was partially filled (only 214 out of 314). Since it's a managed Long order with OCO orders attached, it has generated the ProfitTarget and the StopLoss orders accordingly.
However, it seems like the ProfitTarget order failed to change from 214 to 314 for some unclear reason, which I was not able to tackle.
I also checked the IB log, but was unable to get to the bottom of it.
Attaching here all the relevant info (IB, NT logs and the error message).
Hope that you can clarify the situation and provide a remedy.
Thanks in advance,
Dmitry
Comment