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.
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 see | What it suggests |
|---|---|
| ADX low, often under 20 | The trend is weak, or price is moving sideways. |
| ADX high, often above 25 | The trend is strong, up or down. |
| ADX rising | The trend is getting stronger, whichever way it points. |
| ADX falling | The trend is losing strength. That is not a turn in price by itself. |
| +DI above −DI | Up moves have been larger than down moves. |
| −DI above +DI | Down 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
- What is ATR? Average True Range explainedATR measures how far price typically moves in one candle. Learn how it is calculated, how to read it, and how to use it in your own rules.
- Parabolic SAR indicator explained: how it worksParabolic SAR puts a dot under price in an up-move and over it in a down-move, closer each candle. Learn how it works, how to read it and how to test rules.