ADX Indicator: Measure Trend Strength Step by Step

Most indicators try to answer one question: is price going up or down? The ADX indicator (Average Directional Index) answers a different and often more useful question: is there a trend worth following at all?

This matters because trend-following tools such as the Supertrend, moving-average crossovers and the MACD work well in trends and lose money in sideways markets. ADX helps you tell the two apart before you take the signal.

In this guide you will learn how ADX and its two partner lines (+DI and −DI) are calculated, with a worked example, how to read ADX trend strength levels, which settings to use, and three rule-based ways traders use the ADX indicator.

ADX Indicator Quick Facts

FeatureDetail
CreatorJ. Welles Wilder Jr.
Year1978
Indicator typeTrend-strength indicator (separate panel below the chart)
LinesADX (strength), +DI (upward pressure), −DI (downward pressure)
Scale0 to 100
Default settings14 periods, Wilder’s smoothing
Best marketsAll: stocks, indices, F&O, forex, crypto, commodities
Best timeframesAll; most reliable on 1-hour and higher

Origin and History

J. Welles Wilder Jr. introduced the Directional Movement system in his 1978 book New Concepts in Technical Trading Systems. The same book introduced the RSI indicator and the ATR indicator.

Wilder traded commodities, and he noticed a practical problem: trend-following systems made money when markets trended and gave most of it back in sideways periods. He wanted a number that would tell him how much directional movement the market had, so he could decide when a trend-following approach made sense.

His answer was a family of lines:
– +DI and −DI (the Directional Indicators): how strong the upward and downward movement is.
– DX: how far apart those two lines are.
– ADX: a smoothed DX, the final trend-strength reading.

Together, +DI and −DI are often called the DMI (Directional Movement Index), which is why many traders search for “ADX DMI”. On TradingView, the built-in Directional Movement Index shows all three lines, and the Average Directional Index shows ADX alone.

The ADX Formula, Step by Step

ADX takes five steps. It looks long, but each step is simple arithmetic.

Step 1: Directional Movement (+DM and −DM)

Compare each bar with the bar before it:

Up move   = Current High − Previous High
Down move = Previous Low − Current Low

Then apply these rules:

+DM = Up move,   if Up move > Down move and Up move > 0, otherwise 0
−DM = Down move, if Down move > Up move and Down move > 0, otherwise 0

In plain English: only the bigger move counts, and only if it is positive. On any bar, at most one of +DM and −DM is above zero.

CasePrev High / LowCurrent High / LowUp moveDown move+DM−DM
Up bar105.0 / 102.0106.5 / 103.51.5−1.51.50
Down bar105.0 / 102.0104.2 / 100.4−0.81.601.6
Inside bar105.0 / 102.0104.6 / 102.5−0.4−0.500
Outside bar105.0 / 102.0106.0 / 100.81.01.201.2

The outside bar is the tricky one: price went both higher and lower than the previous bar, but the down move was bigger, so only −DM counts.

Step 2: True Range (TR)

True Range is the same value used in ATR: the largest of these three:

1. Current High − Current Low
2. |Current High − Previous Close|
3. |Current Low − Previous Close|

See our ATR guide for a full explanation with gaps.

Step 3: Smooth them with Wilder’s method

+DM, −DM and TR are each smoothed over 14 bars with Wilder’s smoothing (called RMA on TradingView):

