BlogSystems and backtests

Kaufman Efficiency Ratio: trending vs sideways markets

The Kaufman Efficiency Ratio puts a number on whether a market is trending or sideways. Here is how to calculate it and how I use it as a filter.

Education only, not investment advice. Figures here come from past data and backtests: illustrative, not live market data and not a performance claim.

Looking at a chart pattern, anyone can easily tell the difference between a trending market and a sideways market. But I was wondering if there is a way to identify it through a quantitative mechanism. That's when I read about the Kaufman Efficiency Ratio.

It is based on Perry Kaufman's market efficiency model, as described in his book Smarter Trading: Improving Performance in Changing Markets. To follow the trend, it is necessary to separate the trend from the random noise of the market.

Same move, two different markets

Consider a stock whose price moved from Rs.200 to Rs.218. That's a 9% increase, and the chart clearly shows it's trending.

Now consider the same stock price moving from Rs.200 to Rs.218, the same 9% increase, but the movement is non-linear. The same appreciation in the stock price happened with a lot of volatility in between. Even though the overall movement is the same, we consider this move non-trending, or sideways.

How to calculate the ratio

This is where the Perry Kaufman Efficiency Ratio helps a lot. It is calculated by dividing the net change in price over N periods by the sum of the absolute changes over the same N periods.

In the table below, I've plotted the daily closing price of a stock. We want to calculate the change in price over the last 5 days: 218 - 200 = 18. That's the net change. Now calculate each day's change:

  • 205 - 200 = 5
  • 203 - 205 = -2
  • 208 - 203 = 5
  • 215 - 208 = 7
  • 218 - 215 = 3

The sum of the absolute values above is 22, so the efficiency ratio = 18/22 = 0.82. If the value is closer to 1, we can consider the current market to be in a strong trend. If it's closer to 0, we can consider the current market to be sideways, or non-trending.

If the same calculation is done for a non-trending series, this is how the efficiency ratio looks: it's 0.18.

What I have observed

What I have observed so far is that whenever the efficiency ratio comes near zero, volatility subsides and the market resumes its trending nature. Similarly, whenever the efficiency ratio goes near 1, volatility slowly comes in and the trend fades away.

We can't use this as a standalone indicator, but it helps in identifying the current market structure. Traders looking for a filter to identify trending and non-trending markets can use this ratio and deploy their trading strategies accordingly. It helps a lot.

You can read more in my blog post on trending and sideways markets.

I first wrote this as a thread on X. Follow me there for new ones.

  • efficiency ratio
  • kaufman
  • trend filter
  • indicator
  • market regime

Kirubakaran Rajendran

Full-time algo trader, 18 years in the markets. Founder, Vecktor. I teach trading the way I work: write the rule, test it on data, then automate it.

More about me

Learn it step by step