View as markdown
Concepts › SignalsTechnicals Trend & direction

trend_long

Long-term trend classification from `sma_200` slope. One of `uptrend`, `downtrend`, `sideways`.

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

At a glance

Typetext
GroupTechnicals
CategoryTrend & direction
Update cadencepost-close daily
Intervals1m/1h/1d
Universeall tickers
Historyfull · since 2004
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 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=trend_long IS NOT NULL" \
  -d "order=trend_long" -d "columns=trend_long" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:26:00.575Z",
 "query": {
  "q": "trend_long IS NOT NULL",
  "limit": 2,
  "order": "trend_long",
  "dir": "desc",
  "fields": [
   "trend_long"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "A",
   "name": "Agilent Technologies Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 147.295,
   "day_change_pct": -0.0083,
   "gap_pct": -0.0048,
   "relative_volume": null,
   "market_cap": 41949616642,
   "trend_long": "up"
  },
  {
   "ticker": "AAAA",
   "name": "Amplius Aggressive Asset Allocation ETF",
   "asset_class": "stocks",
   "asset_type": "ETF",
   "price": 30.97,
   "day_change_pct": 0.0001,
   "gap_pct": 0.0004,
   "relative_volume": null,
   "market_cap": null,
   "trend_long": "up"
  }
 ]
}
As-of — the same scan at a past date
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=trend_long IS NOT NULL" \
  -d "order=trend_long" -d "columns=trend_long" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-05-20",
 "query": {
  "q": "trend_long IS NOT NULL",
  "asof": "2026-05-20",
  "interval": "auto",
  "limit": 2,
  "order": "trend_long",
  "dir": "desc",
  "fields": [
   "trend_long"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "AA",
   "name": "Alcoa Corporation",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 64.14,
   "day_change_pct": 0.3284842796809023,
   "gap_pct": 1.7519161582981346,
   "relative_volume": 0.9303695562528992,
   "market_cap": 16740540000,
   "trend_long": "up"
  },
  {
   "ticker": "AAAA",
   "name": "Amplius Aggressive Asset Allocation ETF",
   "asset_class": "stocks",
   "asset_type": "ETF",
   "price": 30.0451,
   "day_change_pct": 1.1967072866775785,
   "gap_pct": 0.3374896429076565,
   "relative_volume": 0.06305769416615663,
   "market_cap": null,
   "trend_long": "up"
  }
 ]
}

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,trend_long" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:26:03.503Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "trend_long"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-08-12",
    "close": 302.25,
    "trend_long": "up"
   },
   {
    "t": "2026-08-13",
    "close": 305.26,
    "trend_long": "up"
   },
   {
    "t": "2026-08-14",
    "close": 305.93,
    "trend_long": "up"
   }
  ],
  "MSFT": [
   {
    "t": "2026-08-12",
    "close": 492.43,
    "trend_long": "up"
   },
   {
    "t": "2026-08-13",
    "close": 496.88,
    "trend_long": "up"
   },
   {
    "t": "2026-08-14",
    "close": 495.4,
    "trend_long": "up"
   }
  ]
 }
}

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

Related signals — Trend & direction