DemosKagi

Kagi

import { Chart } from '@tradecanvas/chart'

const chart = new Chart(document.getElementById('chart')!, {
  theme: 'light',
  chartType: 'kagi',
})
chart.setData(bars)          // OHLCV bars, oldest first
chart.setChartType('kagi')  // switch at any time
import { Chart } from '@tradecanvas/chart'

const chart = new Chart(document.getElementById('chart')!, {
  theme: 'dark',
  chartType: 'kagi',
})
chart.setData(bars)          // OHLCV bars, oldest first
chart.setChartType('kagi')  // switch at any time

● Simulated market data, generated in your browser

A line that turns only when price reverses by a set amount: thick (yang) while it rises, thin (yin) while it falls.

API: chartType: 'kagi'

When to use it

What it shows
Each real reversal as a turn of the line and a change of thickness, with the moves in between left out.
Keep in mind
Time and small moves are dropped; the reversal size decides what you see.
Who reaches for it
Traders of the Japanese methods; anyone who wants reversals without noise.

Switch the chart above between types of the same family; each keeps this market.