Get Log-Linear Regression Channels (90/180/365 bars)
arena_get_trend_channelsWhere does price sit inside its trend channel? Mechanically fitted trend channels for a pair: log-linear regression over close plus 1σ/2σ bands, computed over three fixed windows at once (90/180/365 bars, not selectable) — three side by side show whether a channel is robust or an artifact of the window choice, and agreement.consistent states which it is. r_squared_percentile ranks the fit against all same-size windows on this pair, so an R² comes with its placement instead of standing alone. Where history is too short the window is omitted and listed in windows_unavailable with a reason — never estimated from fewer bars; below 500 bars (1d) / 150 (1w) the raw values still come but percentile is null rather than a rounded number from too small a sample. Pairs listed within the last few months (the tokenized equities and ETFs) therefore return data_sufficient: false and an empty channel list — that is the answer, not an error. Set interval to '1w' for the weekly view; note that a window is counted in bars, so 365 on '1w' means 365 weeks and most pairs do not reach it. Band edges describe past dispersion around the regression line. Related: arena_get_key_levels (pivot clusters), arena_get_btc_market_structure (trend flips and their base rate), arena_get_historical_analog (whether a condition like the current one ever paid). [Free tier]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | No | Pair, e.g. "BTCUSDT" (default), "ETHUSDT", "PAXGUSDT". Full history is used regardless of listing date. | |
| interval | No | Default '1d'. On '1w' a 365-bar window means 365 weeks — most pairs do not reach it and it is reported as unavailable. |