View as markdown
Concepts › SignalsPrice action Ranges & reversals

pullback

Pullback to the 20-day moving average within an uptrend.

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

At a glance

Definition
in_uptrend (sma_50 > sma_200 AND price > sma_200) AND price below the 20-day or 50-day SMA by < 2% AND price down >= 2% from the 5-day high. Live evaluation at minute resolution.
Typestate (boolean)
GroupPrice action
CategoryRanges & reversals
Update cadence1 min · mkt hrs
Intervals1d
Universeall tickers
Historyrecent only (forward-only from first computation)
Firingcontinuous
Typical rolecontext tag in trend-following strategies · compound with momentum reversal signals

Range structures and their resolution: opening range, breaks, consolidation, pullbacks, reversals, unusual range width.

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 where it fires now
curl "https://api.tickerbot.io/v2/signals/pullback" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:25:28.720Z",
 "signal": "pullback",
 "condition": null,
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "AAP",
   "name": "ADVANCE AUTO PARTS INC",
   "value": true
  },
  {
   "ticker": "ABM",
   "name": "ABM Industries, Inc.",
   "value": true
  }
 ]
}
As-of — the same read at a past date
curl "https://api.tickerbot.io/v2/signals/pullback?asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-05-20",
 "signal": "pullback",
 "condition": null,
 "universe": null,
 "count": 0,
 "results": []
}
Subscribe — webhook when a ticker starts matching
curl -X POST "https://api.tickerbot.io/v2/signals/pullback/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"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, filtered on this signal
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=pullback" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:25:31.686Z",
 "query": {
  "q": "pullback",
  "limit": 2,
  "order": "day_change_pct",
  "dir": "desc",
  "fields": [],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "NRXP",
   "name": "NRX Pharmaceuticals, Inc. Common Stock",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 3.475,
   "day_change_pct": 0.0627,
   "gap_pct": -0.052,
   "relative_volume": null,
   "market_cap": 139957373
  },
  {
   "ticker": "GCTS",
   "name": "GCT Semiconductor Holding, Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 2.09,
   "day_change_pct": 0.0609,
   "gap_pct": 0.0152,
   "relative_volume": null,
   "market_cap": 181180360
  }
 ]
}
As-of — the same scan at a past date
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=pullback" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-05-20",
 "query": {
  "q": "pullback",
  "asof": "2026-05-20",
  "interval": "auto",
  "limit": 2,
  "order": "day_change_pct",
  "dir": "desc",
  "fields": [],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 0,
 "results": []
}
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": "pullback", "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,pullback" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:25:33.869Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "pullback"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-08-12",
    "close": 302.25,
    "pullback": false
   },
   {
    "t": "2026-08-13",
    "close": 305.26,
    "pullback": false
   },
   {
    "t": "2026-08-14",
    "close": 305.93,
    "pullback": false
   }
  ],
  "MSFT": [
   {
    "t": "2026-08-12",
    "close": 492.43,
    "pullback": false
   },
   {
    "t": "2026-08-13",
    "close": 496.88,
    "pullback": false
   },
   {
    "t": "2026-08-14",
    "close": 495.4,
    "pullback": false
   }
  ]
 }
}

Use events /v2/events

The flag as a timeline: each edge as a point event, and the spans it stayed true. Docs →

Firings — every enter edge as a point event
curl -G "https://api.tickerbot.io/v2/events" \
  -d "kind=signal" -d "signal=pullback" -d "transition=enter" -d "since=2026-01-10" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:25:34.058Z",
 "query": {
  "kind": "signal",
  "tickers": null,
  "universe": null,
  "since": "2026-01-10T00:00:00.000Z",
  "until": null,
  "limit": 2,
  "signal": "pullback",
  "transition": "enter"
 },
 "count": 2,
 "results": [
  {
   "ticker": "GGT",
   "ts": "2026-08-17T23:57:35.916Z",
   "kind": "signal",
   "payload": {
    "signal": "pullback",
    "transition": "enter",
    "price": 4.157,
    "definition_version": 6
   }
  },
  {
   "ticker": "GLW",
   "ts": "2026-08-17T23:56:36.396Z",
   "kind": "signal",
   "payload": {
    "signal": "pullback",
    "transition": "enter",
    "price": 173.157,
    "definition_version": 6
   }
  }
 ]
}
Spans — when it was true for one ticker (GGT)
curl "https://api.tickerbot.io/v2/signals/pullback/GGT/events" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:25:34.202Z",
 "ticker": "GGT",
 "signal": "pullback",
 "count": 2,
 "events": [
  {
   "started_at": "2026-08-17T23:57:35.916Z",
   "ended_at": null,
   "start_price": 4.157,
   "end_price": null,
   "definition_version": 6
  },
  {
   "started_at": "2026-08-17T21:37:36.162Z",
   "ended_at": "2026-08-17T23:32:38.920Z",
   "start_price": 4.163,
   "end_price": 4.165,
   "definition_version": 6
  }
 ]
}

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

Related signals — Ranges & reversals