ADX and DMI: measuring trend strength without predicting direction
How ADX, +DI and −DI are calculated with Wilder’s directional movement, why ADX alone says nothing about direction, and how to use it as a filter.
ADX / DMI is free on Basis — the button opens a live crypto chart with it already applied. No account, no trial and no limit on how many indicators you add.
Open the chartWhat it measures
ADX measures how strongly a market is trending, in either direction. The two directional indicators, +DI and −DI, carry the direction; ADX itself is direction-blind and only says how decisive the movement has been.
That separation is the point: ADX is most useful as a filter that decides which of your other tools to trust, rather than as a signal in itself.
How it is calculated
These are the steps Basis performs, verified against the published definition.
- 1
For each bar, compute directional movement: the up-move is this high minus the previous high, the down-move is the previous low minus this low. Only the larger one counts, and only if it is positive — a bar registers one or the other, never both.
- 2
Smooth the up-moves, the down-moves and the true range separately with Wilder’s method.
- 3
Divide the smoothed up-moves by the smoothed true range for +DI, and the smoothed down-moves by it for −DI.
- 4
Compute DX as the absolute difference between the two directional indicators divided by their sum, as a percentage.
- 5
Smooth DX with Wilder’s method again. That second smoothing is ADX.
Settings
| Setting | Default | Range |
|---|---|---|
| DI Length | 14 | 1 – 500 |
| ADX Smoothing | 14 | 1 – 500 |
Fourteen for both the directional smoothing and the ADX smoothing is standard. Raising the ADX smoothing alone makes the trend-strength reading steadier without changing the directional crossovers.
How to read it
- ADX below 20 is a market without a trend, and trend-following tools will lose money in it. ADX above 25 is a trend worth following.
- ADX rising means the trend is strengthening whichever way it points. ADX falling from a high level means the trend is losing conviction, not that it is reversing.
- +DI above −DI is an up-trend, and the crossover is the directional signal. ADX only tells you whether that signal is worth acting on.
- Because ADX is smoothed twice it is slow. It confirms; it never leads.
Where it misleads
Directional movement does not exist on the first bar — it needs a previous bar to measure against — while true range is defined from the first bar’s own span. Implementations differ on how to align the two, and the mismatch shifts early ADX values by a few points. The effect decays geometrically and is gone by roughly bar three hundred, but it means the first screenful of ADX after loading history can differ between platforms while both are correct.
Plot ADX / DMI on a live chart
Basis is free. Every indicator, every chart type, order flow, derivatives, screening and backtesting — no paid tier and no account needed to open a chart.
Open a chart with ADXRelated indicators
Updated 2026-08-22 · Educational reference, not financial advice.