Field reference / trend

trend_ma_crossover_event

Moving-average cross on this bar (the faster SMA was at or below the slower one on the previous bar and is above it now, or the reverse), highest priority first: bullish_golden_cross / bearish_death_cross (50 over / under 200), bullish_trend_cross / bearish_trend_cross (20 over / under 50), then 8 over / under 20 as sharp_bullish_cross / sharp_bearish_cross when the 8-period SMA is rising or falling steeply in the cross direction, else lazy_bullish_cross / lazy_bearish_cross. It names the cross only on the crossing bar and reads none on the next. Null when no SMA pair has formed.

LevelPer stock, ETF and coin, one value per date
Typestring (band)
Can be nullNo, whenever its section has data
Categorytrend
Returned by/v1/history, /v1/search

Values

One of these, in order:

bullish_golden_cross bearish_death_cross bullish_trend_cross bearish_trend_cross sharp_bullish_cross lazy_bullish_cross sharp_bearish_cross lazy_bearish_cross none

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
trend_ma_crossover_event_stabilitystring (band)How settled trend_ma_crossover_event 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_ma_crossover_event_periodsintegerDaily or weekly rows, including this one, that trend_ma_crossover_event has held its current value; 1 means it changed on this row.
trend_ma_crossover_event_flips_recent_countintegerHow many times trend_ma_crossover_event changed value in the last 30 days (12 weeks on weekly rows).
trend_ma_crossover_event_flips_lookbackstringThe window trend_ma_crossover_event_flips_recent_count covers: 30d on daily rows, 12w on weekly.
trend_ma_crossover_event_prevstring (band)The value trend_ma_crossover_event had before it changed, on the row where it changed (when _periods = 1); null otherwise.

Getting it

Its history for one ticker:

curl -G "https://api.tickerdb.com/v1/history" \ --data-urlencode 'tickers=AAPL' \ --data-urlencode 'fields=trend_ma_crossover_event' \ --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_ma_crossover_event","op":"eq","value":"bullish_golden_cross"}]' \ --data-urlencode 'fields=["ticker","trend_ma_crossover_event"]' \ -H "Authorization: Bearer YOUR_API_KEY"

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