MarketOnOpen order is placed before market open. Why it cancels my order?
Do I need to set a boolean like IsMarketOpen before any trades?2020-12-03 05:48:05 :New Order Event: Time: 12/03/2020 05:48:05 OrderID: 127 EventID: 1 Symbol: SVXY Status: Submitted Quantity: -100 Message: Interactive Brokers Order Event2020-12-03 05:48:05 :New Order Event: Time: 12/03/2020 05:48:05 OrderID: 126 EventID: 3 Symbol: SVXY Status: Canceled Quantity: -100 Message: Interactive Brokers Order Event2020-12-03 05:48:31 :New Order Event: Time: 12/03/2020 05:48:05 OrderID: 127 EventID: 2 Symbol: SVXY Status: CancelPending Quantity: -100
Vidal boreal
I have solved it. I have used the liquidate() method to sell, but it could not complete the order. Then it is canceled because of the below explanation.
From Documentation:
You can liquidate individual stocks, or your entire portfolio using the
Liquidate()
method. When called without a ticker provided, it will liquidate all your holdings. If you have pending open orders, it will attempt to cancel them.Derek Melchin
Hi Vidal,
If this is still an issue, please contact support@quantconnect.com with the live deployment attached.
Best,
Derek Melchin
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Vidal boreal
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!