DemoMẫu nến và pane chỉ báo

Mẫu nến và pane chỉ báo

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

const chart = new Chart(el, { theme: 'light' })
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)
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)

● Dữ liệu thị trường giả lập, tạo trong trình duyệt của bạn

138 chỉ báo trong pane riêng hoặc trên giá, và 64 mẫu nến được đánh dấu trên nến.

API: candlepatterns