公允價值缺口
程式碼
閱讀文件 →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')







