Reference: Regime-Switching Factor Investing with Hidden Markov Models by Matthew Wang , Yi-Hong Lin and Ilya Mikhelson /
hello everyone dear,
I am attaching a very interesting paper discussing the use of HMM for market regime identification and the subsequent choice of which factorial model to select stocks to choose.
Also in the first link you will find the code published by the Author of the Paper who used quantconnect as his Backtest platform.
1) Algorithm takes a long time to run due to the complexity and amount of data to process so I leave the running to you
2) Next step, interesting in my opinion is to repurpose the regime change model published by the author, not to then choose which type of portfolio chosen from a factorial model to take, but to simplify it by choosing different ETFs, following somewhat along the lines of the Asset ''SAFE'' (or even more than one) as it was intended in IN&OUT.
Translated with www.DeepL.com/Translator (free version)
Demid Fedorov
Strongs I tried running this code, but got vastly different (& worse) results. Is it the same for you?
I was about to try tinkering with it some more. BTW the're additional code for this here.
Happy to share notes, I did some other ML implementations along these lines, @demid_fedorov on Telegram.
Strongs
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!