tickerbot.io

days_up

Consecutive trading days closing higher than the prior close. Resets to 0 on a down or unchanged close.

Facts

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

definitionCount of consecutive sessions, ending today, whose close is above the previous session's close. An unchanged close counts as neither up nor down and resets both streaks to 0. Live, today's close is the current price.
typenumeric
unitdays
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": "days_up > 5",
    "order": "days_up"
  }'

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

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