pct_from_sma_20
Percent difference between current close and `sma_20`. Continuous version of the `above_sma_20` boolean.
At a glance
| Type | numeric |
| Group | Technicals |
| Category | Moving averages & VWAP |
| Unit | % |
| Update cadence | post-close daily |
| Intervals | 1m/1h/1d |
| Universe | all tickers |
| History | full · since 2003 |
| Nullable | yes — NULL where not applicable |
SMAs, EMAs, and VWAPs, with the distances, above/below states, and crosses they own.
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 →
curl -G "https://api.tickerbot.io/v2/signals/pct_from_sma_20" \
--data-urlencode "condition=> 0.4547" \
-H "Authorization: Bearer YOUR_KEY"{
"as_of": "2026-08-18T00:25:06.356Z",
"signal": "pct_from_sma_20",
"condition": "> 0.4547",
"universe": null,
"count": 2,
"results": [
{
"ticker": "LEGO.WS",
"name": "Legato Merger Corp. IV Redeemable Warrants, each whole warrant exercisable to purchase one ordinary share at an exercise price of $11.50 per share",
"value": 50033.3133
},
{
"ticker": "SAC.WS",
"name": "Safeguard Acquisition Corp. Warrants, each whole warrant exercisable for one Class A ordinary share at an exercise price of $11.50 per share",
"value": 39140.5277
}
]
}curl -G "https://api.tickerbot.io/v2/signals/pct_from_sma_20" \
--data-urlencode "condition=> 0.4547" \
-d "asof=2026-05-20" \
-H "Authorization: Bearer YOUR_KEY"{
"as_of": "2026-05-20",
"signal": "pct_from_sma_20",
"condition": "> 0.4547",
"universe": null,
"count": 2,
"results": [
{
"ticker": "AMPGR",
"name": "Amplitech Group, Inc. Series A Right",
"value": 460.3642367538901
},
{
"ticker": "TE.WS",
"name": "T1 Energy Inc. Warrants, each whole warrant exercisable to purchase one Common Stock at an exercise price of $11.50 per share",
"value": 362.6630887387811
}
]
}curl -X POST "https://api.tickerbot.io/v2/signals/pct_from_sma_20/subscribe" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_KEY" \
-d '{"condition": "> 0.4547", "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 →
curl -G "https://api.tickerbot.io/v2/scan" \
--data-urlencode "q=pct_from_sma_20 IS NOT NULL" \
-d "order=pct_from_sma_20" -d "columns=pct_from_sma_20" \
-H "Authorization: Bearer YOUR_KEY"{
"as_of": "2026-08-18T00:25:10.815Z",
"query": {
"q": "pct_from_sma_20 IS NOT NULL",
"limit": 2,
"order": "pct_from_sma_20",
"dir": "desc",
"fields": [
"pct_from_sma_20"
],
"full": false,
"universe": null,
"asset_class": null
},
"count": 2,
"results": [
{
"ticker": "LEGO.WS",
"name": "Legato Merger Corp. IV Redeemable Warrants, each whole warrant exercisable to purchase one ordinary share at an exercise price of $11.50 per share",
"asset_class": "stocks",
"asset_type": "WARRANT",
"price": 22150.1905,
"day_change_pct": null,
"gap_pct": null,
"relative_volume": null,
"market_cap": null,
"pct_from_sma_20": 50033.3133
},
{
"ticker": "SAC.WS",
"name": "Safeguard Acquisition Corp. Warrants, each whole warrant exercisable for one Class A ordinary share at an exercise price of $11.50 per share",
"asset_class": "stocks",
"asset_type": "WARRANT",
"price": 22150.1905,
"day_change_pct": 36922.138,
"gap_pct": null,
"relative_volume": null,
"market_cap": null,
"pct_from_sma_20": 39140.5277
}
]
}curl -G "https://api.tickerbot.io/v2/scan" \
--data-urlencode "q=pct_from_sma_20 IS NOT NULL" \
-d "order=pct_from_sma_20" -d "columns=pct_from_sma_20" \
-d "asof=2026-05-20" \
-H "Authorization: Bearer YOUR_KEY"{
"as_of": "2026-05-20",
"query": {
"q": "pct_from_sma_20 IS NOT NULL",
"asof": "2026-05-20",
"interval": "auto",
"limit": 2,
"order": "pct_from_sma_20",
"dir": "desc",
"fields": [
"pct_from_sma_20"
],
"full": false,
"universe": null,
"asset_class": null
},
"count": 2,
"results": [
{
"ticker": "AMPGR",
"name": "Amplitech Group, Inc. Series A Right",
"asset_class": "stocks",
"asset_type": "RIGHT",
"price": 0.56,
"day_change_pct": 12.00000000000001,
"gap_pct": 39.99999999999999,
"relative_volume": 9.272067488643737,
"market_cap": null,
"pct_from_sma_20": 460.3642367538901
},
{
"ticker": "TE.WS",
"name": "T1 Energy Inc. Warrants, each whole warrant exercisable to purchase one Common Stock at an exercise price of $11.50 per share",
"asset_class": "stocks",
"asset_type": "WARRANT",
"price": 1,
"day_change_pct": 227.8688524590164,
"gap_pct": 14.754098360655732,
"relative_volume": 13.463851325404573,
"market_cap": 160977000,
"pct_from_sma_20": 362.6630887387811
}
]
}curl -X POST "https://api.tickerbot.io/v2/scan/subscribe" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_KEY" \
-d '{"q": "pct_from_sma_20 > 0.4547", "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 →
curl "https://api.tickerbot.io/v2/series?tickers=AAPL,MSFT&columns=close,pct_from_sma_20" \
-H "Authorization: Bearer YOUR_KEY"{
"as_of": "2026-08-18T00:25:13.340Z",
"interval": "1d",
"tickers": [
"AAPL",
"MSFT"
],
"columns": [
"close",
"pct_from_sma_20"
],
"count": 6,
"series": {
"AAPL": [
{
"t": "2026-08-12",
"close": 302.25,
"pct_from_sma_20": -5.921633790320437
},
{
"t": "2026-08-13",
"close": 305.26,
"pct_from_sma_20": -4.554644414052265
},
{
"t": "2026-08-14",
"close": 305.93,
"pct_from_sma_20": -3.9295413166723527
}
],
"MSFT": [
{
"t": "2026-08-12",
"close": 492.43,
"pct_from_sma_20": 11.832691949169632
},
{
"t": "2026-08-13",
"close": 496.88,
"pct_from_sma_20": 11.622035074792663
},
{
"t": "2026-08-14",
"close": 495.4,
"pct_from_sma_20": 9.982736591706661
}
]
}
}Same grammar on scan, series, and webhooks; state reads take ?asof= for point-in-time answers.