Kumo Charts

Kumo Charts

An open-source library for trading charts: the core holds the bars and the scales, and indicators, drawings, alerts and replay load when you need them.

Show codeHide code
import { createChart } from '@kumo-charts/core';
import { indicators, EMA, VOL, MACD } from '@kumo-charts/core/indicators';
import { drawings, allDrawings } from '@kumo-charts/core/drawings';
import { loadBars } from '@docs/data';

const chart = createChart(document.getElementById('chart')!, {
  modules: [indicators([EMA, VOL, MACD]), drawings(allDrawings)],
  latestPrice: { countdown: true }
});

chart.data.set(await loadBars(), { interval: '1m' });
chart.data.setTimeframe('1h');

chart.indicators.add({ type: 'EMA', params: { periods: [20, 50] } });
chart.indicators.add({ type: 'VOL', pane: 'main', scale: 'volume' });
chart.priceScale('main', 'volume').setMargins({ top: 0.8, bottom: 0 });
chart.indicators.add({ type: 'MACD' });
npm install @kumo-charts/core

Where to start

Apache-2.0 licensed; the source is on GitHub.

↑↓ to select · Enter to open · Esc to close