Skip to main content

Research method

ADX: how it is built and what the archive does with it

The Average Directional Index measures how one-sided recent price movement has been, on a 0–100 scale, without saying which way. 79 readings in the TradersWeek archive use it; in 56 it is the main subject, and most of them use it to decide which rules are allowed to trade, not as an entry signal.

Output
Market-regime classification
Input
High, low and close of one instrument
Horizon
Set by the lookback; 14 bars in the original, about 28 bars before the first value
Best use
Deciding whether trend-following or range rules apply before either is allowed to fire

The archive describes how ADX is constructed and how it is used to gate other rules across 79 readings from the 1980s to the 2020s. TradersWeek has not attached its own reproducible backtest to this card, so nothing here is a performance claim.

  • ADX is a smoothed DX, and DX = |+DI − −DI| / (+DI + −DI) × 100, where +DI and −DI are smoothed directional movement divided by smoothed true range. Welles Wilder's original lookback is 14.
  • ADX measures strength, not direction: a falling market with a strong trend lifts ADX just as a rising one does. Direction comes from comparing +DI with −DI.
  • Two smoothing passes make ADX slow: it peaks after the move is well under way and needs about twice the lookback in bars before it shows a value.
  • In the archive ADX appears most often beside trend filters (14 readings), the stochastic oscillator (12), moving averages (11) and RSI (9).
  • Levels such as 20, 25 or 40 are conventions tied to the lookback; a short-lookback ADX crosses them far more often.

The graph · 7

How the method is built, and where it has been read

Depends on

Often reviewed together

MACD5 readings

Read in the archive24 of 79 readings

1986Cycle-aligned directional trend indicatorIndicators and filters1987Constructing the commodity channel, average directional, and relative strength indexes on a shared cycle scaleIndicators and filters1987What crossover and directional entry rules actually compareEntry and exit rules1988A directional-line cross needs a trend filter, an extreme-point rule, and a dollar stopIndicators and filters1988Constructing unsigned true range for directional modelsIndicators and filters1988Constructing true range by offset addressingIndicators and filters1988Constructing directional movement from bar rangeIndicators and filters1988Average directional index construction: recursive smoothing and lookback offsetIndicators and filters1988Staged Average Directional Index construction with Relative Strength Index confirmation and stop alertsIndicators and filters1988Average Directional Index construction with frozen true range and directional rulesIndicators and filters1991Constructing the average directional index from range expansion and true rangeIndicators and filters1991Constructing five-session forecasts from stochastic, ADX, and MACD inputsTime series and forecasting1993Confirming n-bar breakouts with ADX and DX filtersEntry and exit rules1993Constructing the average directional index from directional movement and true rangeIndicators and filters1994Label the tape before you read stochastic or Williams %RIndicators and filters1994Building average directional index, the stochastic pair, and Williams percent R from highs, lows, and closesIndicators and filters1994Constructing a Bollinger band-width trend filterIndicators and filters1994A pre-trade checklist that can refuse a long three waysDecision process1995Two-gate breakout confirmation with adaptive averagesIndicators and filters1997An ADX threshold and a moving average as a trend filterIndicators and filters1997Confirm structure and conditions before naming a Triangle patternChart patterns1998Regime filters for mutated indicatorsIndicators and filters1999Building the average directional index from range extension and true rangeIndicators and filters1999A trend filter that switches tactics and scales ATR targetsIndicators and filters

How ADX is calculated

Welles Wilder published the directional movement system in 1978. It starts by comparing each bar with the one before. The up-move is today's high minus yesterday's high; the down-move is yesterday's low minus today's low. If the up-move is positive and larger, it becomes +DM and −DM is zero; if the down-move is positive and larger, it becomes −DM and +DM is zero. An inside bar, or a bar where both moves are equal, gives zero to both.

True range (TR) is the largest of three distances: high to low, high to the previous close and low to the previous close, so a gap counts as range. +DM, −DM and TR are each smoothed with Wilder's recursion: the first value is the average of the first 14 bars, and from then on the new value is the previous one times 13, plus today's figure, divided by 14.

The directional indicators are +DI = 100 × smoothed +DM / smoothed TR and −DI = 100 × smoothed −DM / smoothed TR. The directional index is DX = 100 × |+DI − −DI| / (+DI + −DI): it is near zero when up and down movement balance and near 100 when one side dominates. ADX is DX smoothed once more with the same recursion.

