订单块
代码
阅读文档 →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')







