I've been learning QC and Lean for about a month now and have completed the majority of the bootcamps. One thing that I find quite confusing is the fact that I've never found an example of a full algo using custom framework modules. Is this because that Lean comes with some basic components which work as-is for most algos? Or are most algos made by the community just not complex enough for custom modules to be useful? Thanks!
Karthik Kailash
From my experience it happens organically. You'll write an algorithm with everything in 1 class/file and then it will reach a point where it feels better to split up the functionality. Especially if you start wanting to reuse bits of code (e.g. universe selection) across different projects.
Derek Melchin
Hi Cody,
Some algorithms are better suited for the classic design since the framework requires the separation of concerns design principle to be held. When implementing a framework algorithm, it's not always necessary to build custom components for the entire framework. It just depends on if the strategy being implemented can utilize the pre-built components or not. For an example algorithm that builds 3 custom framework models into one algorithm, checkout this Strategy Library tutorial.
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.
Cody Gordon
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!