Introduction
This trend following algorithm finds its entry points using the momentum effect. The momentum anomaly says that what was strongly going up in the past will probably continue to go up in the near future. The calculation performed uses the rate of change in price movements for a particular asset.
Method
The portfolio of this algorithm contains 5 ETFs in different asset classes. LEAN has the MomentumPercent indicator MOMP(symbol, period)
. The period is 12 months. After obtaining the most recent momentum value, we pick 3 ETFs with the strongest 12-month momentum percent into the portfolio and weight them equally. Hold for 1 month and then rebalance the portfolio with new momentum percent. Unlike the asset class trend following strategy, which combines asset classes into one portfolio, this rotational momentum system compares the performance of asset classes and picks only the best-performing assets from investment universe into investor's portfolio. The portfolio is rebalanced every month and portfolio's holdings are rotated so that only the best-performing assets are held.
Derek Melchin
See the attached backtest for an updated version of the algorithm in PEP8 style.
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.
Jing Wu
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!