Skip to content
Menu

Directional Movement Index (DMI)

By Chad Smith, Director of Research & Analysis · Updated

On this page
  1. What it measures
  2. The formula
  3. Default settings
  4. How to read it
  5. DMI vs ADX alone and Aroon
  6. Common strategies
  7. Weaknesses
  8. Indicators it pairs with
25ADX+DI−DI
Illustration, not real price data

The Directional Movement Index (DMI) is J. Welles Wilder's system for measuring which side of the market is in control. It has two direction lines, +DI and −DI, and one strength line, ADX. Wilder introduced it in 1978. While the ADX page focuses on trend strength, this page focuses on the direction lines and how traders use their crossovers.

What it measures

DMI measures directional movement: how much each bar extended beyond the previous bar's range, upward or downward. If today's high is well above yesterday's high, and today's low is not much below yesterday's low, upward movement dominates. If the low extends further than the high, downward movement dominates.

These movements are smoothed and divided by the true range to make them comparable across markets. The results are:

  • +DI: the share of recent movement that was upward.
  • −DI: the share of recent movement that was downward.

When +DI is above −DI, buyers have been extending price higher more than sellers have been pushing it lower. When −DI is above +DI, the reverse is true. ADX then measures how far apart the two lines are, which shows how decisive that control is.

The formula

For each bar:
  UpMove   = High(today) − High(yesterday)
  DownMove = Low(yesterday) − Low(today)

  +DM = UpMove   if UpMove > DownMove and UpMove > 0;   otherwise 0
  −DM = DownMove if DownMove > UpMove and DownMove > 0; otherwise 0

  TR  = max(High − Low, |High − Previous Close|, |Low − Previous Close|)

Wilder smoothing over N bars:
  Smoothed value = Previous smoothed − (Previous smoothed / N) + Current value

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

DX  = 100 × |(+DI) − (−DI)| / ((+DI) + (−DI))
ADX = Wilder-smoothed average of DX

where N = 14 by default

Only one of +DM and −DM can be positive on a given bar. An inside bar, where neither the high nor the low extends, contributes zero to both.

Worked example (illustrative numbers). Yesterday's high was 50 and low was 47. Today's high is 52 and low is 48. UpMove = 52 − 50 = 2. DownMove = 47 − 48 = −1, so it is not positive. +DM = 2, and −DM = 0. If, after smoothing, +DM totals 18, −DM totals 9 and true range totals 60, then +DI = 100 × 18 / 60 = 30 and −DI = 100 × 9 / 60 = 15. +DI is above −DI, so upward movement dominates.

Default settings

SettingConventional value
DI period14
ADX smoothing14

The DMI is built into MetaTrader, TradingView and other standard platforms. Some platforms call it "Directional Movement" or "ADX/DMI", and some show ADX as a separate indicator.

How to read it

Which line is on top. +DI above −DI shows bullish control; −DI above +DI shows bearish control. This is the core reading.

Crossovers. A cross of the two lines marks a shift in control. Crosses that happen while ADX is rising, or above about 20 to 25, are considered more meaningful.

Spread between the lines. A wide gap shows one side is clearly dominant. A narrow gap shows balance, which usually corresponds to a low ADX and a ranging market.

Extreme point rule. Wilder recommended noting the high (for a bullish cross) or low (for a bearish cross) of the crossover bar. A trade is taken only if price later passes that level. This filters some false crosses.

DMI vs ADX alone and Aroon

ADX on its own shows strength but not direction. The DI lines show direction but are noisy. Used together as DMI, they give both: the DI lines decide the side, and ADX decides whether to trust it.

Aroon also uses two lines to show bullish and bearish dominance, but it measures the time since the last high and low, not the size of moves. Aroon can react faster to a fresh extreme; DMI responds to the size of movement and is smoothed.

The Vortex indicator uses a related idea of upward and downward movement, but compares highs with prior lows and lows with prior highs.

Common strategies

DI crossover with ADX filter

Buy when +DI crosses above −DI and ADX is above 20 to 25 or rising. Sell when −DI crosses above +DI under the same conditions. Use the extreme point rule as an added filter.

Trend continuation

In an established trend, a brief narrowing of the DI lines followed by renewed separation in the same direction can mark the end of a pullback.

Trailing exit on DI cross

Exit a long position when −DI crosses above +DI, and a short position when +DI crosses above −DI. This keeps the trader in the trend until control changes.

Pairing with Parabolic SAR

Wilder paired DMI with the Parabolic SAR: trade SAR signals only when DMI shows a trend in the same direction.

Weaknesses

DI crosses whipsaw in ranges. When neither side dominates, the lines cross repeatedly without leading to a trend.

The lines lag. Wilder smoothing delays shifts in control, so crosses come after price has started to turn.

They ignore the close. Directional movement uses highs and lows only, so a bar that extends the high but closes weak still counts as upward movement.

Thresholds are conventions. The ADX levels used as filters vary between markets and periods.

Indicators it pairs with

  • ADX, which is part of the system and measures strength.
  • Parabolic SAR, Wilder's trailing-stop companion to DMI.
  • ATR, built from the same true range input, for stops and sizing.
  • Moving averages, for a slower trend direction check.
  • RSI, for momentum context when the DI lines are close together.

For more on trend direction and strength, see the technical analysis course.

Brokers with strong charting to practice on

Put this into practice on a demo account first, with no money at risk.

Frequently asked questions

What is the Directional Movement Index?

It is Wilder's system of three lines, +DI, −DI and ADX. The DI lines show whether upward or downward movement dominates, and ADX shows how strong that dominance is.

What does it mean when +DI crosses above −DI?

It means upward movement has become larger than downward movement over the smoothing period. Traders read it as a possible bullish signal.

What is the default DMI setting?

The standard setting is 14 periods for both the DI lines and the ADX smoothing.

Is DMI the same as ADX?

Not exactly. ADX is one line within the DMI system. Some platforms show ADX alone, while others show all three lines under the DMI name.

What was Wilder's extreme point rule?

After a DI crossover, Wilder suggested waiting for price to pass the extreme of the crossover bar, the high for a buy or the low for a sell. If it does not, the signal is ignored.