Independent market intelligence
Research over noise · Risk before return
Forex indicator guide

Vortex vs ADX and DMI: direction, strength and the calculations

Vortex and ADX answer different questions. We build their calculations from high, low and close prices, check small constructed examples, and inspect the same historical EUR/USD intervals. The main comparison uses length 14 for Vortex, directional smoothing and ADX smoothing. These are disclosed teaching settings, not optimized trading parameters.

In simple terms

Vortex compares two rolling measures of movement. DMI compares smoothed positive and negative directional movement. ADX smooths the imbalance between the DMI lines and has no bullish or bearish sign. Read direction and strength separately, then check how the platform initializes each calculation.

On this page
01

Separate the roles of the lines

VI+ and VI− are the two Vortex lines. +DI and −DI are the directional components of DMI; ADX is its strength component. A higher ADX can accompany falling prices. Comparing these constructions explains their measurements without ranking trading systems.

Directional readings and nondirectional strength
IndicatorMeasurementHistory and smoothing
VortexRelative cross-bar movement14-transition rolling sums
DMIExclusive directional movementMean-seeded recursive RMA14
ADXSmoothed absolute DI imbalanceMean-seeded RMA14 of DX14
02

Fix the inputs and the three lengths

The historical example uses observed EUR/USD Bid prices, quoted in USD per EUR, aggregated into UTC H4 intervals. Vortex length, DMI smoothing length and ADX smoothing length are each 14. Changing the quote source, interval, seed or any length changes the calculation.

03

Measure Vortex movement between two bars

True range uses the current high and low and the previous close. VM+ is the absolute distance from the previous low to the current high; VM− is the absolute distance from the previous high to the current low. Both movements can be positive on the same bar.

True range and Vortex movementTR_t = max(H_t-L_t, abs(H_t-C_prev), abs(L_t-C_prev))VM+_t = abs(H_t-L_prev); VM-_t = abs(L_t-H_prev)

Vortex measures two cross-bar distances

Constructed arithmetic
Vortex measures two cross-bar distances100105110112VM+ = 12VM− = 8H_prev / L_prev / C_prevH / L / C
Constructed prices: previous high 110, low 100, close 105; current high 112, low 102, close 108. VM+ is 12, VM− is 8 and TR is 10. Distances are in arbitrary price units.
04

Normalize rolling sums to obtain Vortex

Sum the latest 14 VM+ values and divide by the sum of the same 14 true ranges; repeat for VM−. These are rolling sums, not Wilder averages. VI values have no price unit and can exceed 1. A value of 1.5 is not a 150% return or a probability.

Two rolling ratiosVI+ = SUM(VM+, 14) / SUM(TR, 14)VI- = SUM(VM-, 14) / SUM(TR, 14)
05

Apply the exclusive directional-movement rule

Compare the increase in highs with the decrease in lows. Keep only the larger positive movement; assign zero to the other. If the two positive movements are equal, both DM values are zero. An inside bar also contributes zero to both, although its Vortex movements can remain positive. The minus sign names a direction; both DM magnitudes are nonnegative.

Exclusive positive directional movementUp = H_t-H_prev; Down = L_prev-L_t+DM = Up if Up > Down and Up > 0, else 0-DM = Down if Down > Up and Down > 0, else 0

DMI keeps only the larger positive movement

Constructed arithmetic
DMI keeps only the larger positive movement2010020030104+DM / −DM
DMI keeps only the larger positive movement
CaseHighLowVM+VM−+DM−DMTR
1 · Rising range1121021282010
2 · Inside bar10810288006
3 · Equal outside movements1129812120014
4 · Downward gap969042001015
Constructed cases share previous high 110 and low 100. An inside bar and an outside bar with equal upward and downward expansion give +DM=0 and −DM=0. In the downward-gap case, only −DM is nonzero; Vortex uses its own distances.
06

Disclose the Wilder smoothing seed

Here RMA14 starts with the mean of the first 14 valid transitions. Each later update gives the new transition weight 1/14 and the previous average weight 13/14. Smooth TR, +DM and −DM separately. Other seeds or averaging types can produce different platform readings.

Mean seed and Wilder recurrenceRMA14_seed = mean(first 14 valid transitions)RMA14_t = (13 * RMA14_prev + x_t) / 14
07

Calculate DI before DX

Divide each smoothed DM by smoothed TR and multiply by 100 to obtain +DI and −DI. DX is 100 times their absolute difference divided by their sum. DX measures normalized directional imbalance on that observation. It is an input to ADX, rather than another price series.

Directional indicators and imbalance+DI = 100 * RMA14(+DM) / RMA14(TR); -DI = 100 * RMA14(-DM) / RMA14(TR)DX = 100 * abs(+DI - -DI) / (+DI + -DI)
08

Read ADX without assigning it a direction

Our ADX14 is the mean of the first 14 valid DX values, followed by Wilder updates. Reflecting a price path swaps positive and negative directional readings while leaving DX and ADX unchanged. This arithmetic symmetry explains why rising ADX alone cannot tell you to buy or sell.

