Compute a technical indicator
indicatorCompute SMA, EMA, RSI, ATR, or Bollinger bands with candle-aligned values. Nulls indicate insufficient history, preventing silent series shifts.
Instructions
Computes SMA, EMA, RSI, ATR or Bollinger bands. Values are aligned with the candles and null before the indicator has enough history, so a caller cannot silently shift the series.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | How many of the most recent bars to use. | |
| name | Yes | ||
| period | No | Lookback. Defaults per indicator. | |
| symbol | Yes | Instrument symbol, for example XAUUSD. Case-insensitive. | |
| timeframe | No | Bar size. Defaults to 1d. | |
| deviations | No | Bollinger only. Defaults to 2. |