Strength, not direction

Because DX uses the absolute difference of the two lines, ADX rises in a strong decline exactly as it does in a strong advance. A reading of 35 says price has been travelling one way; +DI above −DI or the reverse says which way. A falling ADX does not mean price is falling, only that movement has become less one-sided.

The lag is built in

ADX is an average of a ratio of averages. With a 14-bar lookback it needs roughly 28 bars before the first value, and it typically peaks after the trend is well developed, often near the point where the move pauses. Using an ADX turn as an entry signal therefore reads a late event as an early one. Small differences in seeding and rounding also make two platforms disagree for the first few dozen bars of a history.

Parameter set

The choices that change the reading

diLookback
DI lookback

Bars used to smooth +DM, −DM and true range.

Default: 14 (Wilder)A shorter lookback makes the DI lines cross far more often in a sideways market.
adxSmoothing
ADX smoothing

Bars used to smooth DX into ADX. Some platforms set it separately from the DI lookback.

Default: 14A longer smoothing delays every rise and fall of ADX further behind price.
threshold
Trend threshold

The level treated as "trending": 20, 25 and 40 all appear in the literature.

Default: 25A level fitted on one lookback and one market is not portable to another.
directionRule
Direction rule

What supplies direction once ADX says a trend is present: +DI against −DI, a moving average or price structure.

Default: +DI vs −DIWithout one, a high ADX is equally consistent with a strong decline.

What 79 readings in the archive do with ADX

The TradersWeek research archive links ADX to 79 readings: 10 in the 1980s, 15 in the 1990s, 28 in the 2000s, 22 in the 2010s and 4 in the 2020s. In 56 of them ADX is the main subject; elsewhere it is one input among several.

The most frequent companions are trend filters (14 readings), the stochastic oscillator (12), moving averages (11), RSI (9), MACD (7), rule-based entries (6) and breakout systems (5). The typical division of labour is that ADX classifies the market, a moving average or the DI lines give direction, and an oscillator or a breakout times the trade.

The readings where ADX is the subject return to four themes:

  • Rebuilding the construction. A cluster of readings from 1988 and later ones from 1993, 1999 and 2015 replicate ADX step by step: the bar rules for +DM and −DM, true range, the 14-bar seed, the recursive update and, in one case, integer truncation. The point is that an ADX value has to be recomputable before a threshold on it means anything.
  • A gate between rule families. Readings from 2004 to 2016 let ADX decide which signals are read at all: stochastic or RSI extremes only when ADX is low, MACD and trend rules only when it is high, and a rising ADX required before an oscillator crossing is counted.
  • Confirming breakouts. A 1993 rule takes an n-bar high only when ADX or DX makes a coincident high; readings from 2016 and 2018 pair a buy-stop or a prior-day high with an ADX filter, in one intraday case a 14-period ADX crossing 40 in the first 20 minutes.
  • Short clusters and DI oscillators. Readings from 2012 and 2013 replace the single 14-bar line with three short lookbacks (3, 4 and 5 bars) and wait for them to converge, or turn +DI minus −DI into an oscillator and time entries with a stochastic of that series.

Where it fits in a workflow

Ask the ADX question first: is this market trending or ranging right now? If ADX is above your threshold and rising, trend-following rules are in play and +DI against −DI or a moving average gives the side. If it is low and flat, range rules apply and trend breakouts need extra confirmation. Fix the lookback, the smoothing, the threshold and the direction rule before testing, and keep them fixed while you test.

On the TradersWeek chart

ADX in the terminal opens in its own pane and draws three lines: ADX, +DI and −DI. One period, 14 by default and adjustable from 1 to 100, sets both the DI lookback and the ADX smoothing. Each smoothing starts from a simple average of its first window and continues with Wilder's recursion; true range counts gaps against the previous close, and a zero-range bar keeps the previous DI values. This follows TradingView's ta.dmi with both lengths equal, so readings should match there. The pane draws no fixed reference levels.

The signal scanner uses the same 14-bar ADX. Its rules treat ADX above 25 as a strong trend, with +DI against −DI, SuperTrend or Parabolic SAR giving direction, and its market-regime filter labels a bar trending at 25 or above, ranging at 20 or below and in transition between them, together with price against the 200-bar average.

Not investment advice. Historical behaviour of an indicator does not guarantee future results.