ADX indicator (Average Directional Index) explained

By Oalgo · Last reviewed

The ADX indicator (Average Directional Index) measures how strong a trend is, on a scale from 0 to 100. It does not show direction: a strong fall and a strong rise both give a high ADX. The usual setting is 14 candles.

Chart: example prices with the 14-period ADX below them, drawn together with the +DI and −DI lines it is built from, and a dashed line at the level 25. ADX rises where one of the two DI lines pulls away from the other.PriceADX 14+DI−DI25
Example prices, made up for this page. Setting 14. The first candles are left out while the smoothing settles.

How is ADX calculated?

#
  • Compare today's high with yesterday's high (the up move) and yesterday's low with today's low (the down move). Only the larger of the two counts, and only if it is above zero. That is the directional movement: +DM for an up move, −DM for a down move.
  • Smooth +DM, −DM and the true range, the same one ATR uses, with Wilder's method over 14 candles.
  • +DI = 100 × smoothed +DM ÷ smoothed true range. −DI = 100 × smoothed −DM ÷ smoothed true range.
  • DX = 100 × the gap between +DI and −DI ÷ (+DI + −DI), with the gap taken as a positive number.
  • ADX = the Wilder-smoothed average of DX over 14 candles.

How do you read ADX?

#
What you seeWhat it suggests
ADX low, often under 20The trend is weak, or price is moving sideways.
ADX high, often above 25The trend is strong, up or down.
ADX risingThe trend is getting stronger, whichever way it points.
ADX fallingThe trend is losing strength. That is not a turn in price by itself.
+DI above −DIUp moves have been larger than down moves.
−DI above +DIDown moves have been larger than up moves.

The levels 20 and 25 are common rules of thumb, not fixed lines. What counts as a strong trend depends on the market and the candle size.

How do people use ADX in rules?

#
  • Allow a trend rule, such as a moving average cross, only when ADX is above a level such as 20 or 25.
  • Skip a rule built for sideways markets, such as one based on RSI, when ADX is high.
  • +DI crossing above or below −DI.
  • ADX turning up from a low level, as a sign that a trend may be starting.

What can ADX not tell you?

#

ADX does not say which way price will go, and it reacts late: the trend has to be under way before ADX rises. A high ADX can also appear late in a move, shortly before the trend fades. Because it is smoothed over many candles, it moves slowly. Test any rule on past prices with a backtest, then forward test it.

In Oalgo you can tell Oalgo AI your ADX rule in your own words, check the rule it builds, and test it. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.

Read next