后台指标计算返回数据格式说明6 - DRAWNUMBER格式
作者:互联网
后台指标计算返回数据格式说明6 - DRAWNUMBER格式
DRAWNUMBER画出数字.
用法:
DRAWNUMBER(COND,PRICE,NUMBER),当COND条件满足时,在PRICE位置书写数字NUMBER.
例如:
DRAWNUMBER(CLOSE/OPEN>1.08,LOW,C)表示当日实体阳线大于8%时在最低价位置显示收盘价.
基础的属性这里就不说了,具体看后台指标计算返回数据格式说明1 - 基础数据格式
DrawType
“DRAWNUMBER” 固定
Type
1 固定 代表绘图函数数据类型
Draw
绘图函数输出数据
Number
数值数组
Price
数值显示的Y轴数据值,如果是null 就不显示
示例指标脚本
DRAWNUMBER(CLOSE>OPEN,LOW,C);
json结果
{
"Period": 0,
"Right": 0,
"Symbol": "600000.sh",
"Date": [
20201021,
20201022,
20201023,
20201026,
20201027,
20201028,
20201029,
20201030,
20201102,
20201103,
20201104,
20201105,
20201106,
20201109,
20201110,
20201111,
20201112,
20201113,
20201116,
20201117
],
"OutVar": [
{
"Name": "__temp_1__",
"DrawType": "DRAWNUMBER",
"Draw": {
"Number": [
9.7,
9.65,
9.7,
9.6,
9.48,
9.4,
9.37,
9.26,
9.25,
9.3,
9.34,
9.36,
9.39,
9.43,
9.46,
9.56,
9.43,
9.36,
9.45,
9.53
],
"Price": [
9.51,
null,
9.62,
null,
null,
null,
9.34,
null,
null,
null,
null,
null,
9.33,
9.39,
null,
9.44,
null,
null,
9.37,
9.44
]
},
"Type": 1,
"Attribute": [
"NONE_OUT_NAME"
],
"Attribute2": {
"Function": "DRAWNUMBER"
}
}
]
}
QQ群: 950092318
如果还有问题可以加交流QQ群: 950092318
HQChart代码地址地址:github.com/jones2000/HQChart
标签:HQChart,DRAWNUMBER,后台,数据格式,null,Type,DrawType 来源: https://blog.51cto.com/u_15292634/2979813