DemosCandlestick

Candlestick

import { Chart } from '@tradecanvas/chart'

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

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

● Simulated market data, generated in your browser

The default for reading price: open, high, low and close in one body and its wicks.

API: chartType: 'candlestick'

When to use it

What it shows
Each bar’s direction and range at a glance, and patterns such as engulfing bars, dojis and hammers.
Keep in mind
Every tick of noise is drawn; on a fast market small bars can bury the trend.
Who reaches for it
Almost every trader, on every timeframe.

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