LEAN is the open source
algorithmic trading engine powering QuantConnect. Founded in 2013 LEAN has been built by a
global community of 80+ engineers and powers more than a dozen hedge funds today.
Alpha League Competition: $1,000 Weekly Prize Pool
Qualifying Alpha Streams Reentered Weekly Learn
more
I'm new to QuantConnect, and I want to get some practice using C# and programming/coding basic strategies. How would I do something like Joseph Greenblatt's Magic Formula?
From what I understand, I would need to run through all the securities in an exchange, add them to a data structure should they meet a certain market cap / trading volume requirement, then rank them separately in another data structure based on their P/E ratio and their ROI. Then, I would have the algorithm purchase the top 10 ranked securities in the data structure. Is that correct? This sounds very inefficient.
I'm very new to C# and QuantConnect and would appreciate any advice and tips.
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.
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 Mark,
With QuantConnect API, it is very easy and efficient to implement Joseph Greenblatt's Magic Formula!
We have a "Universe Selection" funcionality where you can select rank and select stocks based on fundamental data.
The following example is similar to Joseph Greenblatt's Magic Formula: we rank our coarse universe (by default US equities, but you can define others) by dollar value and select the top 5, then we rank these by its P/E ratio and take the top 2. Finally, we allocate 50% of our money on each security.
0
Michael Ark
63
,
I'll take a look into this. Thank you!
0
Stephen Oehler
8.1k
,
Hi Alex,
Does this mean that the Morningstar data is integrated?
0
Alexandre Catarino
,
Hi Stephen,
Almost there! As soon as it is done, Jared will make an announcement for the community.
0
Nithin vasireddy
143
,
Hi Alexandre,
Is there any way for calculating market capitalization, for which we need the out standing shares??
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.
Loading...
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!