DemoPhân kỳ RSI

Phân kỳ RSI

import { ChartWidget } from '@tradecanvas/chart/widget'
import { detectDivergences } from '@tradecanvas/chart'

const widget = new ChartWidget(document.getElementById('chart')!, {
  symbol: 'EURUSD',
  timeframe: '15m',
  theme: 'light',
  adapter: feed,
})
const chart = widget.getChart()
chart.addIndicator('rsidiv')   // hidden: 1 adds the hidden ones, dashed

// Or read any line, one value a bar
const divergences = detectDivergences(bars, rsiValues)
import { ChartWidget } from '@tradecanvas/chart/widget'
import { detectDivergences } from '@tradecanvas/chart'

const widget = new ChartWidget(document.getElementById('chart')!, {
  symbol: 'EURUSD',
  timeframe: '15m',
  theme: 'dark',
  adapter: feed,
})
const chart = widget.getChart()
chart.addIndicator('rsidiv')   // hidden: 1 adds the hidden ones, dashed

// Or read any line, one value a bar
const divergences = detectDivergences(bars, rsiValues)

● 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: addIndicator('rsidiv')