compute_indicator
Compute a technical indicator (RSI, MACD, SMA, EMA, BBANDS, ATR, ADX, STOCH) over a ticker's price history. Returns the warmup-aligned series plus the latest values and a one-line summary. Tune the window with length (SMA/EMA/RSI/ATR/ADX/BBANDS), fast/slow/signal (MACD), std (BBANDS), or k/d/smooth_k (STOCH) — pass them either as top-level fields OR nested under params; both work. window and period are accepted as aliases for length. NOTE: for a long window like SMA(200) you MUST set length=200 (the default is 20). The response echoes the effective params it used, and the summary shows the window, e.g. SMA(200). Ensure range spans at least length bars (e.g. range=2y for SMA(200)) or the series is all-warmup NaN. (paid: $0.0050/call)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| d | No | ||
| k | No | ||
| std | No | ||
| fast | No | ||
| slow | No | ||
| range | No | 1y | |
| length | No | ||
| params | No | ||
| period | No | ||
| signal | No | ||
| ticker | Yes | ||
| window | No | ||
| interval | No | 1d | |
| smooth_k | No | ||
| indicator | Yes |