← tickerbot.io
View as markdown
Concepts › Signals › Technicals › Trend & direction

macd_line

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

metadata
typenumeric
unitUSD
cadencepost-close daily
intervals1d
universeall tickers
historyfull · since 2003
nullableyes — NULL where not applicable

Swap YOUR_KEY for a key from /dashboard/keys. Responses are real captures from 2026-09-18, trimmed.

Every ticker matching this signal /v2/signals/{signal}

Live — every ticker with macd_line above a cutoff
curl -G "https://api.tickerbot.io/v2/signals/macd_line" \
  --data-urlencode "condition=> 3.932226" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-09-18T14:39:37.650Z",
 "signal": "macd_line",
 "condition": "> 3.932226",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "value": 3155.232176
  },
  {
   "ticker": "X:BTCUSD",
   "name": "Bitcoin",
   "value": 984.413902
  }
 ]
}
As-of — the same read at a past date
curl -G "https://api.tickerbot.io/v2/signals/macd_line" \
  --data-urlencode "condition=> 3.932226" \
  -d "asof=2026-07-04" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-06-20",
 "signal": "macd_line",
 "condition": "> 3.932226",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "value": 5149.576646804577
  },
  {
   "ticker": "SNDK",
   "name": "Sandisk Corporation Common Stock",
   "value": 186.75948026912124
  }
 ]
}
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": "> 3.932226", "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.

The whole market, filtered on it /v2/scan

Live — the whole market, ranked by this column
curl -X POST "https://api.tickerbot.io/v2/scan" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{ "q": "macd_line IS NOT NULL", "order": "macd_line", "columns": "macd_line" }'
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-09-18T14:39:40.624Z",
 "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": 760698.18,
   "change_1d_pct": -0.42382741642148175,
   "gap_pct": -0.1289,
   "relative_volume": 0.3262,
   "market_cap": 1113593331736,
   "macd_line": 3155.232176
  },
  {
   "ticker": "X:BTCUSD",
   "name": "Bitcoin",
   "asset_class": "crypto",
   "asset_type": null,
   "price": 80569.74,
   "change_1d_pct": 5.637669986433297,
   "gap_pct": null,
   "relative_volume": 2.1274,
   "market_cap": null,
   "macd_line": 984.413902
  }
 ]
}
As-of — the same scan at 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 IS NOT NULL", "order": "macd_line", "columns": "macd_line", "asof": "2026-07-04" }'
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-06-20",
 "query": {
  "q": "macd_line IS NOT NULL",
  "asof": "2026-06-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": 733609.77,
   "change_1d_pct": -0.5005058999050566,
   "gap_pct": 0.1665536416655364,
   "relative_volume": 1.9825114678899083,
   "market_cap": 1060165881900,
   "macd_line": 5149.576646804577
  },
  {
   "ticker": "SNDK",
   "name": "Sandisk Corporation Common Stock",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 2184.75,
   "change_1d_pct": 11.53512354502757,
   "gap_pct": 4.38763528691035,
   "relative_volume": 1.0087857478110183,
   "market_cap": 326184542000,
   "macd_line": 186.75948026912124
  }
 ]
}
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 > 3.932226", "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 /v2/series

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-09-18, trimmed)
{
 "as_of": "2026-09-18T14:39:43.190Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "macd_line"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-09-15",
    "close": 331.34,
    "macd_line": 4.299639
   },
   {
    "t": "2026-09-16",
    "close": 332.41,
    "macd_line": 4.637198
   },
   {
    "t": "2026-09-17",
    "close": 337.002,
    "macd_line": 5.140228
   }
  ],
  "MSFT": [
   {
    "t": "2026-09-15",
    "close": 497.12,
    "macd_line": 9.35876
   },
   {
    "t": "2026-09-16",
    "close": 490.3,
    "macd_line": 8.135391
   },
   {
    "t": "2026-09-17",
    "close": 497.75,
    "macd_line": 7.545285
   }
  ]
 }
}

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

Related signals — Trend & direction