This code is based on Maewal and Bock (2018), and calculates which regime the markets currently are in. Please note that this is not the full Modified Risk Parity algorithm, but only contributes to the estimation of the return exponent, α, as described in the paper.
This model then uses the calculations suggested by the paper to create yearly trading signals to determine whether the portfolio should be invested or not, and I use the trading signals generated to trade QQQ on an annual basis. Overall, the model manages to achieve greater risk-adjusted returns than a typical buy and hold strategy.
If you would like to get in touch, my email is [email protected].
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.