ADX Node
Average Directional Index
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:
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
| Parameter | Type | Default | Description |
|---|---|---|---|
| period | number | 14 | The number of periods used to calculate the ADX and directional indicators. Standard is 14, as recommended by Wilder. |
| source | Node | Auto | The 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 Value | Trend Strength | Trading Implication |
|---|---|---|
| 0-20 | Absent or Weak | Ranging market, avoid trend-following strategies |
| 20-25 | Developing | Trend may be starting, monitor for confirmation |
| 25-50 | Strong | Clear trend present, trend-following strategies work well |
| 50-75 | Very Strong | Powerful trend, stay with the trend |
| 75-100 | Extremely Strong | Rare, 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.