Order blocks
Code
Read the docs →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 })● Simulated market data, generated in your browser
138 indicators in their own panes or on the price, and 64 candlestick patterns marked on the bars.
API: addIndicator('orderblocks')







