ADX Calculator (Average Directional Index)

Calculate ADX, +DI, and -DI to measure trend strength and direction. Identify whether the market is trending or ranging with this essential technical indicator.

Enter High, Low, Close values separated by comma or space. Each line represents one period. Provide at least 15 rows of data.

Standard period is 14. Shorter periods are more sensitive; longer periods are smoother.

ADX Interpretation Guide

0-20: Weak trend / Ranging market
20-25: Emerging trend
25-50: Strong trend
50-75: Very strong trend
75-100: Extremely strong trend

Waiting for Data

Enter at least 15 rows of OHLC data to calculate ADX, +DI, and -DI.

What is the Average Directional Index (ADX)?

The Average Directional Index (ADX) is a technical analysis indicator developed by J. Welles Wilder Jr. in 1978. Unlike many other indicators that show trend direction, ADX specifically measures trend strength—how strong or weak a trend is, regardless of whether it's moving up or down.

ADX is part of the Directional Movement System, which also includes the Plus Directional Indicator (+DI) and Minus Directional Indicator (-DI). Together, these three components help traders identify both the strength and direction of market trends.

How is ADX Calculated?

The ADX calculation involves several steps using the Directional Movement Index (DMI) system:

  1. Calculate Directional Movement (+DM and -DM):
    • +DM = Current High - Previous High (if positive and greater than -DM)
    • -DM = Previous Low - Current Low (if positive and greater than +DM)
  2. Calculate True Range (TR): The maximum of:
    • Current High - Current Low
    • |Current High - Previous Close|
    • |Current Low - Previous Close|
  3. Smooth the values using Wilder's smoothing method over the period (typically 14)
  4. Calculate +DI and -DI:
    • +DI = (Smoothed +DM / Smoothed TR) × 100
    • -DI = (Smoothed -DM / Smoothed TR) × 100
  5. Calculate DX: DX = |+DI - -DI| / (+DI + -DI) × 100
  6. Calculate ADX: Smooth DX over the period using Wilder's method

How to Interpret ADX Values

ADX values range from 0 to 100, with different ranges indicating different market conditions:

ADX ValueTrend StrengthTrading Implication
0-20Weak / AbsentMarket is ranging; avoid trend-following strategies
20-25EmergingPotential trend forming; watch for confirmation
25-50StrongTrend-following strategies work well
50-75Very StrongStrong momentum; consider trailing stops
75-100Extremely StrongRare; may indicate trend exhaustion soon

Using +DI and -DI for Trade Signals

While ADX measures trend strength, +DI and -DI indicate trend direction:

  • +DI > -DI: Bullish momentum—buyers are stronger than sellers
  • -DI > +DI: Bearish momentum—sellers are stronger than buyers
  • +DI crosses above -DI: Potential buy signal
  • -DI crosses above +DI: Potential sell signal

For best results, combine DI crossovers with ADX readings above 25 to filter out weak signals in ranging markets.

ADX Trading Strategies

1. Trend Confirmation Strategy

Use ADX as a filter: only take trend-following trades when ADX is above 25. This helps avoid false signals in choppy, range-bound markets where trend strategies typically underperform.

2. DI Crossover Strategy

Enter long when +DI crosses above -DI with ADX > 25. Enter short when -DI crosses above +DI with ADX > 25. Exit when ADX falls below 20 or the opposite crossover occurs.

3. ADX Breakout Strategy

When ADX rises from below 20 to above 25, it often signals the start of a new trend. Look for breakouts from consolidation patterns when this occurs.

Frequently Asked Questions (FAQ)

What is the best ADX period setting?

The default 14-period setting works well for most timeframes. Shorter periods (7-10) react faster but produce more noise. Longer periods (20-30) are smoother but lag more. Adjust based on your trading style and timeframe.

Can ADX predict trend reversals?

ADX doesn't predict reversals directly, but a declining ADX from high levels (above 40-50) often indicates the trend is losing strength. This can precede a reversal or consolidation period.

How does ADX differ from RSI?

RSI measures momentum and overbought/oversold conditions, while ADX measures trend strength. RSI can indicate direction; ADX only indicates strength. They complement each other—use RSI for entry timing and ADX for trend confirmation.

What data format does this calculator accept?

Enter High, Low, Close values separated by commas or spaces, with each period on a new line. You can copy data directly from Excel, Google Sheets, or TradingView exports.

Build Custom ADX Indicators for TradingView

Turn your ADX trading strategy into automated Pine Script code. Pineify's AI generates custom indicators with ADX-based alerts, trend filters, and DI crossover signals—no coding required.