訂單塊
程式碼
閱讀文件 →import { ChartWidget } from '@tradecanvas/chart/widget'
import { detectOrderBlocks } from '@tradecanvas/chart'
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'BTCUSDT',
timeframe: '15m',
theme: 'light',
adapter: feed,
})
const chart = widget.getChart()
chart.addIndicator('orderblocks') // the latest 5 standing on each side; count: 0 draws all
// Or find them yourself
const blocks = detectOrderBlocks(bars, { length: 5 })import { ChartWidget } from '@tradecanvas/chart/widget'
import { detectOrderBlocks } from '@tradecanvas/chart'
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'BTCUSDT',
timeframe: '15m',
theme: 'dark',
adapter: feed,
})
const chart = widget.getChart()
chart.addIndicator('orderblocks') // the latest 5 standing on each side; count: 0 draws all
// Or find them yourself
const blocks = detectOrderBlocks(bars, { length: 5 })● 模擬行情資料,在你的瀏覽器中產生
138 個指標可放在獨立副圖或疊加在價格上,64 種K線型態直接標在K線上。
API: addIndicator('orderblocks')







