INDICATORS · DMI WARM-UP

DMI in Crypto: Warm-Up Bars and Short-History Errors

+DI and −DI use Wilder smoothing of directional movement. They exist sooner than ADX, but still carry start-point effects.

Short answer

DMI(14) needs about 15 bars for the first +DI and −DI values. Their smoothing is recursive, so early values depend on the first bars of the series; crosses of +DI and −DI on short histories can differ from long-history calculations. ADX, built on DMI, needs more. For DMI-based filters, drop early bars and check crosses on a longer series.

How much history DMI needs

ComponentBars neededType
±DM per bar2Per bar
True range2Per bar
Smoothed ±DM, TR (14)≈ 15Recursive
+DI, −DI≈ 15Derived

Recursive smoothing: values depend on where the series starts and settle only gradually.

Short-history errors

DMI: illustrative value on the same bar by history lengthDMI: illustrative value on the same bar by history length: Start 30 bars back 28 ; Start 150 bars back 24 ; Start 500 bars back 24 .DMI: ILLUSTRATIVE VALUE ON THE SAME BAR BY HISTORY LENGTHStart 30 bars back28Start 150 bars back24Start 500 bars back24
Different history, different DMI. Original ChartsPod editorial graphic.
  • +DI/−DI crosses on new listings
  • Start effects
  • Gaps
  • Comparing series with different starts
DMI warm-up checksDMI warm-up checks: Bars available per symbol; First valid bar marked; Settling period for recursive parts; Same start date when comparing; Gaps restart or distort.DMI WARM-UP CHECKSBars available per symbolFirst valid bar markedSettling period for recursive partsSame start date when comparingGaps restart or distort
Check before thresholds. Original ChartsPod editorial graphic.

Rules

Related: ADX in Crypto: Warm-Up Bars and Short-History Errors, DMI Directional Filter Backtest in Crypto: Fees, Slippage and Break-Even Costs.

Load long history before reading DMI in ChartsPod.

Open ChartsPod

For DMI-based filters, drop early bars and check crosses on a longer series.

Test DMI in Crypto on a perpetual chart; no account is needed to chart.

Launch ChartsPod

Questions readers ask

How many bars does DMI need?

About 15 to exist.

Is it recursive?

Yes, Wilder smoothing.

How does it relate to ADX?

ADX is built on it and needs more.

Sources and methodology

Indicator formulas are standard definitions; live-versus-closed behaviour follows TradingView's repainting documentation. Values in examples are illustrative.

  1. TradingView Pine Script: Repainting — live vs historical calculation.
  2. ChartsPod indicator reference — indicator calculations.
  3. ChartsPod indicator reference — indicator calculations.

This article explains research tools and workflows. It is not financial advice, does not recommend buying or selling any asset and does not predict prices. Crypto derivatives carry a risk of rapid and total loss of margin.

CHARTSPOD EDITORIAL EDITION · RESEARCH AND EDUCATION ONLY · NOT FINANCIAL ADVICE.