Get MA-Distance Time Series (measured, not estimated)
arena_get_ma_distance_historyHow far above or below its moving averages did price stand back then? A measured time series, not an estimate. Covers six MAs (50/100/200-day and 50/100/200-week; weekly MAs are simple averages over ISO-week closes, the same definition arena_get_cycle uses, so today's value agrees with that tool). Per date and MA: distance_pct plus TWO percentile ranks — expanding against the pair's own full prior history (with rank_n, null below 500 observations) and rolling over the trailing 504 days. Warm-up discipline: before an MA's full window exists the field is null, never an average over fewer days — a "200-week MA" computed from 400 days looks plausible and is a different metric; the coverage block names each MA's first valid date. BTCUSDT reaches back to 2011-07 via the platform's own pre-Binance closes (source named in price_source); the first valid 200-week value is ~2015-05. Range capped by tier from today backwards; granularity daily/weekly/monthly, coarsened with an explicit note when a request would exceed the row cap. What the numbers are: ratios and ranks, not absolute price or MA levels. For today's absolute MA levels as named marks use arena_get_key_levels (indicator_levels block); for the cycle-scored 200-week distance use arena_get_cycle. [Free 30d / Pro 365d / Power 3650d]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ISO date, default today. | |
| mas | No | Subset of MAs; default all six. | |
| from | No | ISO date. Clamped to the tier window measured back from today. | |
| pair | No | Pair, e.g. "BTCUSDT" (default), "ETHUSDT", "SOLUSDT". Non-BTC pairs start at their Binance listing. | |
| granularity | No | Default 'daily'. Rows above the cap are coarsened with an explicit note. |