I close the position with the following code.
IOrder orderExit = SubmitOrder(0, OrderAction.BuyToCover, OrderType.Market, position.Quantity, 0, 0, "", "ATR Exit");
I receive no OrderUpdate or OnExecution until I turn off the strategy.
I hear the terminal say Order Filled, and in fact there are no Positions left. But the strategy never gets notified until disabling.
Thanks,
Mary
Comment