Patterns and indicator panes

import { Chart, detectCandlePatterns } from '@tradecanvas/chart'

const chart = new Chart(el, { theme: 'dark' })
chart.setData(bars)
chart.addIndicator('candlepatterns')       // 64 patterns, marked on the bars
chart.addIndicator('ema', { period: 21 })
chart.addIndicator('rsi', { period: 14 })
chart.addIndicator('macd')

// Or read them yourself
const found = detectCandlePatterns(bars)

● Simulated market data, generated in your browser

134 indicators in their own panes or on the price, and 64 candlestick patterns marked on the bars.

API: candlepatterns