This guide explains how ADX is calculated, rules you can test, a worked example on Nifty, and how to use ADX as a filter for other strategies.
At a glance
| ADX trend strategy | |
|---|---|
| Type | Trend following |
| Indicator | ADX with +DI and −DI, 14 periods |
| Markets | Nifty, Bank Nifty and stock futures, MCX futures |
| Timeframes | 15-minute to daily |
| Long entry | ADX above 25 and rising, +DI above −DI, price breaks a recent high |
| Short entry | ADX above 25 and rising, −DI above +DI, price breaks a recent low |
| Exit | ADX turns down from above 40, the DI lines cross, or a trailing stop |
| Stop | 2 times ATR from entry |
How ADX works
J. Welles Wilder introduced ADX in 1978, in the same book as RSI and ATR. The calculation has three steps:
- Directional movement. +DM is today's high minus yesterday's high, when that is larger than yesterday's low minus today's low. −DM is the reverse. The smaller one is set to zero.
- Directional indicators. +DM and −DM are smoothed over 14 periods and divided by the ATR to give +DI and −DI.
- ADX. The difference between +DI and −DI, divided by their sum, is smoothed over 14 periods.
| ADX reading | Usual interpretation |
|---|---|
| Below 20 | No clear trend: range trading conditions |
| 20 to 25 | A trend may be forming |
| 25 to 40 | A trend is in place |
| Above 40 | A strong trend, often late in the move |
A rising ADX means the trend is strengthening, in whichever direction the DI lines show. A falling ADX means it is weakening, even if prices are still moving.
The rules
Long trades
- ADX(14) is above 25 and higher than 3 candles ago.
- +DI is above −DI.
- The price closes above the highest high of the last 10 candles.
- Stop: 2 times ATR(14) below the entry.
- Exit: a trailing stop of 2 times ATR, or when −DI crosses above +DI.
Short trades
The mirror image, with −DI above +DI and a break below the 10-candle low.
A worked example
On a daily chart, Nifty futures trade at 25,180. ADX is 31, up from 26 three days ago. +DI is 29 and −DI is 14. The price closes above its 10-day high of 25,150. ATR(14) is 190 points.
- Entry: 25,180
- Stop: 25,180 − 2 × 190 = 24,800
- Risk per lot of 65: 380 points, ₹24,700
The wide stop reflects the daily timeframe. Size the position so that ₹24,700 is within your risk per trade, using the position size calculator. These numbers illustrate the rules, not a result.
ADX as a filter for other strategies
ADX is often more useful as a switch than as a signal:
- When ADX is above 25, use trend-following rules, such as a moving average crossover or Supertrend.
- When ADX is below 20, use range rules, such as RSI mean reversion or Bollinger Band mean reversion.
- For option sellers, a low and falling ADX suggests a quieter market for range strategies such as an iron condor, and a rising ADX is a warning.
When the strategy works, and when it does not
Works best when:
- A clear trend is building after a breakout, such as after an event or a long range.
- The instrument trends well, such as crude oil or metal futures during strong moves.
Struggles when:
- ADX lags. By the time it rises above 25, part of the move is over.
- The market swings sharply both ways. Volatile chop can lift ADX without a lasting trend.
- ADX above 40 often marks a late stage, where reversals are common.
Automating an ADX strategy
In QuantPower's strategy builder, set ADX, +DI and −DI as indicator conditions with a breakout of the 10-candle high as the trigger. Add the ATR stop and the trailing stop, and an MTM stop loss for the day. Run it in paper trading first.
Backtesting an ADX strategy
- Test the ADX threshold (20, 25, 30) and the breakout look-back (10, 20).
- Compare the strategy with the same breakout rules without the ADX filter. A filter that removes trades should improve the average trade.
- Trend strategies win less than half the time and rely on a few large winners. Judge them by the profit factor and drawdown, not the win rate.
See backtest performance metrics.
Common mistakes
- Reading ADX as direction. A high ADX in a falling market is a strong downtrend.
- Entering when ADX is above 40. The best part of the trend may be over.
- Using tight stops. Trends pull back. A stop inside normal volatility gets hit often.
Frequently asked questions
What is a good ADX value?
Above 25 usually means a trend, and below 20 a range. The exact levels vary by instrument, so test them.
What is the best ADX setting?
14 periods is the standard. Shorter periods react faster and give more false signals.
Can ADX be used for intraday trading?
Yes, on 15-minute or 1-hour charts. Early in the day, ADX on short timeframes still reflects the previous session's candles.
What is the difference between ADX and DMI?
DMI is the pair of directional lines, +DI and −DI. ADX is the trend strength line calculated from them.
Sources
- Wilder, J. W. (1978). New Concepts in Technical Trading Systems. Trend Research
- Murphy, J. J. (1999). Technical Analysis of the Financial Markets. New York Institute of Finance
