I have several up insights and ImmediateExcecution model
and the warning prevent the order to fill


you can see the project for detail; it could not reproduction in backtests
Don't have an account? Join QuantConnect Today
QuantConnect Community Discussions
QUANTCONNECT COMMUNITY
LEAN is the open-source algorithmic trading engine powering QuantConnect. Founded in 2012 LEAN has been built by a global community of 180+ engineers and powers more than 300+ hedge funds today.
Join QuantConnect's Discord server for real-time support, where a vibrant community of traders and developers awaits to help you with any of your QuantConnect needs.
The Open-Quant League is a quarterly competition between universities and investment clubs for the best-performing strategy. The previous quarter's code is open-sourced, and competitors must adapt to survive.
Order rejected due to closed exchange; insights and execution model affected, not in backtests.
Continue ReadingRefer to our Research Guidelines for high quality research posts.
Create an account on QuantConnect for the latest community delivered to your inbox.
Sign Up Today
|
|
|||||||
|
|
||||||||
|
Brokerage Warning: Order rejected - reason:Exchange is closed..
李元骏 | yuanjun.li | December 2024
I have several up insights and ImmediateExcecution model
and the warning prevent the order to fill
you can see the project for detail; it could not reproduction in backtests
QuantConnect™ 2025. All Rights Reserved
李元骏
here is the backtest sample
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.
Mia Alissi
To resolve the issues in the code, you should make the following changes:
Import the
api
module: Ensure that theapi
module is imported or defined. If it's a custom object, make sure it's initialized properly.Import
timedelta
from thedatetime
module: Add the import statement fortimedelta
to handle date and time calculations.Import the
math
module: Add the import statement for themath
module to use its functions.Type Conversion: Ensure that the types match or perform necessary type conversions where a float is being assigned to an integer variable.
Here's how you can modify the code:
Ensure that the
api
object is correctly initialized or imported based on your specific setup.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.
Alexandre Catarino
Hi 李元骏,
Thank you for your patience.
When we place orders at 4 PM, the brokerage receives them when the market is closed. Unfortunately, some brokerages don't accept market-on-open orders during the first few minutes or hours after closing the market.
The easiest way to address this issue is to set daily_precise_end_time to False in live mode:
or set it to False regardless:
Best regards,
Alex
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.
李元骏
Thank you, I'll try it and observe continuously for a week, grateful for your reponse
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!