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
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.
| Indicator | Measurement | History and smoothing |
|---|---|---|
| Vortex | Relative cross-bar movement | 14-transition rolling sums |
| DMI | Exclusive directional movement | Mean-seeded recursive RMA14 |
| ADX | Smoothed absolute DI imbalance | Mean-seeded RMA14 of DX14 |
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.
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.
TR_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 arithmeticNormalize 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.
VI+ = SUM(VM+, 14) / SUM(TR, 14)VI- = SUM(VM-, 14) / SUM(TR, 14)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.
Up = 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 0DMI keeps only the larger positive movement
Constructed arithmetic| Case | High | Low | VM+ | VM− | +DM | −DM | TR |
|---|---|---|---|---|---|---|---|
| 1 · Rising range | 112 | 102 | 12 | 8 | 2 | 0 | 10 |
| 2 · Inside bar | 108 | 102 | 8 | 8 | 0 | 0 | 6 |
| 3 · Equal outside movements | 112 | 98 | 12 | 12 | 0 | 0 | 14 |
| 4 · Downward gap | 96 | 90 | 4 | 20 | 0 | 10 | 15 |
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.
RMA14_seed = mean(first 14 valid transitions)RMA14_t = (13 * RMA14_prev + x_t) / 14Calculate 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.
+DI = 100 * RMA14(+DM) / RMA14(TR); -DI = 100 * RMA14(-DM) / RMA14(TR)DX = 100 * abs(+DI - -DI) / (+DI + -DI)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.
ADX14_seed = mean(first 14 valid DX14)ADX14_t = (13 * ADX14_prev + DX14_t) / 14Count 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.
| Indicator | Observed bars needed |
|---|---|
| VI14 / DI14 / DX14 | 15 |
| ADX14 | 28 |
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.
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.
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 arithmeticReflecting prices reverses direction and preserves ADX
Constructed arithmeticRising path
- VI+
- 1.50
- VI−
- 0.50
- +DI
- 50.00
- −DI
- 0.00
- ADX
- 100.00
Reflected falling path
- VI+
- 0.50
- VI−
- 1.50
- +DI
- 0.00
- −DI
- 50.00
- ADX
- 100.00
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.
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- 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
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 observationsSpecify 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.
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
Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.