Wilder’s DMI (MT4)
Wilder’s Directional Movement Index (DMI) plots +DI, –DI, and ADX to quantify trend direction and strength. This version adds clean coloring, alerts, and (optionally) arrows for MetaTrader 4.
What it shows
- +DI vs –DI crosses → potential bull/bear control shifts.
- ADX → trend strength (rising ADX = strengthening trend).
- Levels (e.g., ADX 20/25/35) to separate range vs trending conditions.
- (Optional) alerts/arrows — DI crosses, ADX rising/falling, level exits/returns.
Trade ideas
- DI cross + rising ADX: enter when +DI crosses above –DI and ADX is rising above 20–25; mirror for shorts.
- Pullback in trend: with +DI on top and ADX rising, buy pullbacks to structure; exit on DI recross or ADX roll‑over.
- Range filter: when ADX < 20, fade extremes back to mean/structure rather than trend‑follow.
- (Optional) MTF filter: only take M15 signals when H1 ADX rising in the same direction.
Inputs that matter
- Period — default 14 (Wilder); shorter → more responsive.
- Smoothing — average type for DI/ADX.
- Levels/alerts — DI crosses, ADX thresholds, slope states.
- Colors/widths — quick visual read.
Suggested usage
- M5–M15: DI crosses with ADX confirmation.
- M30–H4: trend pullbacks with ADX > 20–25.
- Daily+: bias map and strength gauge.
Installation (MT4)
- Open MetaTrader 4 → File → Open Data Folder.
- Copy
wilders-dmi-histogram.ex4
to MQL4/Indicators. - Restart MT4 (or refresh Navigator) and attach Wilder’s DMI.
- Tweak inputs → OK.
FAQ
Does it repaint? No on closed bars; DI/ADX are non‑repainting.
Use in EAs? Yes, via iCustom
.
Markets? FX, indices, metals, crypto — anything on MT4.
Disclaimer: Test on a demo account first; risk management is essential.