MACD API
Bitcoin 4h MACD (12, 26, 9) — histogram, signal line, and a bullish / bearish / mixed bias.
https://hunchmachine.com/api/indicators?indicator=macd&api_key=YOUR_API_KEYDescription
Computes the MACD line (EMA12 − EMA26), 9-period signal, and histogram on Binance BTCUSDT 4-hour closes. The bias field folds line and histogram signs into one label for automations that should not reconstruct EMAs themselves.
What this endpoint provides
MACD line, signal line, histogram, and a bias (bullish when both MACD and histogram are positive, bearish when both are negative, mixed otherwise). Refreshed every 30 minutes so the histogram can move inside the current 4h bar.
Response fields
timeframeCandle interval used for MACD (4h).
macdMACD line: 12-period EMA minus 26-period EMA of 4h closes.
signal_line9-period EMA of the MACD line.
histogramMACD minus signal. Positive means the line is above the signal.
biasbullish (MACD and histogram > 0), bearish (both < 0), or mixed.
summaryShort natural-language read of line, signal, histogram, and bias.
timestampUTC time of the latest update.
Output example
[
{
"indicator": "macd",
"timestamp": "2026-09-21T13:00:00.000Z",
"timeframe": "4h",
"macd": 185.4,
"signal_line": 92.1,
"histogram": 93.3,
"bias": "bullish",
"summary": "BTC 4h MACD: 185.4 vs signal 92.1 (hist 93.3, bullish)."
}
]Interpretation & Use
Bullish bias is momentum confirmation (line and histogram both above zero). Bearish is the opposite. Mixed is a crossover / disagreement zone — often the first hint that 4h momentum is turning before price has fully reversed.