DMI/ADX settings: level 25 removes four in five DI crosses
DMI/ADX periods, thresholds, DI crosses and DI comparison tested in 1,344 USD/JPY runs. The standard 14/25 hourly cross made 101 trades and lost 68.1 pips in 2025.
Directional Movement Index (DMI) puts three lines in one pane: +DI for positive directional movement, −DI for negative directional movement, and ADX for the smoothed separation between them. The DI lines supply direction. ADX uses an absolute difference, so it measures strength without distinguishing an uptrend from a downtrend.
Period 14 with ADX at least 25 is the familiar setup. On USD/JPY in 2025, adding that threshold cut the period-14 DI crosses from 2,184 to 339 on M15, 534 to 101 on H1, and 141 to 19 on H4. Only 13.5% to 18.9% of the crosses remained.
The smaller set was not consistently better. The 14/25 DI cross made money in both years only on M15. H1 lost 68.1 pips in 2025 after gaining 137.5 in 2024. Used as a filter on a 10/20 SMA cross, ADX 25 reduced 2025 net from +377.4 to −922.1 pips.
What DMI/ADX measures
The calculation starts with changes in consecutive highs and lows.
- Measure how far the current high rose above the previous high.
- Measure how far the previous low stood above the current low.
- Keep only the larger positive move as +DM or −DM.
- Divide the smoothed directional moves by true range to produce +DI and −DI.
- Calculate DX as
|+DI − −DI| ÷ (+DI + −DI) × 100, then smooth DX into ADX.
Taking the absolute value removes direction. ADX at 30 does not mean price is rising. It means the two DI lines have separated.
The MetaTrader 5 ADX documentation describes the basic period-14 rule as buying when +DI is above −DI and selling when −DI moves above +DI. MetaTrader's Wilder calculation reference shows the full sequence from +DM, −DM and true range through DI, DX and ADX.
DMI/ADX settings and signals
DMI is drawn in a separate pane below the candles, with one ADX line and two DI lines. All three run from 0 to 100.
| Platform | Where to find it |
|---|---|
| MT4 / MT5 | Insert → Indicators → Trend → Average Directional Movement Index |
| TradingView | Search the indicator list for Directional Movement Index (DMI) |
| Browser (Formiq) | Pick ADX from the indicator list |
TradingView separates ADX from DMI. Its official DMI reference directs readers to DMI when all three lines are needed. MT4 and MT5 show the three lines together; MT5 also offers a separate ADX Wilder calculation.
Chart settings
| Field | Default | What it changes |
|---|---|---|
| Period | 14 | Smoothing length for +DM, −DM, true range and DX |
| ADX line | Platform colour | Trend strength without direction |
| +DI line | Platform colour | Relative strength of positive directional movement |
| −DI line | Platform colour | Relative strength of negative directional movement |
| Levels | Optional | Reference lines such as 20 or 25 |
A shorter period reacts sooner and produces more DI crosses. A longer period smooths the lines but reacts later to short trends. Changing the threshold does not change the lines; it changes which signals are accepted.
Backtest settings
| Field | Default | What it changes |
|---|---|---|
| Period | 14 | Number of bars in the DMI/ADX calculation |
| Minimum | 25 | Allows a new entry only while ADX is at or above this level |
| Direction | Filter only | Keeps the direction chosen by another rule and adds only the ADX threshold |
The direction menu has three choices:
- Filter only: require the ADX threshold but take direction from another rule, such as a moving-average cross
- +DI/−DI cross: buy when +DI crosses above −DI and sell on the reverse cross, provided ADX meets the threshold
- +DI/−DI comparison: while ADX meets the threshold, buy when +DI is higher and sell when −DI is higher; entry does not have to occur on the crossing bar
The sweep treats the last two as separate systems. Filter only is tested by adding it to a 10/20 SMA cross.
How this was measured
| Item | Value |
|---|---|
| Pair | USD/JPY |
| Window | 2025-01-01 to 2025-12-31, with 2024 run identically for comparison |
| Timeframes | 15-minute / 1-hour / 4-hour |
| Readings | +DI/−DI cross / +DI/−DI comparison |
| Periods | 5 / 7 / 10 / 14 / 20 / 28 / 40 / 50 |
| Minimum ADX | 0 / 15 / 20 / 25 / 30 / 35 / 40 |
| Combinations | 112 per cell; 3 timeframes × 4 windows = 1,344 runs |
| Exit | The opposite DI signal; entry and exit share the same rule set |
| Stops and targets | None in the main sweep, tested separately below |
| Spread and fill | 0.3 pips fixed, filled at the close |
| Size | 0.1 lot |
Level 0 is the no-ADX-filter control. The 2025 sample is also split into two halves so a full-year total cannot hide a reversal within the year.
Level 25 removes more than four in five DI crosses
The table counts period-14 bars above each threshold and the DI crosses that survived level 25.
| Timeframe | Year | ADX ≥ 20 bars | ADX ≥ 25 bars | ADX ≥ 30 bars | All DI crosses | Crosses at ADX ≥ 25 |
|---|---|---|---|---|---|---|
| M15 | 2024 | 63.65% | 43.47% | 27.93% | 2,136 | 349 |
| M15 | 2025 | 61.22% | 40.51% | 25.15% | 2,184 | 339 |
| H1 | 2024 | 64.82% | 44.91% | 29.49% | 501 | 93 |
| H1 | 2025 | 66.33% | 47.24% | 31.40% | 534 | 101 |
| H4 | 2024 | 73.82% | 50.43% | 30.45% | 142 | 35 |
| H4 | 2025 | 67.20% | 37.58% | 17.58% | 141 | 19 |
ADX was at least 25 on 37.58% to 50.43% of all bars, yet only 13.5% to 24.6% of DI crosses met the same threshold. A DI cross marks a change in direction; ADX is a smoothed measure of separation and often remains low on the crossing bar.
The timing mismatch also appears in the slope. At the 2025 crossing bars, ADX was rising on only 218 of 2,184 M15 crosses, 53 of 534 H1 crosses and 11 of 141 H4 crosses.
Only 3 to 16 of 56 settings survived both years
Each reading has eight periods by seven thresholds.
DI cross
| Timeframe | Profitable 2025 | 2025 median | Profitable 2024 | 2024 median | Profitable both years |
|---|---|---|---|---|---|
| M15 | 17/56 | −40.1 pips | 17/56 | −189.8 pips | 10/56 |
| H1 | 27/56 | 0.0 pips | 19/56 | −37.9 pips | 9/56 |
| H4 | 6/56 | −167.1 pips | 29/56 | +3.2 pips | 4/56 |
DI comparison
| Timeframe | Profitable 2025 | 2025 median | Profitable 2024 | 2024 median | Profitable both years |
|---|---|---|---|---|---|
| M15 | 18/56 | −335.5 pips | 26/56 | −53.2 pips | 13/56 |
| H1 | 23/56 | −79.4 pips | 32/56 | +118.4 pips | 16/56 |
| H4 | 3/56 | −817.8 pips | 38/56 | +359.2 pips | 3/56 |
The H4 DI-comparison grid moved from 38 profitable settings in 2024 to three in 2025. Changing the reading did not remove the timeframe reversal.
Period 14 and level 25 survived only on M15
The default combination produced the following runs.
| Reading | Timeframe | 2025 trades | 2025 win rate | 2025 net | 2024 trades | 2024 net |
|---|---|---|---|---|---|---|
| DI cross | M15 | 339 | 32.45% | +141.1 pips | 349 | +403.3 pips |
| DI cross | H1 | 101 | 33.66% | −68.1 pips | 93 | +137.5 pips |
| DI cross | H4 | 19 | 42.11% | +433.3 pips | 35 | +152.0 pips |
| DI comparison | M15 | 686 | 32.65% | −391.2 pips | 679 | +570.3 pips |
| DI comparison | H1 | 181 | 34.25% | −388.5 pips | 179 | +72.3 pips |
| DI comparison | H4 | 45 | 24.44% | −2,277.2 pips | 59 | +1,042.7 pips |
The H4 cross was profitable in both years, but only 19 trades occurred in 2025 and 35 in 2024. M15 supplied 339 and 349 trades and stayed profitable. DI comparison changed sign between the two years on every timeframe.
Levels 0 and 15 move more than the boundary at 25
These are hourly marginal means across all eight periods. Settings with no trades remain in the average at zero pips.
DI-cross threshold
| Minimum ADX | Mean net 2025 | Mean net 2024 | Mean trades 2025 |
|---|---|---|---|
| 0 | −37.4 pips | +842.1 pips | 541.1 |
| 15 | +447.4 pips | −320.5 pips | 381.1 |
| 20 | +231.5 pips | −416.4 pips | 265.6 |
| 25 | +94.6 pips | −239.8 pips | 170.5 |
| 30 | +17.4 pips | −120.1 pips | 101.4 |
| 35 | +7.6 pips | −122.5 pips | 57.8 |
| 40 | +39.5 pips | +13.9 pips | 31.8 |
Level 0 averaged +842.1 pips in 2024 and −37.4 in 2025. Level 15 reversed the pattern, gaining 447.4 pips in 2025 and losing 320.5 in 2024. Level 40 was positive in both averages, but traded only 31.8 times per setting in 2025. Nothing special happened at 25.
DI-comparison threshold
| Minimum ADX | Mean net 2025 | Mean net 2024 | Mean trades 2025 |
|---|---|---|---|
| 0 | −84.0 pips | +788.4 pips | 542.1 |
| 15 | −36.1 pips | −14.9 pips | 417.5 |
| 20 | −317.6 pips | +52.2 pips | 326.8 |
| 25 | −215.6 pips | +80.9 pips | 248.1 |
| 30 | −178.2 pips | −47.7 pips | 183.5 |
| 35 | −295.6 pips | −107.8 pips | 136.4 |
| 40 | −138.7 pips | +22.3 pips | 98.8 |
Every DI-comparison threshold had a negative mean in 2025. Raising the minimum did not recover the loss.
Periods 5 and 7 were the only smoothing lengths with positive hourly marginal means in both years for both readings. The DI-cross means at period 5 were +347.9 pips in 2025 and +225.0 in 2024; period 7 returned +307.1 and +71.2. DI comparison returned +833.4 and +663.0 at period 5, then +437.7 and +476.5 at period 7. The shorter setting also averaged 596.1 cross trades and 729.3 comparison trades in 2025, so its result includes a much larger spread bill.
Four of six 2024 winners lost money in 2025
Each 2024 winner was carried unchanged into 2025.
| Reading | Timeframe | Period | Level | 2024 net | 2025 net | 2025 median |
|---|---|---|---|---|---|---|
| DI cross | M15 | 28 | 0 | +1,305.0 pips | +366.0 pips | −40.1 pips |
| DI cross | H1 | 50 | 0 | +1,513.1 pips | −1,309.9 pips | 0.0 pips |
| DI cross | H4 | 20 | 0 | +1,738.5 pips | −752.8 pips | −167.1 pips |
| DI comparison | M15 | 20 | 20 | +1,630.4 pips | +86.0 pips | −335.5 pips |
| DI comparison | H1 | 50 | 0 | +1,391.5 pips | −1,352.7 pips | −79.4 pips |
| DI comparison | H4 | 20 | 15 | +1,677.3 pips | −1,329.7 pips | −817.8 pips |
The two M15 winners remained positive, but retained only 22.4% and 5.3% of their 2024 net. Both H1 and H4 winners fell below their 2025 median under both readings.
A 33.66% win rate can still sit near break-even
The 14/25 hourly DI cross made 101 trades in 2025, won 33.66%, and lost 68.1 pips. Its average win was +54.05 pips and average loss −28.44 pips. Winning only one trade in three nearly broke even because the average win was about 1.9 times the average loss.
The 2025 H4 result looks better at 42.11% and +433.3 pips, but it contains only 19 trades. DI comparison at the same setting made 45 trades, won 24.44%, and lost 2,277.2 pips. Trade count, average win and loss, and annual net are needed alongside the win rate.
ADX reduced profit on a 10/20 SMA cross in both years
Filter only was added to the entry of a 10/20 SMA cross. The exit remained the unfiltered opposite cross.
| Year | ADX entry filter | Trades | Win rate | Annual net |
|---|---|---|---|---|
| 2025 | None | 358 | 39.11% | +377.4 pips |
| 2025 | At least 20 | 197 | 36.55% | −80.9 pips |
| 2025 | At least 25 | 117 | 31.62% | −922.1 pips |
| 2025 | At least 30 | 77 | 32.47% | −358.8 pips |
| 2024 | None | 315 | 41.59% | +2,888.4 pips |
| 2024 | At least 20 | 169 | 42.01% | +1,349.6 pips |
| 2024 | At least 25 | 106 | 48.11% | +1,073.2 pips |
| 2024 | At least 30 | 59 | 44.07% | +462.8 pips |
Level 25 raised the 2024 win rate from 41.59% to 48.11% while cutting net from +2,888.4 to +1,073.2 pips. All three thresholds turned the profitable 2025 baseline into a loss. Waiting for an already strong reading removed profitable early entries as well as losing crosses.
Sessions and exits did not transfer cleanly
The variants use the 14/25 hourly DI cross.
| Variant | 2025 trades | 2025 net | 2024 trades | 2024 net |
|---|---|---|---|---|
| Baseline | 101 | −68.1 pips | 93 | +137.5 pips |
| Tokyo, UTC 0–8 | 33 | −457.5 pips | 37 | +351.1 pips |
| London and New York, UTC 7–21 | 66 | +511.1 pips | 56 | −7.6 pips |
| Stop 30 / target 60 | 93 | +603.0 pips | 87 | +253.2 pips |
| Stop 50 / target 100 | 97 | +612.3 pips | 87 | −246.1 pips |
| Stop 100 / target 200 | 100 | +170.6 pips | 90 | −274.5 pips |
| Stop 50 / target 50 | 97 | +700.5 pips | 88 | +31.4 pips |
The London and New York window gained 511.1 pips in 2025 and lost 7.6 in 2024. Stop 30 / target 60 beat the baseline in both years. It was selected from four tested exit pairs and still needs another period for confirmation.
The 2025 loss remains at zero spread
The 14/25 hourly DI cross lost 37.8 pips at zero spread and 68.1 pips at 0.3. The 30.3-pip difference equals 101 trades times 0.3 pips, so transaction cost alone does not explain the loss.
In 2024, the same rule returned +165.3 pips at zero spread, +137.5 at 0.3, +25.9 at 1.5, and −20.6 at 2.0. Its break-even spread was about 1.78 pips. The losing 2025 run has no positive break-even spread.
Related articles
- Moving-average cross settings: the 10/20 SMA baseline used for the filter-only test
- Parabolic SAR settings: another trend rule whose net fell after adding ADX
- CCI settings: ADX thresholds tested on three readings of one trend indicator
- Alligator settings: the base rate of a three-line trend state measured before using it as a filter
- Build and test the conditions without code: combine DMI/ADX with another rule on a different pair or window
Notes
The sample uses USD/JPY in 2024 and 2025, close fills, a fixed 0.3-pip spread and 0.1 lot. ADX(14) needs 28 bars before its first value in this implementation. The main sweep exits on the opposite DI signal; fixed stops and targets are measured separately.
Questions people ask
- What are the best DMI/ADX settings?
- The common period 14 and level 25 did not produce a universal answer. Its DI cross was profitable in both years on M15, lost 68.1 pips on H1 in 2025, and traded only 19 times on H4 in 2025. Of the 56 hourly settings, nine DI-cross settings and 16 DI-comparison settings were profitable in both 2024 and 2025.
- What do ADX levels 20 and 25 mean?
- A common reading treats ADX above 25 as a strong trend and below 20 as a weak or absent trend. In this period-14 USD/JPY sample, ADX was at least 25 on 40.51% of M15 bars, 47.24% of H1 bars and 37.58% of H4 bars in 2025. Requiring 25 kept only 339 of 2,184 M15 DI crosses, 101 of 534 H1 crosses and 19 of 141 H4 crosses.
- Can ADX tell me whether to buy or sell?
- ADX cannot distinguish up from down because it smooths the absolute gap between +DI and −DI. Direction comes from which DI line is higher or from a cross between the two. Formiq's filter-only choice therefore needs another directional rule, such as a moving-average cross.
- Should I use a DI cross or DI comparison?
- A DI cross enters only when +DI and −DI change order. DI comparison can enter whenever ADX is above the threshold and one line is already higher. On H1 at period 14 and level 25, the cross made 101 trades and lost 68.1 pips in 2025; comparison made 181 trades and lost 388.5. Their 2024 results were +137.5 and +72.3 pips.
- Is DMI/ADX built into MT4 and MT5?
- Yes. It appears in a separate pane with ADX, +DI and −DI, and the default period is 14. MT5 includes the standard calculation and a Wilder version. Formiq exposes the period, minimum ADX level and three directional choices: filter only, DI cross and DI comparison.
Formiq is a free browser-based FX terminal with replay practice and no-code backtesting. Open the chart or see what the free plan includes.