如何将自定义数据显示在面板上? #741
Unanswered
haozhi1026
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
{
// 时间戳,毫秒级别,必要字段
timestamp: number
// 开盘价,必要字段
open: number
// 收盘价,必要字段
close: number
// 最高价,必要字段
high: number
// 最低价,必要字段
low: number
// 成交量,非必须字段
volume: number
// 成交额,非必须字段,如果需要展示技术指标'EMV'和'AVP',则需要为该字段填充数据。
turnover: number
}
面板上,除了通过计算,显示了时间,开盘价,收盘价,最高价,最低价,成交量之外。
如果数组对象传入了除必要字段之外的其他值,如何显示在主面板上?比如换手率,涨跌幅等。
我试过用自定义的方式叠加,
chart.createIndicator('myCustom', true, {
id: 'candle_pane',
});
但是这些和价格不相关,所以会影响蜡烛图。
而我只是想在面板上显示,并不像参与计算。
有好的办法么?
Beta Was this translation helpful? Give feedback.
All reactions