ADX Calculator

Calculate ADX, directional movement and +DI / −DI from your OHLC series.

Your inputs

The starting values are an illustrative example. Calculations run locally; your inputs are not sent to a data provider.

One row per observation; four comma-separated prices per row. No thousands separators. Keep one currency, interval and adjustment basis. Maximum 2,000 observations.

Illustrative example result

Latest ADX: 31.242539. Period: 14. Input order: oldest to newest.

50 records

Calculation steps, oldest observation first. Unavailable values are warm-up or undefined windows; they are not zero.
1
24.082.080
340.540
4401.14
5401.39
6400.01
741.760
84.272.270
941.070
10400.76
11401.51
12400.51
1341.330
144.312.310
1541.54022.76749.389341.6026
16400.2821.15879.220539.2973
17401.4819.662611.184827.483
18400.9418.271312.056220.493
1940.82018.429111.202624.3878
204.22.2020.94610.372133.7629
2141.93022.87539.639240.7083
2240.24021.6828.957641.5294
23401.2920.147710.605931.0267
24401.2718.72112.103121.4697
2540.28017.890511.245522.8065
2641.95020.078310.448331.5463
274.192.19022.4629.674539.7911
2840.78022.25258.990142.449732.7396
29400.9720.677110.070434.49632.8651
30401.4719.212311.960423.263532.1792
31400.2517.850511.555721.406531.4098
3241.57019.368210.736128.673831.2143
334.312.31021.97089.919837.788731.6839
3441.3022.71459.219142.260632.4394
35400.5421.10899.521737.828732.8244
36401.5219.615711.536225.935532.3323
37400.7218.227111.993820.625831.4961
3841.09018.866211.144225.73131.0843
394.282.28021.462510.303335.129731.3733
4041.74023.01819.57641.24132.0781
41400.0421.39198.970140.912332.7091
42401.4119.879410.828229.475632.4782
43401.1118.472912.025521.140131.6683
4440.57018.173911.17423.851231.1099
454.12.1020.569310.36432.991231.2443
464.062.06022.73429.620440.531731.9077
4740.5022.01028.939742.23132.6451
48401.1520.451910.342232.829932.6583
49401.3919.003112.071322.30731.9189
5040.03017.709211.215722.449831.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

Methodology reference ↗

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.

Open Finance Agent ↗