Chartsv26.10.18
Standard edition

Indicators

The full 128-study catalogue with live charts and the exact code to enable every study.

This page covers the indicator engine and lets you explore the whole catalogue: pick a study, see its chart, its parameters and the code that enables it.

Indicators are registry-driven definitions, not baked-in formulas: each study declares its inputs, outputs and reference levels, and the engine runs it incrementally over the bar history.

CategoryStudiesExamples
Trend16SMA, EMA, WMA, HMA, Supertrend, PSAR
Momentum24RSI, Stochastic, MACD, CCI, Williams %R, TRIX
Volatility16ATR, Bollinger Bands, Keltner Channels, Donchian
Volume16OBV, VWAP, MFI, CMF, volume oscillators
Strength24ADX, Aroon, DPO, Vortex, relative strength
Statistics16Correlation, regression, standard error, variance
Cycles12Ehlers-style period and phase studies
Custom4Studies built with the definition API

Explore the catalogue

Pick any study: the chart re-renders with it attached (overlay studies paint on the price pane, oscillators get their own strip with reference levels), and the code block shows how to enable it in your host. The values row mirrors the newest bar, and the table lists the parameters the definition declares.

RSImomentumoscillatorrsi
rsi
8.5686
line
ParameterKindDefaultRange
lengthnumber141..500, step 1
Enable it in your host
import { createCatalogRegistry } from '@unifin/chart-indicators';
import { IndicatorEngine } from '@unifin/chart-core';

const registry = createCatalogRegistry();
const engine = new IndicatorEngine(registry);
engine.setBars(bars);

const study = engine.attach('rsi', {"length":14});
const values = bars.map((_, index) => study.valueAt('rsi', index));

// oscillator: draw the values in a pane below the price
// reference levels: 30, 70

The contract behind every study

  • Definition: id, title, category, placement (overlay or oscillator), declared inputs (with defaults, ranges and options) and outputs (line, histogram, area, points, bands, fill), plus optional reference levels.
  • Incremental by design: update steps one bar from the carried state, so live appends never rebuild history; a forming bar is replayed from the state snapshot taken before it.
  • Isolation: a broken study reports its error on the instance and never breaks the chart or its neighbours.
  • Host contract: the core paints, the host computes - results reach the price pane through overlays (one value per bar, null breaks the line) and your own pane through the same numeric arrays.

The generated API reference for the package is on chart-indicators.

Register your own

A custom study is a definition object registered into an IndicatorRegistry, or a plugin installed through installPlugin(registry, { id, version, source, license, definitions }). Plugins are validated - identity, source, licence and catalogue size (up to 32 studies) - before anything is registered, and a collision leaves the registry untouched.

See also

  • Features - how indicators sit next to the other layers.
  • Analytics kits - domain models that feed their own figures.
  • API overview - the definition contract and the engine surface.

On this page