macd_ line
MACD line (12-EMA minus 26-EMA).
Facts
A numeric signal: screen on it with a comparison operator (macd_line > 6.6). It's null on tickers it doesn't apply to.
| definition | ema_12 − ema_26 of daily closes. Live, today's close is the current price. Null with fewer than 34 closes. |
| type | numeric |
| unit | USD |
| refresh | post-close daily · 8:05 PM ET |
| grains | 1d |
| asset classes | US equities, Rates, Crypto, FX |
| coverage | all tickers |
| history | full · since 2003 |
| nullable | yes |
Examples
Screen on it
curl -X POST "https://api.tickerbot.io/v2/scan" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_KEY" \
-d '{
"q": "macd_line > 6.6",
"order": "macd_line"
}'Backtest it on a past date
curl -X POST "https://api.tickerbot.io/v2/scan" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_KEY" \
-d '{
"q": "macd_line > 6.6",
"asof": "2026-08-17",
"order": "macd_line"
}'Get an alert when a ticker starts matching
curl -X POST "https://api.tickerbot.io/v2/scan/subscribe" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_KEY" \
-d '{
"q": "macd_line > 6.6",
"target_url": "https://example.com/hooks/tickerbot"
}'Returns 201 with the created webhook object; deliveries carry the tickers matching the condition at each evaluation.
Its history
curl "https://api.tickerbot.io/v2/tickers/NVDA/history?select=close,macd_line" \
-H "Authorization: Bearer YOUR_KEY"