Library · Indicators
ADX (Average Directional Index)
ADX measures how strong a trend has been on a scale from 0 to 100, without saying which way it points; its companion lines +DI and -DI describe direction.
Why it matters
Many tools behave differently in trends and in sideways markets. A moving average describes a trending market reasonably well and whips back and forth in a range. Before reading any of them, it helps to ask a prior question: has this market been trending at all?
The Average Directional Index, or ADX, was designed by J. Welles Wilder Jr. to describe exactly that. It measures the strength of a trend and deliberately ignores its direction.
What it looks like
The full indicator is often called the Directional Movement Index (DMI) and has three lines:
- ADX: trend strength, from 0 to 100.
- +DI (plus directional indicator): how much of recent movement was upward.
- -DI (minus directional indicator): how much of recent movement was downward.
In plain words
Think of a wind gauge with a separate weather vane. ADX is the gauge: it tells you how hard the wind has been blowing. The +DI and -DI lines are the vane: they tell you from which side. A strong north wind and a strong south wind give the same reading on the gauge.
How to read the scale
- Above about 2525-100Conventionally read as a trending market. Higher readings describe a stronger trend, up or down.
- Between20-25A grey area: a trend may be forming or fading.
- Below about 200-20Conventionally read as a weak or absent trend, typical of sideways markets.
- Rising ADX means the trend, up or down, has been gaining strength.
- Falling ADX means the trend has been losing strength. It does not mean price is reversing. A market can drift sideways or simply continue more slowly.
- +DI above -DI means upward movement has dominated recently. -DI above +DI means downward movement has dominated.
- A cross of +DI and -DI marks the moment one type of movement overtook the other in the calculation. In sideways markets the two lines cross back and forth constantly.
How it is calculated
- Directional movementEach period, measure how far the high moved up (+DM) and how far the low moved down (-DM).
- +DI and -DISmooth both and divide by the average true range, so they become percentages.
- DXTake the gap between +DI and -DI as a share of their sum.
- ADXSmooth DX over 14 periods.
Each period, Wilder compares the current candle with the previous one. If the high rose by more than the low fell, the rise counts as +DM. If the low fell by more than the high rose, the fall counts as -DM. The smaller of the two is set to zero, and so is anything negative.
+DI = 100 × smoothed +DM / ATR-DI is the same calculation with -DM. Dividing by the average true range (ATR) lets quiet and volatile markets be compared.DX = 100 × |(+DI) - (-DI)| / ((+DI) + (-DI))The vertical bars mean the absolute difference: the sign is thrown away, which is why ADX has no direction.ADX = smoothed average of DX over 14 periodsWilder's smoothing lets each new period nudge the average instead of replacing it.Why ADX cannot tell up from downHypothetical illustration
All numbers are hypothetical.
Market A, rising: +DI = 30 and -DI = 10. DX = 100 × (30 - 10) / (30 + 10) = 100 × 20 / 40 = 50.
Market B, falling: +DI = 10 and -DI = 30. DX = 100 × (30 - 10) / (10 + 30) = 50.
Market C, sideways: +DI = 22 and -DI = 18. DX = 100 × 4 / 40 = 10.
Markets A and B produce the same DX, so their ADX values look alike. Only the DI lines separate them.
Settings and what they change
| Setting | Effect | Trade-off |
|---|---|---|
| Shorter period (for example 7) | ADX reacts faster and swings more widely | More brief spikes above 25 that fade |
| Default period (14) | The value Wilder proposed | A middle ground |
| Longer period (for example 28) | ADX is smoother and slower | Trends are well under way before it rises |
Some platforms let you set the DI period and the ADX smoothing separately. Changing either one changes how often the line crosses 20 or 25. Moving the period or the threshold until past trends are all neatly flagged is overfitting, and it rarely survives new data.
Going deeper
Because ADX is a smoothed average of an already smoothed measure, it lags. By the time it climbs above 25, a trend has usually been running for a while, and ADX often keeps rising for some time after price has started to stall.
Practitioners mostly use ADX as a filter for reading other tools, not as a trigger. A low reading is a reminder that trend tools such as Parabolic SAR and moving-average crossovers tend to flip repeatedly in sideways conditions. A high reading is a reminder that oscillators can sit at their extremes for a long time. Direction itself is better read from market structure: the sequence of swing highs and swing lows.
ADX shares its volatility ingredient with ATR. This matters when combining indicators: tools built from the same inputs tend to agree for that reason alone.
What it does NOT mean
- High ADX does not mean price is rising. A steep downtrend produces a high ADX too.
- Falling ADX does not mean the trend has reversed. It means the move has been losing strength. Price may pause, range or carry on.
- ADX above 25 does not predict that the trend continues. It describes the last several periods.
- A DI cross is not a signal. It records that one direction overtook the other in past data, and it happens constantly in ranges.
Common mistakes
- Reading ADX as direction. The line rising is not bullish and the line falling is not bearish.
- Treating 25 as a switch. A reading of 24 and a reading of 26 describe almost the same market.
- Acting on every DI cross. Without a trend, the crosses are mostly noise.
- Forgetting the lag. Double smoothing means ADX confirms a trend late and leaves it late.
- Tuning the period to fit one chart. A setting chosen with hindsight has only been tested on the data it was fitted to.
Risks and limitations
- ADX is built only from past highs, lows and closes. It describes, it does not forecast.
- It is slow by design and can stay elevated after a trend has ended.
- It contains no information about volume, liquidity or news.
- A quiet market can end abruptly, and ADX only shows it afterwards.
Key takeaway
ADX measures how strong a trend has been, not which way it points; +DI and -DI describe the direction. All three are summaries of past candles and none is an instruction.
Sources and further reading
- New Concepts in Technical Trading Systems, J. Welles Wilder Jr. (1978). The book that introduced directional movement, +DI, -DI and ADX
- Technical Analysis of the Financial Markets, John J. Murphy (1999)