View as markdown
Concepts › SignalsTechnicals Trend & direction

macd_line

MACD line (12-EMA minus 26-EMA).

Watch this signal live on real tickers: Open in Explore →

At a glance

Typenumeric
GroupTechnicals
CategoryTrend & direction
UnitUSD
Update cadencepost-close daily
Intervals1d
Universeall tickers
Historyfull · since 2003
Nullableyes — NULL where not applicable

Trend direction and strength: MACD, ADX/±DI, SMA-based trend reads, and reversal composites.

Query it

Every applicable form factor, grouped by endpoint family. Swap YOUR_KEY for the value from /dashboard/keys. Response payloads are real captures, sampled 2026-08-18 and trimmed — your run's values and dates will differ.

Use signals /v2/signals/{signal}

One signal across the market: who matches now, who matched then, and a push when someone starts. Docs →

Live — every ticker with macd_line above a cutoff
curl -G "https://api.tickerbot.io/v2/signals/macd_line" \
  --data-urlencode "condition=> 10.143257" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:24:35.305Z",
 "signal": "macd_line",
 "condition": "> 10.143257",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "value": 4934.725891
  },
  {
   "ticker": "CACI",
   "name": "CACI INTERNATIONAL CLA",
   "value": 49.803417
  }
 ]
}
As-of — the same read at a past date
curl -G "https://api.tickerbot.io/v2/signals/macd_line" \
  --data-urlencode "condition=> 10.143257" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-05-20",
 "signal": "macd_line",
 "condition": "> 10.143257",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "value": 2412.167901931214
  },
  {
   "ticker": "X:BTCUSD",
   "name": "Bitcoin",
   "value": 189.7172483492468
  }
 ]
}
Subscribe — webhook when a ticker starts matching
curl -X POST "https://api.tickerbot.io/v2/signals/macd_line/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"condition": "> 10.143257", "target_url": "https://example.com/hooks/tickerbot"}'

Returns 201 with the created webhook — the same shape as GET /v2/webhooks/{id}, plus a one-time signing_secret for HMAC verification.

Use scan /v2/scan

The whole market through a WHERE clause — this signal composed freely with any other column. Docs →

Live — the whole market, ranked by this column
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=macd_line IS NOT NULL" \
  -d "order=macd_line" -d "columns=macd_line" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:24:38.606Z",
 "query": {
  "q": "macd_line IS NOT NULL",
  "limit": 2,
  "order": "macd_line",
  "dir": "desc",
  "fields": [
   "macd_line"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 747658.72,
   "day_change_pct": -0.0105,
   "gap_pct": 0,
   "relative_volume": null,
   "market_cap": 1078304184071,
   "macd_line": 4934.725891
  },
  {
   "ticker": "CACI",
   "name": "CACI INTERNATIONAL CLA",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 660.525,
   "day_change_pct": -0.0149,
   "gap_pct": -0.0068,
   "relative_volume": null,
   "market_cap": 14818624881,
   "macd_line": 49.803417
  }
 ]
}
As-of — the same scan at a past date
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=macd_line IS NOT NULL" \
  -d "order=macd_line" -d "columns=macd_line" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-05-20",
 "query": {
  "q": "macd_line IS NOT NULL",
  "asof": "2026-05-20",
  "interval": "auto",
  "limit": 2,
  "order": "macd_line",
  "dir": "desc",
  "fields": [
   "macd_line"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 720840,
   "day_change_pct": 0.03330557868442965,
   "gap_pct": 0.05550929780738274,
   "relative_volume": 1.7831074035453596,
   "market_cap": null,
   "macd_line": 2412.167901931214
  },
  {
   "ticker": "X:BTCUSD",
   "name": "Bitcoin",
   "asset_class": "crypto",
   "asset_type": null,
   "price": 77547.62,
   "day_change_pct": 0.09245444943651589,
   "gap_pct": -0.000012907224559909754,
   "relative_volume": 0.937883233067203,
   "market_cap": null,
   "macd_line": 189.7172483492468
  }
 ]
}
Subscribe — webhook on a market-wide condition
curl -X POST "https://api.tickerbot.io/v2/scan/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"q": "macd_line > 10.143257", "target_url": "https://example.com/hooks/tickerbot"}'

Returns 201 with the created webhook object; deliveries carry the tickers matching the condition at each evaluation.

Use series /v2/series

Its history over time, on one aligned grid. Docs →

History — the column on an aligned time grid
curl "https://api.tickerbot.io/v2/series?tickers=AAPL,MSFT&columns=close,macd_line" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:24:40.900Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "macd_line"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-08-12",
    "close": 302.25,
    "macd_line": -1.798376
   },
   {
    "t": "2026-08-13",
    "close": 305.26,
    "macd_line": -2.186716
   },
   {
    "t": "2026-08-14",
    "close": 305.93,
    "macd_line": -2.462361
   }
  ],
  "MSFT": [
   {
    "t": "2026-08-12",
    "close": 492.43,
    "macd_line": 29.109051
   },
   {
    "t": "2026-08-13",
    "close": 496.88,
    "macd_line": 29.353834
   },
   {
    "t": "2026-08-14",
    "close": 495.4,
    "macd_line": 28.563939
   }
  ]
 }
}

Same grammar on scan, series, and webhooks; state reads take ?asof= for point-in-time answers.

Related signals — Trend & direction