ADX smooths the DX seriesADX14_seed = mean(first 14 valid DX14)ADX14_t = (13 * ADX14_prev + DX14_t) / 14
09

Count transitions and initial unavailable values

The first bar supplies the previous high, low and close; it has no transition. Fourteen transitions require 15 observed bars: DI14 and DX14 are initialized then, and VI14 is available if its TR sum is positive. ADX14 first appears on bar 28. These counts describe the stated initialization and do not guarantee convergence.

First valid readings under the stated initialization
IndicatorObserved bars needed
VI14 / DI14 / DX1415
ADX1428

The first bar is only a predecessor. Length 14 therefore needs 15 bars for the first VI/DI/DX and 28 for ADX. VI additionally needs a positive rolling TR sum. First availability is not a convergence guarantee.

10

Define zero-denominator behavior

If the rolling TR sum is zero, this guide marks Vortex unavailable. If smoothed TR is zero, it sets both DI values to zero; if their sum is zero, it sets DX to zero. ADX then averages those DX observations. These are explicit conventions, not universal platform requirements.

11

Check a small rising and reflected path

The constructed example uses length 3 and eight closes from 100 to 107; each high is close plus 1 and each low is close minus 1. Valid VI values are 1.5 and 0.5; +DI is 50 and −DI is 0. ADX becomes 100 on observation 6. Reflection swaps direction while keeping ADX at 100.

A rising path with teaching length 3

Constructed arithmetic
VI+VI−+DI−DIADX
A rising path with teaching length 3991011041061080.40.71.01.31.6050100Arbitrary price unitsVortex3DMI3 / ADX312345678
Constructed closes 100 to 107; high equals close plus 1 and low equals close minus 1. VI+=1.5, VI−=0.5, +DI=50, −DI=0. The first ADX3 is 100 on observation 6; unavailable initial values are not plotted as zero.

Reflecting prices reverses direction and preserves ADX

Constructed arithmetic

Rising path

Rising path991011041061081468
VI+
1.50
VI−
0.50
+DI
50.00
−DI
0.00
ADX
100.00

Reflected falling path

Reflected falling path1921941971992011468
VI+
0.50
VI−
1.50
+DI
0.00
−DI
50.00
ADX
100.00
The reflected closes are 200 to 193. High and low are reflected together. VI+ and VI− swap, as do +DI and −DI; the available DX and ADX series remain identical. Neither path is market data.
12

Keep the real calendar window and its gaps

The first Monday-to-Sunday UTC week of 2024 contains 26 observed H4 intervals in these data: 16 contain 240 minute records and 10 are partial or sparse. No absent quote or interval is invented. Calculation state continues across observed intervals, so 14 bars need not span exactly 56 elapsed hours.

13

Inspect three panels on the same observation

Select an interval to read its Bid OHLC, Vortex lines, DMI lines and ADX. The price panel, Vortex panel and DMI/ADX panel share the selected interval and use separate vertical scales. Display rounding does not change the retained calculations. The inspector also shows actual minute coverage.

EUR/USD H4: prices, Vortex and DMI/ADX

