DemosLine break

Line break

import { Chart } from '@tradecanvas/chart'

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

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

● Simulated market data, generated in your browser

Three-line break: a new line only when the close breaks the last lines.

API: chartType: 'lineBreak'

When to use it

What it shows
Trend changes confirmed by price, without a fixed box size to tune.
Keep in mind
Signals come late by design: a reversal must break three lines first.
Who reaches for it
Position traders who would rather confirm a turn than catch it early.

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