Field reference / trend
trend_ma_compression_spread_pct
How far apart the 8-, 50- and 200-period simple moving averages (SMAs) are: the gap between the highest and lowest as a percent of the lowest, so 3.0 = the three SMAs span 3%. Null until all three exist.
| Level | Per stock, ETF and coin, one value per date |
| Type | number |
| Can be null | Yes |
| Category | trend |
| Returned by | /v1/history, /v1/search |
Getting it
Its history for one ticker:
curl -G "https://api.tickerdb.com/v1/history" \
--data-urlencode 'tickers=AAPL' \
--data-urlencode 'fields=trend_ma_compression_spread_pct' \
--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_compression_spread_pct","op":"gte","value":0}]' \
--data-urlencode 'fields=["ticker","trend_ma_compression_spread_pct"]' \
-H "Authorization: Bearer YOUR_API_KEY"
Related fields
Every field, with its type and values, is also in /v1/schema/fields.