I'm starting to work with unmanaged orders and I 'm getting my first errors.
When submitting the order I get this error: "**NT** Error on calling 'OnOrderUpdate' method for strategy 'HFTSimple/5ec21fb573094c7d9525423c79ed8173': Object reference not set to an instance of an object."
The submit order that gives the error is:
MyExitOrder = SubmitOrder(0,OrderAction.BuyToCover,OrderType.Lim it,Position.Quantity,AskPrice,0,"AllOrders","");
This Submit is done after cancelling a previous Limit order to take profits:
CancelOrder(ProfitLimit);
Comment