T
Traderoid

ADX Node

Average Directional Index

IndicatorTrendStrength

Overview

The Average Directional Index (ADX) is a technical indicator used to measure the strength of a trend, regardless of its direction. Developed by J. Welles Wilder, the ADX is part of the Directional Movement System and helps traders determine whether the market is trending or ranging.

Unlike many indicators that show both direction and strength, ADX focuses solely on trend strength. It's typically used alongside the Plus Directional Indicator (+DI) and Minus Directional Indicator (-DI) to provide a complete picture of trend dynamics.

Formula

The ADX calculation involves multiple steps using directional movement and true range:

+DM = Current High - Previous High (if positive, else 0)
-DM = Previous Low - Current Low (if positive, else 0)
Directional Movement
TR = max(High - Low, |High - Previous Close|, |Low - Previous Close|)
True Range
+DI = 100 × (Smoothed +DM / Smoothed TR)
-DI = 100 × (Smoothed -DM / Smoothed TR)
Directional Indicators
DX = 100 × |+DI - -DI| / (+DI + -DI)
Directional Index
ADX = Smoothed Average of DX
Average Directional Index (typically 14-period smoothing)

The ADX value ranges from 0 to 100. Values above 25 generally indicate a strong trend, while values below 20 suggest a weak trend or ranging market. The smoothing is typically done using Wilder's smoothing method (similar to exponential moving average).

Parameters

ParameterTypeDefaultDescription
periodnumber14The number of periods used to calculate the ADX and directional indicators. Standard is 14, as recommended by Wilder.
sourceNodeAutoThe root data source node. ADX requires OHLC data (Open, High, Low, Close) to calculate directional movement.

💡 Tip: You can drag the period label left or right to quickly adjust the value. The default period of 14 is Wilder's original recommendation and works well for most markets.

Output Values

The ADX node provides three separate output lines:

ADX Line

The main ADX line (purple) measures trend strength from 0-100. Values above 25 indicate a strong trend, while values below 20 suggest a weak or absent trend. The ADX line itself doesn't indicate direction, only the strength of the current trend.

+DI Line (Plus Directional Indicator)

The +DI line (green, dashed) measures upward directional movement. When +DI is above -DI, it indicates bullish pressure and an uptrend. Higher +DI values suggest stronger buying pressure.

-DI Line (Minus Directional Indicator)

The -DI line (red, dashed) measures downward directional movement. When -DI is above +DI, it indicates bearish pressure and a downtrend. Higher -DI values suggest stronger selling pressure.

Interpretation Guide

ADX ValueTrend StrengthTrading Implication
0-20Absent or WeakRanging market, avoid trend-following strategies
20-25DevelopingTrend may be starting, monitor for confirmation
25-50StrongClear trend present, trend-following strategies work well
50-75Very StrongPowerful trend, stay with the trend
75-100Extremely StrongRare, exceptional trend strength, potential exhaustion

Common Use Cases

1. Trend Strength Filter

Use ADX to filter trading signals from other indicators. Only take trend-following signals when ADX is above 25, indicating a strong enough trend. This helps avoid whipsaws in choppy markets and improves the win rate of trend-based strategies.

2. DI Crossover Strategy

Trade when +DI crosses above -DI (bullish) or -DI crosses above +DI (bearish), but only when ADX is rising or above 25. This ensures you're trading with directional movement that has sufficient strength behind it.

3. Ranging Market Detection

When ADX is below 20, the market is likely ranging. This is ideal for mean-reversion strategies, oscillator-based trading, or simply staying on the sidelines. Avoid trend-following approaches during these periods.

4. Trend Exhaustion Warning

When ADX reaches extremely high levels (above 50-60) and starts declining, it may signal trend exhaustion. This can be a warning to tighten stops or take partial profits, as the trend may be losing momentum.

Advantages & Limitations

Advantages

  • Measures trend strength objectively (0-100 scale)
  • Works in any market and timeframe
  • Helps avoid false signals in ranging markets
  • DI lines provide directional information
  • Non-directional, works for both long and short
  • Widely accepted and battle-tested
!

Limitations

  • Lagging indicator - reacts after trend has started
  • Doesn't predict trend direction on its own
  • Can remain low during early trend formation
  • Complex calculation with multiple components
  • No clear exit signals provided
  • May give conflicting signals with DI crossovers

Tips & Best Practices

💡 Combine with Direction Indicators

ADX tells you trend strength but not direction. Always combine it with moving averages, MACD, or the DI lines to determine which direction to trade. Use ADX as a filter, not as a standalone signal.

📊 Watch for Rising ADX

A rising ADX (regardless of level) indicates increasing trend strength, while a falling ADX suggests weakening trend or consolidation. The direction of ADX movement can be more important than its absolute value.

⚡ The 25 Threshold Rule

While 25 is the standard threshold for "strong trend," different markets and timeframes may require adjustment. Highly volatile assets might need a higher threshold (30-35), while stable markets might use a lower one (20-23).

⚠️ Don't Fight Low ADX

When ADX is below 20, the market is likely ranging. Avoid trend-following strategies and consider mean-reversion approaches instead. Many traders make the mistake of forcing trend trades when ADX clearly indicates no trend exists.

Example Strategy

Here's a comprehensive ADX-based trend strength filtering strategy:

ADX Trend Filter Strategy

1Setup

  • Connect a Stock Node to an ADX node (period = 14)
  • Add two EMA nodes: Fast EMA (12) and Slow EMA (26)
  • Optional: Add RSI node for overbought/oversold confirmation

2Entry Signal (Long)

  • Primary: Fast EMA crosses above Slow EMA
  • Filter: ADX is above 25 OR rising from below 20
  • Confirmation: +DI is above -DI (bullish directional movement)
  • Optional: RSI between 40-70 (not overbought)

3Exit Signal

  • Fast EMA crosses below Slow EMA
  • Or ADX falls below 20 (trend is weakening)
  • Or -DI crosses above +DI (bearish momentum building)
  • Use a trailing stop based on ATR or recent swing lows

4Risk Management

  • Stronger trends (ADX > 40): Use wider stops, hold longer
  • Moderate trends (ADX 25-40): Standard stops and position sizes
  • Weak trends (ADX 20-25): Tighter stops, smaller positions
  • Scale out of positions as ADX peaks and begins declining

Related Nodes

EMA (Exponential Moving Average)

Combine with ADX for trend direction. ADX confirms when EMA signals are worth taking.

SMA (Simple Moving Average)

Use SMA crossovers with ADX filter to reduce false signals in ranging markets.

MACD

MACD shows momentum and direction, ADX confirms the strength. Powerful combination for entries.

Parabolic SAR

SAR provides entry/exit points, ADX confirms if the trend is strong enough to follow SAR signals.