Hi All,

I have attached a backtest that shows an example situation where my order is not filling due to insufficient buying power. I have a suspicion it is due to my one cancels the other order function (Taken from: https://www.quantconnect.com/forum/discussion/1700/support-for-one-cancels-the-other-order-oco/p1, thank you JayJayD)

The console shows an error, and the logs show the buying power is reduced, even though there are no open holdings/cash.

Could someone please help me submit the order of NVEE in the attached backtest with OCO orders. The goal is to create an algo that OCO orders can be created, but the entire portfolio (and pending orders) can also be liquidated/cancelled separately

Author