MACD Line (12/26)
MACD line (12/26).
What it measures
The MACD line: the 12-period EMA of price minus the 26-period EMA (EMA12 − EMA26). A smoothed trend gauge — positive and rising when the shorter average is pulling away upward. As with every signal in this category, the window selects the timeframe: macd_line@4h is computed point-in-time on 4-hour bars.
References: Multi-timeframe indicators.
Point-in-time, leak-free
Like every QUANT_API feature, technicals.macd_line is computed point-in-time: each value uses only data that had actually arrived at the timestamp you query — live or historical. No restatements, no backfills that quietly rewrite the past, no look-ahead. The value your backtest sees at a given stamp is the value the live API would have returned at that stamp. How we enforce this is documented on the methodology page.
Windows & transforms
The signal is computed over rolling windows; each window can be served raw or through a transform (z-score, percentile rank, delta…). Which windows and transforms you can query depends on your plan — the signal itself supports:
Plan & access
technicals.macd_line unlocks on the Signal plan ($99/mo) and every plan above it. Every new account starts with a 14-day free trial of the Signal plan — no card required.
Example call
Resolve the latest value for BTC (1h window, level transform — both available on the Signal plan):
curl -G https://api.quant-api.dev/v1/features/live \
-H "Authorization: Bearer fk_live_<your_key>" \
--data-urlencode "asset=BTC" \
--data-urlencode "features=technicals.macd_line@1h:level"Same key works on /v1/features/historical for point-in-time backtesting — see the API docs.