Hi All,
From the recently live algorithm deployment I found that there is a new feature “Best effort restart if problems due to run time error ………”
I would like to ask in what extend this feature can cover? For example if there is run time error on client application that crash the algo, will QC try to restart the algo?
I have an example attached. I run it in paper account in the live mode. This algo will be crashed after 10 minutes due to a wrong index access. In the end, there is a run time error throws: IndexError : list index out of range.
It seems that the algo cannot be restarted. Is this expected ?
Thanks
Louis Szeto
Hi Ka Ho
This feature can cover user application run time errors. It will be redeployed after encountering run time error, for at most 5 times consecutively within 24 hours. To allow it redeploying successfully, please make sure your algorithm has all initialization state set in .initialize method. Note that your positions will not be liquidated and be held throughout the redeployment process.
In your case, it will likely repeat this error 5 times as it was an algorithmic mistake. Please make sure the code could run a backtest successfully before deploying live, as well as having all edge case conditions checked. For further inquiries on live trading, please contact support at support@quantconnect.com.
Best,
Louis Szeto
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.
Ka Ho Cheung
Hi Louis,
Thanks for your reply. From the log I saw, my algo hit the bug and get the run time error. After that there is no more restart. May be I should contact support for this case. Btw, would you mind telling me how you know that the restart limit is 5 per day?
Thanks
Louis Szeto
Hi Ka Ho
Thanks for reporting this problem. We're now working on this issue and hopefully get it fixed soon.
Best,
Louis Szeto
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.
Ka Ho Cheung
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!