ChartsFinancialQuantitative· 5 min read
Technical Indicators & Quantitative Overlays
Mathematical overlays & oscillators: SMA, EMA, Bollinger Bands, RSI, MACD, SuperTrend, ATR, and Volume-Weighted Average Price (VWAP).
QuaCharts includes an integrated quantitative indicators library that calculates technical overlays directly in client memory or web worker threads using vectorized SIMD algorithms. Indicator outputs bind reactively to base candlestick series.
Supported Indicators
| Indicator | Type | Default Parameters | Visualization |
|---|---|---|---|
| SMA | Price Overlay | period: 20 | Smoothed trend line over close prices |
| EMA | Price Overlay | period: 50, smoothing: 2 | Exponentially weighted trend line |
| Bollinger Bands | Price Overlay | period: 20, stdDev: 2 | Upper, lower, and mid bands with shaded envelope |
| VWAP | Price Overlay | anchor: "session" | Volume-Weighted Average Price calculated from session open |
| SuperTrend | Price Overlay | period: 10, multiplier: 3 | Adaptive volatility-based stop-and-reverse band |
| RSI | Oscillator Pane | period: 14, overbought: 70, oversold: 30 | 0-100 bounded oscillator in lower pane |
| MACD | Oscillator Pane | fast: 12, slow: 26, signal: 9 | MACD line, Signal line, and colored histogram bars |
| ATR | Oscillator Pane | period: 14 | Average True Range volatility meter |
Adding Indicators Programmatically
Attach indicators to any existing financial series with one declarative call. When new price ticks append to the base candle series, indicator values update incrementally in O(1) time:
add-indicators.ts
1
// Add 20-period Simple Moving Average overlay
2
chart.addIndicator({
3
type: 'sma',
4
linkedTo: 'nvda-candles',
5
params: { period: 20 },
6
color: '#f59e0b',
7
lineWidth: 1.5,
8
});
9
10
// Add Bollinger Bands with shaded channel
11
chart.addIndicator({
12
type: 'bollinger',
13
linkedTo: 'nvda-candles',
14
params: { period: 20, stdDev: 2 },
15
color: '#38bdf8',
16
fillColor: 'rgba(56, 189, 248, 0.08)',
17
});
18
19
// Add RSI Oscillator in a new dedicated pane
20
chart.addIndicator({
21
type: 'rsi',
22
linkedTo: 'nvda-candles',
23
params: { period: 14 },
24
pane: 1, // Opens lower pane
25
overbought: 70,
26
oversold: 30,
27
color: '#a855f7',
28
});