Smoothed Heikin-Ashi
代码
阅读文档 →import { Chart } from '@tradecanvas/chart'
const chart = new Chart(document.getElementById('chart')!, {
theme: 'light',
chartType: 'smoothedHeikinAshi',
})
chart.setData(bars) // OHLCV bars, oldest first
chart.setChartType('smoothedHeikinAshi') // switch at any timeimport { Chart } from '@tradecanvas/chart'
const chart = new Chart(document.getElementById('chart')!, {
theme: 'dark',
chartType: 'smoothedHeikinAshi',
})
chart.setData(bars) // OHLCV bars, oldest first
chart.setChartType('smoothedHeikinAshi') // switch at any time● 模拟行情数据,在你的浏览器中生成
先把价格按若干根K线取平均(默认 10 根),再画 Heikin-Ashi。
API: chartType: 'smoothedHeikinAshi'
何时使用
- 它显示什么
- 趋势表现为一长串同色蜡烛:比普通 Heikin-Ashi 转色更晚、更少。
- 注意事项
- 平滑带来更大滞后,蜡烛的价格是平均值,不是成交价。
- 谁会用它
- 想留在一段行情里、不理会回调的趋势跟随者。
把上方图表切换为同一类的其他类型;每种都保留当前行情。







