# Indicators Overview

> All 12 real-time rolling indicators, their placement, default parameters, TA-Lib seeding, and O(1) incremental tick parity.

Canonical page: [https://docs.kami.trade/indicators/](https://docs.kami.trade/indicators/)

Kami implements all 12 chart indicators with custom `O(1)` resumable kernels (`src/chart/incremental.ts`) rather than KLineChart's built-in math. Every indicator is verified bit-for-bit (`Object.is`) against the batch reference implementations in `src/ta/indicators.ts` and validated against TA-Lib golden outputs.

## All 12 Rolling Indicators

| Indicator | Name | Placement | Default parameters | Outputs |
| --- | --- | --- | --- | --- |
| [`MA`](https://docs.kami.trade/indicators/overlays/#ma-simple-moving-average) | Moving averages | Price overlay | `[5, 10, 30, 60]` | `ma1..ma4` |
| [`EMA`](https://docs.kami.trade/indicators/overlays/#ema-exponential-moving-average) | Exponential moving averages | Price overlay | `[6, 12, 20]` | `ema1..ema3` |
| [`BOLL`](https://docs.kami.trade/indicators/overlays/#boll-bollinger-bands) | Bollinger bands | Price overlay | `[20, 2]` | `UP`, `MID`, `DN` |
| [`VWAP`](https://docs.kami.trade/indicators/overlays/#vwap-session-volume-weighted-average-price) | Volume-weighted average price | Price overlay | `[1, 2]` (σ bands) | `VWAP`, `±1σ`, `±2σ` |
| [`SUPERTREND`](https://docs.kami.trade/indicators/overlays/#supertrend) | Supertrend | Price overlay | `[10, 3]` | `UP`, `DN` |
| [`VOL`](https://docs.kami.trade/indicators/oscillators/#vol-volume) | Volume | Sub-pane | `[5, 10, 20]` | Volume bars + 3 SMAs |
| [`RSI`](https://docs.kami.trade/indicators/oscillators/#rsi-relative-strength-index) | Relative strength index | Sub-pane | `[6, 12, 24]` | `rsi1..rsi3` |
| [`MACD`](https://docs.kami.trade/indicators/oscillators/#macd-moving-average-convergence-divergence) | MACD | Sub-pane | `[12, 26, 9]` | `DIF`, `DEA`, histogram |
| [`ATR`](https://docs.kami.trade/indicators/oscillators/#atr-average-true-range) | Average true range | Sub-pane | `[14]` | `ATR` |
| [`ADX`](https://docs.kami.trade/indicators/oscillators/#adx-average-directional-index) | Average directional index | Sub-pane | `[14]` | `ADX`, `+DI`, `-DI` |
| [`STOCHRSI`](https://docs.kami.trade/indicators/oscillators/#stochrsi-stochastic-rsi) | Stochastic RSI | Sub-pane | `[14, 14, 3, 3]` | `%K`, `%D` |
| [`OBV`](https://docs.kami.trade/indicators/oscillators/#obv-on-balance-volume) | On-balance volume | Sub-pane | `[20]` | `OBV`, `MA` signal |

## Numerical & Performance Guarantees

- **`O(1)` per live tick**: When a live trade updates the forming candle or appends a new bar, `calcRows()` checkpoints kernel state right before bar `n - 1` and recomputes only the changed bar (~`0.012 ms` per tick across all 12 indicators on `2,000` candles).
- **Neumaier-compensated rolling sums**: `MA`, `VOL` averages, `BOLL` middle band, `STOCHRSI` smoothing, and `OBV` use Neumaier error-compensated summation so year-long `1m` series never suffer floating-point drift.
- **TA-Lib seeding**: `EMA` seeds with the simple mean of its first `period` values; `RSI`, `ATR`, `ADX`, and `SUPERTREND` use Wilder's RMA warm-up (`period` changes or `TR[1..period]`). Warm-up `NaN` bars are omitted from chart rows so nothing draws prematurely.
- **Phone pane cap**: On compact touch viewports (`chart.panes: off`), enabling a new sub-pane indicator replaces the previous sub-pane indicator; tablets and desktops support multiple stacked panes.
