pressedhighstockThe official wrote a test. The graphics are no longer available.The outline
var ObjChart = null
var preBarTime = 0
var chart = {
__isStock: true,
extension: {
layout: 'single', // 不参于分组,单独显示, 默认为分组 'group'
height: 600, // 指定高度 // 指定宽度占的单元值, 总值 为12
},
plotOptions: {
candlestick: {
color: '#d75442',
upColor: '#6ba583'
}
},
rangeSelector: {
buttons: [{
type: 'hour',
count: 1,
text: '1h'
}, {
type: 'hour',
count: 3,
text: '3h'
}, {
type: 'hour',
count: 8,
text: '8h'
}, {
type: 'all',
text: 'All'
}],
selected: 2,
inputEnabled: true
},
legend: {
enabled: true,
},
tooltip: {xDateFormat: '%Y-%m-%d %H:%M:%S, %A'}, // 缩放工具
title : { text : '双坐标折线'}, // 标题
rangeSelector: { // 选择范围
buttons: [{type: 'hour',count: 1, text: '1h'}, {type: 'hour',count: 3, text: '3h'}, {type: 'hour', count: 8, text: '8h'}, {type: 'all',text: 'All'}],
selected: 3,
inputEnabled: true
},
xAxis: { type: 'datetime'}, // 坐标轴横轴 即:x轴, 当前设置的类型是 :时间
yAxis : [{ // Primary yAxis // 坐标轴纵轴 即:y轴, 默认数值随数据大小调整。
labels: {
format: '{value}',
},
title: {
text: 'BTC/USDT',
},
showInLegend: true,
opposite: false
}],
series: [{
type: 'candlestick',
name: 'BTC',
id: 'btc',
zIndex: 2,
data: []
}, {
type: 'column',
name: 'Volume',
id: 'volume',
data: [],
yAxis: 1
}, {
type: 'vbp',
linkedTo: 'btc',
params: {
volumeSeriesID: 'volume'
},
dataLabels: {
enabled: false
},
zoneLines: {
enabled: false
}
}
]
};
function main() {
ObjChart = Chart(chart)
ObjChart.reset();
LogReset()
LogVacuum()
while(1){
var records = exchange.GetRecords()
if(records == null || typeof(records) === 'undefined' || records.length == 0) {
} else {
for(var index = 0; index < records.length; index++) {
if(records[i].Time > preBarTime){
ObjChart.add(0, [records[i].Time, records[i].Open, records[i].High, records[i].Low, records[i].Close])
ObjChart.add(1, [records[i].Time, records[i].Volume])
}
}
if(typeof(records[records.length - 1].Time) !== 'undefined') {
preBarTime = records[records.length - 1].Time
}
}
Sleep(1000 * 60)
}
}
Inventors quantify - small dreamsI've tested it. Delete the series What's up? {pos (192,210) } type: 'column', name: 'Volume', id: 'volume', data: [], The y-axis is 1. I'm not sure. What's up? The highstock database, which has no measurement column, can be shown.
fmzeroIs there a conclusion to the dream?
Inventors quantify - small dreamsWell, look at the highstocks documentation.
fmzero volume by price
Inventors quantify - small dreamsO__O"... What is VbP?
fmzeroThank you. Unfortunately, I'm only interested in VbP: ((( I'm glad you're reading this.
Inventors quantify - small dreamsI've written an example to help you see if it helps: What's up? var chart = { __isStock: true, PlotOptions: { What is plot? series: { // general options for all series I'm not sure. What's going on? // shared options for all ema series I'm not sure. I'm not sure. xAxis: { type: 'datetime'}, and series: [ {type: 'ema', data: [1, 2, 3, 4, 5, 6, 7, 8, 8]}, which is the same as the data I'm not going anywhere. I'm not sure. function main (() { var obj = Chart ((chart)) Obj.reset ()) var i is equal to 10000 var j is equal to 1 while ((1) { Obj.add ((0, [i++, j++]); Sleep ((1000) is the I'm not sure. I'm not sure. What's the matter? /upload/asset/169db73891980a34c22a.png This is a list of all the different ways Upload/asset/169db73891980a34c22a.png is credited in the database.
fmzeroIn general, my goal is to test the indicators in highstock,[vbp](https://api.highcharts.com/highstock/series.vbp) highstock is not only now k line, but also other indicators, such as SMA, EMA
Inventors quantify - small dreamsseries only leaves the first one, the rest should be displayed, before returning to the test.
fmzeroCan't you see mine? [Quantity column] (https://api.highcharts.com/highstock/series.column) API