Actual historical observations
VI+VI−+DI−DIADX
EUR/USD H4: prices, Vortex and DMI/ADX1.08571.09091.09611.10131.10650.520.771.021.281.530255075100EUR/USD Bid · USD per EURVortex14 · dimensionlessDMI14 and ADX14 · 0–1002024-01-01T20:00:00Z / O 1.10427 H 1.10447 L 1.10356 C 1.10365 / M1 1152024-01-02T00:00:00Z / O 1.10366 H 1.10432 L 1.10176 C 1.10245 / M1 2402024-01-02T04:00:00Z / O 1.10245 H 1.1038 L 1.10151 C 1.10153 / M1 2402024-01-02T08:00:00Z / O 1.10156 H 1.10387 L 1.09665 C 1.0969 / M1 2402024-01-02T12:00:00Z / O 1.09691 H 1.09717 L 1.0941 C 1.09435 / M1 2402024-01-02T16:00:00Z / O 1.09436 H 1.09616 L 1.09408 C 1.09465 / M1 2402024-01-02T20:00:00Z / O 1.09465 H 1.09511 L 1.09375 C 1.09416 / M1 2382024-01-03T00:00:00Z / O 1.09416 H 1.09622 L 1.09412 C 1.09608 / M1 2382024-01-03T04:00:00Z / O 1.09607 H 1.09627 L 1.09511 C 1.09603 / M1 2392024-01-03T08:00:00Z / O 1.09602 H 1.09654 L 1.09154 C 1.09195 / M1 2402024-01-03T12:00:00Z / O 1.09195 H 1.09385 L 1.0898 C 1.09044 / M1 2402024-01-03T16:00:00Z / O 1.09045 H 1.09257 L 1.08929 C 1.09176 / M1 2402024-01-03T20:00:00Z / O 1.09177 H 1.09275 L 1.0915 C 1.09258 / M1 2382024-01-04T00:00:00Z / O 1.09259 H 1.09306 L 1.0916 C 1.09261 / M1 2392024-01-04T04:00:00Z / O 1.09261 H 1.09436 L 1.09208 C 1.09375 / M1 2402024-01-04T08:00:00Z / O 1.09375 H 1.09721 L 1.09345 C 1.09479 / M1 2402024-01-04T12:00:00Z / O 1.09477 H 1.09652 L 1.09327 C 1.0955 / M1 2402024-01-04T16:00:00Z / O 1.09551 H 1.09639 L 1.09418 C 1.0947 / M1 2402024-01-04T20:00:00Z / O 1.09469 H 1.095 L 1.0943 C 1.09462 / M1 2352024-01-05T00:00:00Z / O 1.09461 H 1.09558 L 1.09391 C 1.09392 / M1 2402024-01-05T04:00:00Z / O 1.09392 H 1.09411 L 1.09226 C 1.09231 / M1 2382024-01-05T08:00:00Z / O 1.09231 H 1.09305 L 1.09028 C 1.09142 / M1 2402024-01-05T12:00:00Z / O 1.09142 H 1.09984 L 1.08767 C 1.09781 / M1 2402024-01-05T16:00:00Z / O 1.09782 H 1.09805 L 1.09352 C 1.09452 / M1 2402024-01-05T20:00:00Z / O 1.09452 H 1.09471 L 1.09357 C 1.09392 / M1 1202024-01-07T20:00:00Z / O 1.09386 H 1.09456 L 1.09349 C 1.09415 / M1 11401-01 20:0001-02 16:0001-03 12:0001-04 08:0001-05 04:0001-07 20:00
Interval anchor · UTC
Scheduled interval end · UTC
First observed minute · UTC
Last observed minute · UTC
Open
1.10427
High
1.10447
Low
1.10356
Close
1.10365
TR
0.00091
VI+
0.8224
VI−
1.2189
+DI
19.72
−DI
18.16
DX
4.10
ADX
27.12
Observed minute records
115
26 observed UTC H4 intervals in 1–7 January 2024, aggregated from 5,854 HistData Bid minute records. Only 16 intervals contain all 240 records. Equal spacing counts observed intervals; temporal gaps remain in the timestamps.
14

Distinguish interval anchors from observed quotes

The first displayed interval is anchored at 1 January 20:00 UTC, but its first retained minute record is stamped 22:00. Its scheduled end is 2 January 00:00. The final interval ends on 8 January 00:00 UTC. Final readings belong to the ended interval; an anchor does not prove a quote existed at that instant.

An interval can begin before its first retained minute

Actual historical observations
An interval can begin before its first retained minuteInterval anchor20:00 UTCFirst retained minute22:00 UTCScheduled end00:00 UTC1–2 January 2024 · UTC
Actual first interval: anchor 1 January 20:00 UTC, first retained minute 22:00, last observed minute 23:59, scheduled end 2 January 00:00. No quote is inferred at 20:00 or in absent minutes.
15

Specify crossings and thresholds before testing

A completed-bar upward Vortex cross requires the previous VI+ to be at or below VI− and the current VI+ strictly above VI−; all four VI readings must be available. A line ordering, a new crossing and an ADX threshold are different conditions. Thresholds such as 20 or 25 require a separately specified and evaluated trading rule.

16

Reproduce measurements before evaluating a strategy

The downloads contain observed source intervals, preceding context, continuation state, formulas and a checker. The original EUR/USD evidence enables full-history replay. The existing Vortex/EMA200 strategy remains a separate study. Entries, execution costs, position sizing and account returns are outside this indicator comparison.

Frequently asked questions

Does rising ADX mean prices are rising?

No. ADX uses an absolute directional imbalance. It can rise during either upward or downward price movement; inspect VI or DI ordering separately.

Are Vortex and DMI the same after changing their scale?

No. Vortex uses cross-bar high-to-low distances and rolling sums. DMI uses exclusive directional movement and recursive Wilder smoothing. Multiplying one output cannot make the two constructions identical.

Can a Vortex line exceed 1?

Yes. Its movement sum can exceed the true-range sum. The ratio is dimensionless and is not a return or a probability.

Why does an inside bar affect the indicators differently?

Both directional movements are zero under the DMI rule, but the Vortex cross-bar distances can remain positive. Each construction also retains a different form of history.

Why might my platform show another ADX value?

Compare the price source, three lengths, mean seed, missing-bar policy, zero cases and smoothing type. A shared label of 14 does not prove identical initialization or retained history.

Does combining a Vortex cross with ADX prove profitability?

No. This guide checks indicator arithmetic and historical readings. A trading conclusion needs defined entries, exits, execution, costs and risk sizing, followed by a separate evaluation.

Primary sources

Download data and calculations

Created by the MyProfitFactor editorial team.

Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.