Hi, I am currently using QC with IBKR!
The algorithm I have deployed does some calculations at market close and places a market on open order a minute after market close, but I keep receiving “order rejected - reason: exchange is closed” errors.
What is the easiest way to get MOOs working if I would like to complete calculations at market close? I thought that MOOs could be placed >2 minutes before market open and they would work, but why is the order being rejected?
Thanks!
Mia Alissi
When using QuantConnect with Interactive Brokers (IBKR) and placing Market On Open (MOO) orders, it's important to align your order logic with the platform's requirements and scheduling capabilities. Here are some key points and solutions for your situation:
Order Placement Timing:
Solution: Use Scheduling:
Here's how you can use QuantConnect's scheduler to place the MOO order:
Considerations:
This approach aligns order placement with the exchange's open operations, avoiding closure rejection issues and ensuring your strategy runs smoothly.
Sources: Market On Open Orders - QuantConnect.com, Market On Close Orders - QuantConnect.com, Market On Open On Close Algorithm, Market On Close Order Buffer Regression Algorithm, Opening Range Breakout for Stocks in Play
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!