Indicators
33 built-in indicators. Add by id; each registry entry validates its own params.
Adding an indicator
const instanceId = chart.addIndicator('rsi', { period: 14 }, 'bottom')
chart.updateIndicator(instanceId, { period: 21 })
chart.removeIndicator(instanceId) Overlay indicators
Drawn on the main price pane.
| id | Name |
|---|---|
sma | Simple Moving Average |
ema | Exponential Moving Average |
wma | Weighted Moving Average |
hullMa | Hull Moving Average |
bollingerBands | Bollinger Bands |
keltnerChannels | Keltner Channels |
donchianChannels | Donchian Channels |
vwap | VWAP |
anchoredVwap | Anchored VWAP |
parabolicSar | Parabolic SAR |
supertrend | Supertrend |
ichimoku | Ichimoku Kinko Hyo |
pivotPoints | Pivot Points (Classic) |
zigzag | ZigZag |
linearRegressionChannel | Linear Regression Channel |
Panel indicators
Rendered in their own pane beneath the chart.
| id | Name |
|---|---|
rsi | Relative Strength Index |
macd | MACD |
stochastic | Stochastic |
stochasticRsi | Stochastic RSI |
atr | Average True Range |
adx | Average Directional Index |
cci | Commodity Channel Index |
mfi | Money Flow Index |
williamsR | Williams %R |
obv | On-Balance Volume |
chaikinOscillator | Chaikin Oscillator (exposes cumulative ADL) |
awesomeOscillator | Awesome Oscillator |
momentum | Momentum |
roc | Rate of Change |
volume | Volume bars |
volumeRoc | Volume Rate of Change |
standardDeviation | Standard Deviation |
trix | TRIX |
Web Worker pipeline
For heavy indicator workloads, offload calculation off the render loop:
import { IndicatorWorkerHost } from '@tradecanvas/chart'
const host = new IndicatorWorkerHost()
await host.ping()
const result = await host.calculate('rsi', bars, { period: 14 })
host.terminate() Pass null as the worker to use the synchronous fallback (SSR, tests).