Field reference / model trend

model_trend_zone

The model's equity curve against its own 50-row and 200-row simple moving averages (SMAs): downtrend, sideways, uptrend. Rows are the model's own rows (sessions for stock models, days for crypto models). Null until the model has enough rows for the SMAs.

LevelPer model, one value per date
Typestring (band)
Can be nullYes
Categorymodel trend
Returned by/v1/models

Values

One of these, in order:

downtrend sideways uptrend

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.

FieldTypeWhat it says
model_trend_zone_stabilitystring (band)How settled model_trend_zone 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).
model_trend_zone_periodsintegerDaily or weekly rows, including this one, that model_trend_zone has held its current value; 1 means it changed on this row.
model_trend_zone_flips_recent_countintegerHow many times model_trend_zone changed value in the last 30 days (12 weeks on weekly rows).
model_trend_zone_flips_lookbackstringThe window model_trend_zone_flips_recent_count covers: 30d on daily rows, 12w on weekly.
model_trend_zone_prevstring (band)The value model_trend_zone had before it changed, on the row where it changed (when _periods = 1); null otherwise.

Getting it

One model's history of it:

curl -G "https://api.tickerdb.com/v1/models/garp-core-10/history" \ --data-urlencode 'start=2025-01-01' \ --data-urlencode 'fields=["model_trend_zone"]' \ -H "Authorization: Bearer YOUR_API_KEY"

Models matching it:

curl -G "https://api.tickerdb.com/v1/models" \ --data-urlencode 'filters=[{"field":"model_trend_zone","op":"eq","value":"downtrend"}]' \ -H "Authorization: Bearer YOUR_API_KEY"

Every field, with its type and values, is also in /v1/schema/fields.