Identifying Market Conditions Using Machine Learning

 | Oct 06, 2015 04:35PM ET

Knowing how different market conditions affect the performance of your strategy can have a huge impact on your returns.

Certain strategies will perform well in highly volatile, choppy markets while others need a strong, smooth trend or they risk long periods of drawdown. Figuring out when you should start or stop trading a strategy, adjusting your risk and money management techniques, and even setting the parameters of your entry and exit conditions are all dependent on the market “regime”, or current conditions.

Being able to identify different market regimes and altering your strategy accordingly can mean the difference between success and failure in the markets. In this article we will explore how to identify different market regimes by using a powerful class of machine-learning algorithms known as “Hidden Markov Models."

h3 Hidden Markov Models/h3

Markov Models are a probabilistic process that look at the current state to predict the next state. A simple example involves looking at the weather. Let’s say we have three weather conditions (also known as “states” or “regimes”): rainy, cloudy, and sunny. If today is raining, a Markov Model looks for the probability of each different weather condition occurring. For example, there might be a higher probability that it will continue to rain tomorrow, a slightly lower probability that it will be cloudy, and a small probability that it will become sunny.