Field reference / trend
trend_stage
Weinstein-style market stage from weekly candles, using the 40-week simple moving average (SMA) as the main trend filter: stage_1_base (basing), stage_2_growth (advancing), stage_3_topping (topping), stage_4_decline (declining). Weekly rows only: always null on daily rows, and null with fewer than 52 weekly bars or when the evidence is ambiguous
| Level | Per stock, ETF and coin, one value per date |
| Type | string (band) |
| Can be null | No, whenever its section has data |
| Category | trend |
| Returned by | /v1/history, /v1/search |
Values
One of these, in order:
stage_1_base stage_2_growth stage_3_topping stage_4_decline
Change markers
Every row also says how long this band has held its value and what it was before. Ask for these by name like any field. See Diff.
| Field | Type | What it says |
|---|---|---|
trend_stage_prev | string (band) | The value trend_stage had before it changed, on the row where it changed (when _periods = 1); null otherwise. |
trend_stage_stability | string (band) | How settled trend_stage is: volatile when it changed often in the last 30 days (12 weeks on weekly rows); otherwise fresh (just changed), holding, or established (unchanged for a long time). |
trend_stage_periods | integer | Daily or weekly rows, including this one, that trend_stage has held its current value; 1 means it changed on this row. |
trend_stage_flips_recent_count | integer | How many times trend_stage changed value in the last 30 days (12 weeks on weekly rows). |
trend_stage_flips_lookback | string | The window trend_stage_flips_recent_count covers: 30d on daily rows, 12w on weekly. |
Getting it
Its history for one ticker:
curl -G "https://api.tickerdb.com/v1/history" \
--data-urlencode 'tickers=AAPL' \
--data-urlencode 'fields=trend_stage' \
--data-urlencode 'start=2025-01-01' \
-H "Authorization: Bearer YOUR_API_KEY"
Stocks matching it today:
curl -G "https://api.tickerdb.com/v1/search" \
--data-urlencode 'filters=[{"field":"trend_stage","op":"eq","value":"stage_1_base"}]' \
--data-urlencode 'fields=["ticker","trend_stage"]' \
-H "Authorization: Bearer YOUR_API_KEY"
Related fields
Every field, with its type and values, is also in /v1/schema/fields.