above_ sma_ 20
Price is above the 20-day simple moving average.
Facts
A boolean signal: screen on it by its bare name (above_sma_20, or NOT above_sma_20). It's null on tickers it doesn't apply to.
| definition | price > sma_20 |
| type | state (boolean) |
| firing | continuous |
| refresh | 1 min · 4 AM–8 PM ET · crypto and FX 24/7 |
| grains | 1m 1h 1d |
| asset classes | US equities, Crypto, FX |
| coverage | all tickers |
| history | 1d full · since 2003; 1h full · since 2003; 1m full · since 2003 |
| typical role | regime classifier (uptrend tag), compound-condition gate on directional signals, swing entry filter (3–4 week trend reference) |
Examples
Screen on it
curl -X POST "https://api.tickerbot.io/v2/scan" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_KEY" \
-d '{
"q": "above_sma_20"
}'Backtest it on a past date
curl -X POST "https://api.tickerbot.io/v2/scan" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_KEY" \
-d '{
"q": "above_sma_20",
"asof": "2026-08-17"
}'Get an alert when a ticker starts matching
curl -X POST "https://api.tickerbot.io/v2/scan/subscribe" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_KEY" \
-d '{
"q": "above_sma_20",
"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
curl "https://api.tickerbot.io/v2/tickers/NVDA/history?select=close,above_sma_20" \
-H "Authorization: Bearer YOUR_KEY"Its firings
curl -G "https://api.tickerbot.io/v2/events" \
-d "kind=signal" -d "from=2026-04-09" -d "signal=above_sma_20" -d "transition=enter" \
-H "Authorization: Bearer YOUR_KEY"