ADX Calculator
Calculate ADX, directional movement and +DI / −DI from your OHLC series.
Illustrative example result
Latest ADX: 31.242539. Period: 14. Input order: oldest to newest.
| 1 | |||||||
| 2 | 4.08 | 2.08 | 0 | ||||
| 3 | 4 | 0.54 | 0 | ||||
| 4 | 4 | 0 | 1.14 | ||||
| 5 | 4 | 0 | 1.39 | ||||
| 6 | 4 | 0 | 0.01 | ||||
| 7 | 4 | 1.76 | 0 | ||||
| 8 | 4.27 | 2.27 | 0 | ||||
| 9 | 4 | 1.07 | 0 | ||||
| 10 | 4 | 0 | 0.76 | ||||
| 11 | 4 | 0 | 1.51 | ||||
| 12 | 4 | 0 | 0.51 | ||||
| 13 | 4 | 1.33 | 0 | ||||
| 14 | 4.31 | 2.31 | 0 | ||||
| 15 | 4 | 1.54 | 0 | 22.7674 | 9.3893 | 41.6026 | |
| 16 | 4 | 0 | 0.28 | 21.1587 | 9.2205 | 39.2973 | |
| 17 | 4 | 0 | 1.48 | 19.6626 | 11.1848 | 27.483 | |
| 18 | 4 | 0 | 0.94 | 18.2713 | 12.0562 | 20.493 | |
| 19 | 4 | 0.82 | 0 | 18.4291 | 11.2026 | 24.3878 | |
| 20 | 4.2 | 2.2 | 0 | 20.946 | 10.3721 | 33.7629 | |
| 21 | 4 | 1.93 | 0 | 22.8753 | 9.6392 | 40.7083 | |
| 22 | 4 | 0.24 | 0 | 21.682 | 8.9576 | 41.5294 | |
| 23 | 4 | 0 | 1.29 | 20.1477 | 10.6059 | 31.0267 | |
| 24 | 4 | 0 | 1.27 | 18.721 | 12.1031 | 21.4697 | |
| 25 | 4 | 0.28 | 0 | 17.8905 | 11.2455 | 22.8065 | |
| 26 | 4 | 1.95 | 0 | 20.0783 | 10.4483 | 31.5463 | |
| 27 | 4.19 | 2.19 | 0 | 22.462 | 9.6745 | 39.7911 | |
| 28 | 4 | 0.78 | 0 | 22.2525 | 8.9901 | 42.4497 | 32.7396 |
| 29 | 4 | 0 | 0.97 | 20.6771 | 10.0704 | 34.496 | 32.8651 |
| 30 | 4 | 0 | 1.47 | 19.2123 | 11.9604 | 23.2635 | 32.1792 |
| 31 | 4 | 0 | 0.25 | 17.8505 | 11.5557 | 21.4065 | 31.4098 |
| 32 | 4 | 1.57 | 0 | 19.3682 | 10.7361 | 28.6738 | 31.2143 |
| 33 | 4.31 | 2.31 | 0 | 21.9708 | 9.9198 | 37.7887 | 31.6839 |
| 34 | 4 | 1.3 | 0 | 22.7145 | 9.2191 | 42.2606 | 32.4394 |
| 35 | 4 | 0 | 0.54 | 21.1089 | 9.5217 | 37.8287 | 32.8244 |
| 36 | 4 | 0 | 1.52 | 19.6157 | 11.5362 | 25.9355 | 32.3323 |
| 37 | 4 | 0 | 0.72 | 18.2271 | 11.9938 | 20.6258 | 31.4961 |
| 38 | 4 | 1.09 | 0 | 18.8662 | 11.1442 | 25.731 | 31.0843 |
| 39 | 4.28 | 2.28 | 0 | 21.4625 | 10.3033 | 35.1297 | 31.3733 |
| 40 | 4 | 1.74 | 0 | 23.0181 | 9.576 | 41.241 | 32.0781 |
| 41 | 4 | 0 | 0.04 | 21.3919 | 8.9701 | 40.9123 | 32.7091 |
| 42 | 4 | 0 | 1.41 | 19.8794 | 10.8282 | 29.4756 | 32.4782 |
| 43 | 4 | 0 | 1.11 | 18.4729 | 12.0255 | 21.1401 | 31.6683 |
| 44 | 4 | 0.57 | 0 | 18.1739 | 11.174 | 23.8512 | 31.1099 |
| 45 | 4.1 | 2.1 | 0 | 20.5693 | 10.364 | 32.9912 | 31.2443 |
| 46 | 4.06 | 2.06 | 0 | 22.7342 | 9.6204 | 40.5317 | 31.9077 |
| 47 | 4 | 0.5 | 0 | 22.0102 | 8.9397 | 42.231 | 32.6451 |
| 48 | 4 | 0 | 1.15 | 20.4519 | 10.3422 | 32.8299 | 32.6583 |
| 49 | 4 | 0 | 1.39 | 19.0031 | 12.0713 | 22.307 | 31.9189 |
| 50 | 4 | 0.03 | 0 | 17.7092 | 11.2157 | 22.4498 | 31.2425 |
How to read these results
Formula & calculation basis
TR is the maximum of high − low, |high − previous close| and |low − previous close|. Positive and negative directional movement are mutually exclusive. Seed each smoothed sum with the first n changes, then use previous sum − previous sum/n + current. DI = 100 × smoothed DM / smoothed TR; DX = 100 × |+DI − −DI| / (+DI + −DI). The first ADX is the mean of n DX values, then Wilder smoothing applies.
Coverage & limitations
The first ADX needs 2n bars. Zero true range gives DI = 0; zero total DI gives DX = 0. More history can change seeded values. ADX measures strength, not direction or a guaranteed return.
Sources & update policy
Example inputs are synthetic and are not company data or a forecast. The formula version is dated 2026-10-28. Calculations do not fetch market data.
Continue the research
Explore company records and their sources with Pineify Finance Agent.