dogabot dogabot

strategy

ADX (Average Directional Index)

What ADX, +DI, and −DI measure for trend strength and direction, and how dogabot’s ADX rule uses them.

strategyindicatorsadx

The Average Directional Index (ADX) measures trend strength, not direction. +DI and −DI (Directional Indicators) show which side of the market is dominant.

Components

LineMeaning
ADXHow strong the trend is (0–100 scale)
+DIStrength of upward movement
−DIStrength of downward movement

ADX is built with Wilder smoothing from true range and directional movement.

Formula

True range for bar t:

TR_t = max(H_t − L_t, |H_t − C_{t−1}|, |L_t − C_{t−1}|)

Directional movement (+DM, −DM) compares the up-move and down-move from the prior bar.

Wilder-smoothed +DI and −DI over period N:

+DI = 100 × Smoothed(+DM) / Smoothed(TR)

−DI = 100 × Smoothed(−DM) / Smoothed(TR)

Directional index and ADX:

DX = 100 × |+DI − −DI| / (+DI + −DI)

ADX = Wilder smoothed average of DX over N bars

Typical settings

ParameterDefault on dogabot
Period14
Threshold25

Common interpretation:

How traders use ADX

Traders often require ADX above a threshold before taking directional trades, then use +DI vs −DI to pick the side. This filters out choppy conditions where trend rules whipsaw.

In dogabot

The ADX trading rule (newer directional rule) emits:

If ADX is below the threshold, the rule stays neutral.

Example

With period 14 and threshold 25, ADX = 32, +DI = 28, −DI = 15. Trend strength passes the threshold and bulls lead → the ADX rule may buy. If ADX = 18, the rule stays neutral regardless of DI.

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

Try Backtest