Smoothed value today = (Smoothed value yesterday × 13 + Today's value) ÷ 14

Wilder’s book works with running 14-bar totals instead of averages. That gives the same +DI and −DI, because the next step divides one smoothed value by another.

Step 4: +DI and −DI

+DI = Smoothed +DM ÷ Smoothed TR × 100
−DI = Smoothed −DM ÷ Smoothed TR × 100

Dividing by True Range turns directional movement into a percentage of the normal bar size, so +DI and −DI can be compared across markets and price levels.

Step 5: DX and ADX

DX  = |(+DI) − (−DI)| ÷ ((+DI) + (−DI)) × 100
ADX = Wilder-smoothed DX over 14 bars

DX is high when one DI line is far above the other (strong one-way movement) and low when they are close together (no clear direction). ADX smooths DX so that it doesn’t jump around from bar to bar.

Worked example (ADX 14)

Use the “Up bar” from the table above. The previous bar had High 105.0, Low 102.0 and Close 104.0. The current bar has High 106.5, Low 103.5 and Close 106.0.

Assume these smoothed values from the previous bar: TR 2.80, +DM 1.10, −DM 0.60, ADX 22.0.

Step 1: DM. Up move = 106.5 − 105.0 = 1.5. Down move = 102.0 − 103.5 = −1.5. So +DM = 1.5 and −DM = 0.

Step 2: TR. The largest of 106.5 − 103.5 = 3.0, |106.5 − 104.0| = 2.5 and |103.5 − 104.0| = 0.5. So TR = 3.0.

Step 3: Smoothing.
– Smoothed TR = (2.80 × 13 + 3.0) ÷ 14 = (36.40 + 3.0) ÷ 14 = 39.40 ÷ 14 = 2.814
– Smoothed +DM = (1.10 × 13 + 1.5) ÷ 14 = (14.30 + 1.5) ÷ 14 = 15.80 ÷ 14 = 1.129
– Smoothed −DM = (0.60 × 13 + 0) ÷ 14 = 7.80 ÷ 14 = 0.557

Step 4: DI lines.
– +DI = 1.129 ÷ 2.814 × 100 = 40.1
– −DI = 0.557 ÷ 2.814 × 100 = 19.8

Step 5: DX and ADX.
– DX = |40.1 − 19.8| ÷ (40.1 + 19.8) × 100 = 20.3 ÷ 59.9 × 100 = 33.9
– ADX = (22.0 × 13 + 33.9) ÷ 14 = (286.0 + 33.9) ÷ 14 = 319.9 ÷ 14 = 22.8

What this tells you: +DI is well above −DI, so buyers are in control. ADX rose from 22.0 to 22.8: the trend is getting a little stronger, but it is still below 25, so it is not yet a strong trend by the usual rule of thumb.

Why ADX needs a warm-up: ADX is a smoothed version of DX, which itself uses smoothed values. With length 14, the first ADX value needs about 27 bars of data, and early values settle over the next few dozen bars. On a chart with plenty of history, this doesn’t matter.

ADXR (optional): Wilder also described the ADXR, an even slower line: today’s ADX plus the ADX from 14 bars ago, divided by 2. Most traders today use ADX alone.

How to Read the ADX Indicator

Read ADX for strength

These levels are widely used rules of thumb, not fixed laws:

ADX valueUsual reading
Below 20Weak trend or sideways market
20–25Grey zone: a trend may be starting or ending
Above 25Trending market
Above 40Strong trend (also watch for exhaustion)

The direction of ADX matters as much as its level:
– Rising ADX: the trend is getting stronger, whether price is going up or down.
– Falling ADX: the trend is weakening, or the market is moving into a range.

Read +DI and −DI for direction

ADX has no direction. A strong sell-off pushes ADX up just like a strong rally. To see who is in control:
– +DI above −DI: upward movement is stronger.
– −DI above +DI: downward movement is stronger.
– +DI crossing above −DI (or the reverse) is a change in direction, not a measure of strength.

A simple way to remember it: DI lines tell you which way; ADX tells you how strongly.

ADX Settings Deep Dive

On TradingView’s built-in Directional Movement Index, there are two inputs:

ParameterDefaultWhat it controlsRaise itLower it
DI Length14Smoothing for +DM, −DM and TR (the DI lines)Smoother DI lines, fewer crossoversFaster DI lines, more crossovers and more noise
ADX Smoothing14Smoothing of DX into ADXSlower, steadier ADXFaster ADX that reacts to new trends sooner, with more false readings

Most traders keep both inputs equal, as Wilder’s original method did.

Starting points by trading style (to test, not proven best values):

Trading styleTypical timeframeDI Length / ADX SmoothingTrend threshold
Scalping1–5 min7–1025–30 (noisy timeframes need a higher bar)
Intraday5–15 min10–1420–25
Swing1H–Daily1420–25
PositionalDaily–Weekly14–2020

A shorter length makes ADX hit high values more often, so if you shorten it, consider raising your trend threshold.

ADX Strategies

These are educational examples, not recommendations. Test any rule on your own market and timeframe first, and decide your risk per trade in advance.

Strategy 1: ADX as a trend filter

The most common way to use ADX is not as a signal, but as a filter for another trend tool.

  • Setup: use a trend signal such as a Supertrend flip, a UT Bot Alerts label or a MACD crossover.
  • Entry: take the signal only if ADX is above 25 (or above 20 and rising).
  • Stop-loss: the tool’s own stop (for example, the Supertrend line) or 2 × ATR from entry.
  • Exit: when the trend tool flips against you.
  • Works best: in markets that alternate between clear trends and long ranges.
  • Fails when: a new trend starts while ADX is still low. Because of lag, the filter will skip the first part of many good moves.

Strategy 2: DI crossover with ADX confirmation

  • Long entry: +DI crosses above −DI and ADX is above 20 and rising. Many traders wait for price to break the high of the crossover bar before entering, to avoid crossovers that fail immediately.
  • Short entry: the mirror image: −DI crosses above +DI, ADX above 20 and rising, and price breaks the low of the crossover bar.
  • Stop-loss: below the low of the crossover bar (longs) or above its high (shorts), or 1.5–2 × ATR.
  • Exit: the opposite DI crossover, or a trailing stop.
  • Works best: at the start of a fresh trend after a quiet period.
  • Fails when: ADX is below 20. In a range, the DI lines cross back and forth and produce many small losses.

Strategy 3: Falling ADX from a high level = tighten stops

  • Setup: you are already in a trend trade, and ADX has risen above 40.
  • Signal: ADX turns down from its peak.
  • Action: don’t exit automatically. Instead, tighten your trailing stop (for example from 3 × ATR to 2 × ATR) or take partial profit.
  • Why: a turn down in ADX means the trend is losing strength. Price may keep going, pause in a range, or reverse; ADX can’t tell you which.
  • Fails when: a strong trend pauses briefly and then continues. ADX dips and rises again, and a tight stop may exit too early.

Confluence: What to Pair With ADX

Pair withWhy it helps
SupertrendSupertrend gives direction and a stop; ADX filters out its false flips in ranges. See also Best Supertrend Settings.
UT Bot AlertsUT Bot flips often in sideways markets; an ADX filter skips many of those flips.
RSIUse ADX to choose the mode: when ADX is low, RSI 70/30 reversal signals work better; when ADX is high, RSI can stay overbought or oversold for a long time.
ATRATR shows how much price moves; ADX shows whether that movement is a trend. ATR also sets stops and position size.
Bollinger Band SqueezeA squeeze often comes with low ADX. A breakout with ADX rising through 20–25 suggests a real trend is starting.

Redundant pairings to avoid: ADX with the Choppiness Index, Vortex Indicator or Aroon Oscillator used as a second trend filter. They answer the same “trend or range?” question in slightly different ways. Pick one.

Limitations and Common Mistakes

  1. Reading ADX as direction. A high, rising ADX in a crash is a strong downtrend. Always check the DI lines or price.
  2. Lag. ADX is smoothed twice, so it confirms trends late. By the time ADX is above 25, part of the move is often over.
  3. ADX peaks after big moves. Very high ADX readings often come near the end of a sharp move, not the beginning. A high ADX is not a reason to chase.
  4. Spikes in ranges. One sharp news bar can push ADX up briefly in an otherwise sideways market.
  5. Treating 25 as magic. The 20 and 25 levels are rules of thumb. Each market and timeframe behaves differently; check how ADX looked in past trends and ranges on your own chart.
  6. Trading every DI crossover. In low-ADX markets, crossovers are mostly noise.

Frequently Asked Questions

What is the ADX indicator?

The ADX (Average Directional Index) is a trend-strength indicator created by J. Welles Wilder Jr. in 1978. It measures how strong a trend is on a scale of 0 to 100, without showing its direction.

Is ADX above 25 a buy signal?

No. ADX above 25 means the market is trending, but the trend can be up or down. Check whether +DI is above −DI (uptrend) or −DI is above +DI (downtrend) before deciding anything.

What is the difference between ADX and DMI?

The DMI (Directional Movement Index) is the pair of +DI and −DI lines, which show direction. ADX is calculated from them and shows strength. On TradingView, the Directional Movement Index indicator displays all three lines together.

What are the best ADX indicator settings?

The default of 14 for both DI Length and ADX Smoothing works for most traders. Shorter values (7–10) react faster but give more false readings; longer values (20) are smoother and slower.

Does the ADX indicator show trend direction?

ADX alone does not. It rises in strong uptrends and strong downtrends. The +DI and −DI lines show direction.

Does ADX repaint?

No. ADX values on closed bars are fixed. On the current open bar, ADX changes with price until the bar closes, like any indicator.

Keep Learning

ADX works best as a partner to other tools. See how it can filter signals from the Supertrend indicator and UT Bot Alerts, and learn more about Wilder’s True Range in our ATR guide. For momentum, compare the two most popular oscillators in MACD vs RSI. See how ADX works alongside the EMA and Supertrend in our Trend Indicators guide.

Want practical indicator guides in your inbox? Join the IndicatorHQ newsletter. Subscribers will also get our free Indicator Settings Cheat Sheet when it launches.


How we checked this guide

  • Method: DM, DI and ADX example verified in code
  • Chart: Real TradingView data, EUR/USD 4-hour, at least 30 days old
  • Repainting: Does not repaint on closed bars

See how we test indicators →

Risk disclaimer: This article is for educational purposes only and is not investment advice. The strategies show how the indicator can be used; they are not recommendations to buy or sell any instrument. Trading in stocks, derivatives, forex and crypto involves a substantial risk of loss and is not suitable for everyone. Consider speaking to a SEBI-registered investment adviser (or a licensed adviser in your country) before making trading decisions. See our full Disclaimer.