DemosHLC area

HLC area

import { Chart } from '@tradecanvas/chart'

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

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

● Simulated market data, generated in your browser

The high-low range as a band, with the close drawn through it.

API: chartType: 'hlcArea'

When to use it

What it shows
How wide each bar swung and where it settled inside its range.
Keep in mind
The open is left out.
Who reaches for it
Traders who care about range and close: volatility and settlement-based strategies.

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