← Back to Research & Strategy
Quantitative Trading

Market Regime Detection Using Hidden Markov Models In Qstrader

Market Regime Detection Using Hidden Markov Models In Qstrader

In the previous article on Hidden Markov Models it was shown how their application to index returns data could be used as a mechanism for discovering latent "market regimes". The returns of the S&P500 were analysed using the R statistical programming environment. It was seen that periods of differing volatility were detected, using both two-state and three-state models.

In this article the Hidden Markov Model will be utilised within the QSTrader framework as a risk-managing market regime filter. It will disallow trades when higher volatility regimes are predicted. The hope is that by doing so it will eliminate unprofitable trades and possibly remove volatility from the strategy, thus increasing its Sharpe ratio.

...

Read the full research

Create a free account to unlock all quantitative research, strategies, and full trading reports.