MACD API — Get MACD via REST
MACD line, signal line, and histogram for any symbol on any timeframe. Pre-calculated with standard 12/26/9 parameters. One API call, three components.
-
Three Components
MACD_main, MACD_signal and MACD_hist — the three values traders need for crossover and divergence detection. One /v1/multi call returns all three.
-
Crossover Detection
Compare main vs signal line values. When main > signal = bullish. Use the histogram sign change for early crossover detection.
-
Multi-Timeframe MACD
Confirm MACD signals across timeframes: H1 crossover confirmed by H4 trend direction and D1 momentum.
-
Batch MACD Queries
Get MACD for all symbols in your watchlist via /v1/multi. One request for 10+ symbols.
-
MACD + RSI Confluence
Fetch MACD and RSI together in a single /v1/multi call. Confirm crossovers with momentum context.
-
Historical MACD
Get past MACD values from /v1/indicator/history — use limit to set how many points you get back — for backtesting crossover strategies.
MACD API Response
curl -H "X-API-Key: YOUR_KEY" \
"https://tickatlas.com/v1/multi?symbols=EURUSD&indicators=MACD_main,MACD_signal,MACD_hist&timeframe=H4"
# Response:
{
"success": true,
"data": {
"timeframe": "H4",
"data": {
"EURUSD": {
"MACD_main": 0.00142,
"MACD_signal": 0.00098,
"MACD_hist": 0.00044
}
},
"not_found": null,
"updated_at": 1711548000
}
}
# MACD_main is positive and MACD_hist is positive (main > signal)
# → Bullish momentum with recent bullish crossover MACD API Endpoints
| Endpoint | Description | Returns |
|---|---|---|
/v1/indicator | One MACD component | ?symbol=EURUSD&indicator=MACD_hist |
/v1/multi | All three MACD keys, any symbols | ?symbols=EURUSD,GBPUSD&indicators=MACD_main,MACD_signal,MACD_hist |
/v1/screener | Scan by MACD conditions | Matching symbols |
/v1/indicators | All indicators including MACD | Full technical snapshot |
Frequently Asked Questions
What MACD components does the API return?
Three separate series: MACD_main, MACD_signal and MACD_hist. /v1/indicator returns exactly one value per call, so to get all three in one request use /v1/multi?symbols=EURUSD&indicators=MACD_main,MACD_signal,MACD_hist, or /v1/indicators?symbol=EURUSD for the whole 42-key set.
What are the default MACD parameters?
The standard MACD parameters are used: 12-period fast EMA, 26-period slow EMA, and 9-period signal line — matching industry-standard defaults.
Can I detect MACD crossovers via the API?
Yes. Compare the MACD main line to the signal line. When main crosses above signal, it is a bullish crossover. You can also watch the histogram flip from negative to positive.
What timeframes support MACD?
MACD is available on all 7 timeframes: M1, M5, M15, M30, H1, H4, and D1.
Can I combine MACD with other indicators?
Yes. Use /v1/multi to fetch MACD alongside RSI, ADX, Bollinger Bands, or any combination of the 42 available indicators in one call.
Get MACD Data in Seconds
Start free with $2.50 of API credit. Real-time MACD line, signal, and histogram for any symbol.