TickAtlas

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.

Main + Signal + Histogram 12/26/9 Standard 7 Timeframes Sub-100ms
  • Three Components

    Every MACD response includes main line, signal line, and histogram — the three values traders need for crossover and divergence detection.

  • 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 with the bars parameter for backtesting crossover strategies.

MACD API Response

bash
curl -H "X-API-Key: YOUR_KEY" \
  "https://tickatlas.com/v1/indicator?symbol=EURUSD&name=macd&timeframe=H4"

# Response:
{
  "success": true,
  "data": {
    "symbol": "EURUSD",
    "indicator": "macd",
    "timeframe": "H4",
    "main": 0.00142,
    "signal": 0.00098,
    "histogram": 0.00044
  }
}

# MACD is positive (main > 0) and histogram is positive (main > signal)
# → Bullish momentum with recent bullish crossover

MACD API Endpoints

Endpoint Description Returns
/v1/indicator?name=macd MACD for one symbol main, signal, histogram
/v1/multi?indicators=macd MACD for multiple symbols Batched results
/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?

The API returns three components: the MACD line (main), the signal line, and the histogram. All three are returned in a single response.

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

14-day free trial. Real-time MACD line, signal, and histogram for any symbol.