Average Directional Index (ADX)
Category: Momentum · Updated November 2026
The TAAPI.IO ADX API returns the Average Directional Index as JSON for crypto pairs and US stocks. Send an exchange, symbol and timeframe to get real-time or historical values, with no candles to download and no calculations to maintain.
What one request returns
- The ADX (
value), from 0 to 100: how strong the trend is, whichever way it points. Below 20 usually means no trend, above 25 a trend. - A series, with
results: one value per candle, oldest first, to see whether a trend is gaining or losing strength. - Direction too, with the
dmiendpoint: ADX together with +DI and −DI, for several symbols in one/bulkrequest.
So one call answers one question that price alone can't: is this market trending at all?
Example: a record high with no trend, and a crash with a strong one, 13 November 2026
Request: one /bulk call with two constructs, AAPL and NVDA on daily US stock candles, each with ADX and the closing price. Sent at 22:37 UTC on Saturday 14 November, so the latest candle is Friday's close. Direction comes from the dmi endpoint, in the recipe below.
| Symbol | Close, 13 Nov | ADX | +DI | −DI | Reading |
|---|---|---|---|---|---|
| AAPL | 355.40 | 16.54 | 26.0 | 15.8 | Two days after a record close, but no strong trend |
| NVDA | 161.01 | 45.03 | 4.0 | 35.3 | Strong trend, pointing down |
How to interpret this: On the same day, AAPL closed two days after its record and NVDA closed 33% below its October high. Only one of them was trending by ADX. AAPL rose 9.3% from 1 September, but in a staircase of rallies and pullbacks, and its ADX never got above 25.4. NVDA fell in one direction, and its ADX climbed from 14 to 45. ADX measures how one-sided the movement is, not which way it goes. +DI and −DI supply the direction: NVDA's −DI of 35.3 against a +DI of 4.0 says that almost all of the recent movement was down. ADX is also slow. NVDA's ADX only crossed 25 on 4 November, at a close of 199.77, when the stock was already 16.8% below its 5 October close of 240.20. As a filter that is useful: it said "use trend tools" for NVDA and "use range tools" for AAPL. As an entry signal it came late.
| Date | NVDA close | NVDA ADX | What it said |
|---|---|---|---|
| 5 Oct | 240.20 | 19.2 | No trend, at the high |
| 23 Oct | 211.11 | 20.2 | Trend forming, 12% below the high |
| 4 Nov | 199.77 | 25.8 | Trend confirmed, 16.8% below the high |
| 12 Nov | 167.84 | 42.4 | Strong trend, 30% below the high |
| 13 Nov | 161.01 | 45.0 | Strongest reading of the move |
Values are from the production API on 14 November 2026, using daily candles. Two stocks are an illustration, not a backtest. Nothing here is financial advice.
| Spec | Value |
|---|---|
| Endpoint | GET https://v2.taapi.io/indicator/adx |
| Outputs | ADX value, timestamp |
| Default settings | Period 14 |
| Markets | Binance, Binance Futures, Bybit, Gate.io, Kraken and US stocks |
| Timeframes | 1m to 1w |
| Delivery | REST, bulk and WebSocket |
Get ADX with one API call
This request returns ADX for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.
curl -G https://v2.taapi.io/indicator/adx \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h"
import requests
resp = requests.get(
'https://v2.taapi.io/indicator/adx',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={'exchange': 'binance', 'symbol': 'BTCUSDT', 'timeframe': '1h'},
)
print(resp.json())const params = new URLSearchParams({"exchange": "binance", "symbol": "BTCUSDT", "timeframe": "1h"});
const res = await fetch(`https://v2.taapi.io/indicator/adx?${params}`, {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
console.log(await res.json());ADX API response
This response came from the live API on 9 November 2026.
{
"value": [26.43205462753991],
"timestamp": [1794218400]
}| Field | Type | Description |
|---|---|---|
value | number[] | ADX result |
timestamp | integer[] | Unix time of each candle, in seconds |
ADX API parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
exchange | string | Yes | — | binance, binancefutures, bybit, gateio, kraken or stocks |
symbol | string | Yes | — | Pair or ticker, e.g. BTCUSDT or AAPL |
timeframe | string | Yes | — | 1m 5m 15m 1h 4h 1d 1w |
period | integer | No | 14 | Smoothing period for the directional movement, the true range and ADX |
results | integer | No | 1 | Number of values to return, or max |
backtrack | integer | No | 0 | Candles to skip from the most recent |
What is ADX?
The Average Directional Index, developed by J. Welles Wilder, measures how strong a trend is, whichever direction it points. It is a smoothed average of the DX line, which compares upward and downward directional movement.
ADX formula
| Output | Calculation |
|---|---|
| +DM / −DM | Today's high minus yesterday's, or yesterday's low minus today's, whichever is larger and positive |
| +DI / −DI | Smoothed +DM or −DM ÷ smoothed true range × 100 |
| DX | |+DI − −DI| ÷ (+DI + −DI) × 100 |
| ADX | Wilder's smoothed average of DX |
For NVDA on 13 November, |4.0 − 35.3| ÷ (4.0 + 35.3) gives a DX of about 80, far above the ADX of 45. Each day like that pulls the ADX higher, a little at a time.
How to read ADX in your code
| Signal | Meaning | Condition |
|---|---|---|
| Weak or no trend | Range-bound conditions | value below 20 |
| Trending | A trend is in place | value above 25 |
| Trend strengthening | The trend is gaining force | value rising over recent candles |
| Direction | Which way the trend points | plusdi above or below minusdi, from the dmi endpoint |
Limitations: ADX says nothing about direction, so pair it with +DI and −DI. Because it is smoothed twice, it confirms trends late, as with NVDA above. Nothing on this page is financial advice.
What ADX levels mean
ADX runs from 0 to 100, though readings above 60 are uncommon. Below 20 usually means no meaningful trend. Above 25 is the usual sign that one exists. These levels are conventions from Wilder's work and vary by market, so check them on your own symbols.
A falling ADX does not mean price is falling. It means the trend, in either direction, is losing strength. Similarly, ADX can rise during a sharp decline.
ADX as a strategy filter
ADX is most often used to decide which rules to apply. When it's high, trend tools such as moving-average crossovers and SuperTrend tend to behave better. When it's low, range tools such as RSI or Bollinger Bands are usually more suitable.
Because of its double smoothing, ADX often rises only after a move is under way. That makes it better as a filter than as an entry signal.
Build an ADX trend filter with Python
ADX alone has no direction, so this uses the dmi endpoint, which returns ADX with +DI and −DI in a single response.
curl -G https://v2.taapi.io/indicator/dmi \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h" \ --data-urlencode "backtrack=1"
import requests
resp = requests.get(
'https://v2.taapi.io/indicator/dmi',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={'exchange': 'binance', 'symbol': 'BTCUSDT', 'timeframe': '1h', 'backtrack': 1},
)
data = resp.json()
adx = data['adx'][-1]
plus_di = data['plusdi'][-1]
minus_di = data['minusdi'][-1]
if adx < 20:
print(f'No clear trend, ADX {adx:.1f}')
elif plus_di > minus_di:
print(f'Uptrend, ADX {adx:.1f}')
else:
print(f'Downtrend, ADX {adx:.1f}')Compare trend strength across symbols
The dmi endpoint returns ADX with +DI and −DI, so one request gives both strength and direction. With /bulk you can check several symbols at once, for example to decide which ones a trend-following strategy should trade. Two constructs need the Pro plan or above. On Basic, make one GET request per symbol instead.
curl -X POST https://v2.taapi.io/bulk \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"constructs": [
{
"id": "aapl_1d",
"exchange": "stocks",
"symbol": "AAPL",
"timeframe": "1d",
"indicators": [
{
"id": "dmi",
"indicator": "dmi"
}
]
},
{
"id": "nvda_1d",
"exchange": "stocks",
"symbol": "NVDA",
"timeframe": "1d",
"indicators": [
{
"id": "dmi",
"indicator": "dmi"
}
]
}
]
}'import requests
payload = {
"constructs": [
{
"id": "aapl_1d",
"exchange": "stocks",
"symbol": "AAPL",
"timeframe": "1d",
"indicators": [
{
"id": "dmi",
"indicator": "dmi"
}
]
},
{
"id": "nvda_1d",
"exchange": "stocks",
"symbol": "NVDA",
"timeframe": "1d",
"indicators": [
{
"id": "dmi",
"indicator": "dmi"
}
]
}
]
}
resp = requests.post(
'https://v2.taapi.io/bulk',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json=payload,
)
data = resp.json()
for symbol in ('aapl_1d', 'nvda_1d'):
d = data[symbol]['dmi']
adx, plus, minus = d['adx'][-1], d['plusdi'][-1], d['minusdi'][-1]
direction = 'up' if plus > minus else 'down'
if adx >= 25:
print(f'{symbol}: strong trend {direction} (ADX {adx:.1f})')
elif adx >= 20:
print(f'{symbol}: trend {direction} forming (ADX {adx:.1f})')
else:
print(f'{symbol}: no strong trend (ADX {adx:.1f}), +DI {plus:.1f} vs -DI {minus:.1f}')The response at 22:37 UTC on 14 November. The script prints aapl_1d: no strong trend (ADX 16.5), +DI 26.0 vs -DI 15.8 nvda_1d: strong trend down (ADX 45.0)
{
"aapl_1d": {
"dmi": {
"adx": [16.536962864140403],
"plusdi": [26.013730474057677],
"minusdi": [15.845376790620193],
"timestamp": [1794528000]
}
},
"nvda_1d": {
"dmi": {
"adx": [45.0322160678413],
"plusdi": [4.038138225030274],
"minusdi": [35.33829474072137],
"timestamp": [1794528000]
}
}
}The 20 and 25 levels are conventions from Wilder's work. Check them on your own symbols and timeframe: a volatile crypto pair can show an ADX above 25 in a choppy market.
Get historical ADX values
Add results to return a series for backtesting or charting. The last element is the most recent candle.
curl -G https://v2.taapi.io/indicator/adx \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h" \ --data-urlencode "results=100"
Get ADX for multiple symbols
Combine ADX with other indicators in one request. Each exchange, symbol and timeframe combination is one construct: Basic allows 1 per request, Pro 3 and Expert 10.
curl -X POST https://v2.taapi.io/bulk \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"constructs": [
{
"id": "btc_1h",
"exchange": "binance",
"symbol": "BTCUSDT",
"timeframe": "1h",
"indicators": [
{
"id": "adx",
"indicator": "adx"
},
{
"id": "rsi",
"indicator": "rsi"
}
]
}
]
}'Stream ADX in real time
Subscribe over WebSocket to receive new values every 5 seconds while the candle is forming. Streaming supports 1m, 5m, 15m and 1h, and uses interval where REST uses timeframe.
{
"type": "subscribe",
"id": "adx",
"exchange": "binance",
"symbol": "BTCUSDT",
"interval": "1m",
"indicator": "adx"
}Why ADX values can differ between platforms
- Smoothing: TAAPI.IO uses Wilder's method for the directional movement, the true range and ADX. Tools may start the first values differently, and the effect fades with more history.
- Settings: some charts use separate lengths for the DI lines and the ADX smoothing.
- Exchange data: ADX is built from highs and lows, which differ between venues.
ADX API FAQ
What does the ADX API return?
An array of ADX values in value, from 0 to 100, plus a timestamp for each candle.
Does ADX show whether the trend is up or down?
No. Use the dmi endpoint, which returns adx, plusdi and minusdi. +DI above −DI points up, the reverse points down.
What ADX level means a trend?
Below 20 usually means no trend and above 25 a trend. In the example above, NVDA's ADX reached 25 on 4 November and 45 by 13 November.
Is the latest ADX value final?
No. The newest value belongs to the candle still forming and can change until it closes. Add backtrack=1 to read the last closed candle.
Can I get ADX for US stocks?
Yes. Use exchange=stocks with a ticker such as AAPL. US stocks are included on the Pro plan and above.
Related indicators
- Directional Movement Index (DMI): ADX with +DI and −DI
- ADXR: a smoothed ADX
- SuperTrend: a trend tool that ADX can filter
- Average True Range: volatility without direction
Build with ADX on Binance, Bybit or US stocks. Start for free or browse all 262 indicators.