tickerbot.io

sma_50

50-day simple moving average.

Facts

A numeric signal: screen on it with a comparison operator (sma_50 > 450). It's null on tickers it doesn't apply to.

definitionMean of the last 50 daily closes. Live, today's close is the current price. Null with fewer than 50 closes.
typenumeric
unitUSD
refreshpost-close daily · 8:05 PM ET
grains1d
asset classesUS equities, Rates, Crypto, FX
coverageall tickers
historyfull · since 2003
nullableyes

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": "sma_50 > 450",
    "order": "sma_50"
  }'

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": "sma_50 > 450",
    "asof": "2026-08-17",
    "order": "sma_50"
  }'

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": "sma_50 > 450",
    "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,sma_50" \
  -H "Authorization: Bearer YOUR_KEY"