演示公允价值缺口

公允价值缺口

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

const widget = new ChartWidget(document.getElementById('chart')!, {
  symbol: 'ETHUSDT',
  timeframe: '15m',
  theme: 'light',
  adapter: feed,
})
const chart = widget.getChart()
chart.addIndicator('fvg', { minPercent: 0.05 })

// Or find them yourself
const gaps = detectFairValueGaps(bars, { minPercent: 0.05 })
import { ChartWidget } from '@tradecanvas/chart/widget'
import { detectFairValueGaps } from '@tradecanvas/chart'

const widget = new ChartWidget(document.getElementById('chart')!, {
  symbol: 'ETHUSDT',
  timeframe: '15m',
  theme: 'dark',
  adapter: feed,
})
const chart = widget.getChart()
chart.addIndicator('fvg', { minPercent: 0.05 })

// Or find them yourself
const gaps = detectFairValueGaps(bars, { minPercent: 0.05 })

● 模拟行情数据,在你的浏览器中生成

138 个指标,可放在独立窗格或叠加在价格上;64 种K线形态直接标注在K线上。

API: addIndicator('fvg')