- Once submitted, the orders that make up the OCO group cannot be modified
- OCO orders need to submitted in pairs
Currently I am submitting to orders using the SubmitOrderUnmanaged() method, one for the StopLoss order and another for the TargetProfit order. Both orders are sharing the the OCO string and they are both getting triggered once the entry order has been reached execution.Order.OrderState == OrderState.Filled within OnExecutionUpdate() method. The pair is getting submitted by two separate SubmitOrderUnmanaged() calls. Does this constitutes the OCO pair that ThinkOrSwim is expecting?
Comment