Field reference / momentum

momentum_macd_state

MACD(12, 26, 9) on closes: *_positive when the MACD line is above its signal line (histogram > 0), *_negative otherwise; expanding_* when the histogram's absolute size grew against the previous bar, contracting_* when it did not. Null until the slow EMA and the signal line have formed

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

Values

One of these, in order:

expanding_positive contracting_positive expanding_negative contracting_negative

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
momentum_macd_state_prevstring (band)The value momentum_macd_state had before it changed, on the row where it changed (when _periods = 1); null otherwise.
momentum_macd_state_stabilitystring (band)How settled momentum_macd_state 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).
momentum_macd_state_periodsintegerDaily or weekly rows, including this one, that momentum_macd_state has held its current value; 1 means it changed on this row.
momentum_macd_state_flips_recent_countintegerHow many times momentum_macd_state changed value in the last 30 days (12 weeks on weekly rows).
momentum_macd_state_flips_lookbackstringThe window momentum_macd_state_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=momentum_macd_state' \ --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":"momentum_macd_state","op":"eq","value":"expanding_positive"}]' \ --data-urlencode 'fields=["ticker","momentum_macd_state"]' \ -H "Authorization: Bearer YOUR_API_KEY"

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