Hi there!
Writing a longer and more complex code, I got the following message: "Error! File exceeds the maximum size of 64k characters."
I was not able to find this error discussed anywhere, hence this discussion.
Is this (rather low) 64k character limit per python file a hard limit that will remain the same in the future?
I am currently trying to separate the complexity of the strategy between different files and modules, to stay under the limit.
I may however reach another limit soon: does the 200kb limit is still there for an algorithm without using the partial class trick?
(see
https://www.quantconnect.com/forum/discussion/507/why-limit-the-size-of-the-algorithm-to-200k/p1
)
Thanks, and keep up with the good work!
Laurent Crouzet
Hum, it is almost a week and no answer: maybe you missed my questions above (first about the current limit of 64k characters per file, second about the 200 kb limit)?
No hurry, but the 64k characters limit can be somewhat burdensome for complex strategies, hence the questions above...
Derek Melchin
Hi Laurent,
Yes, the 64K characters is the hard limit will remain in the near future.
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.
Laurent Crouzet
Thanks, Derek Melchin !
So you advise to split the more complex strategies into multiple (potentially many) files, right?
Derek Melchin
Hi Laurent,
That's correct.
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.
Laurent Crouzet
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!