赞
踩
显示文字;在指标排序中显示字符串栏目.
用法:
DRAWTEXT(COND,PRICE,TEXT),当COND条件满足时,在PRICE位置书写文字TEXT.
例如:
DRAWTEXT(CLOSE/OPEN>1.08,LOW,‘大阳线’)表示当日实体阳线大于8%时在最低价位置显示’大阳线’字样.
基础的属性这里就不说了,具体看后台指标计算返回数据格式说明1 - 基础数据格式
“DRAWTEXT” 固定
1 固定 代表绘图函数数据类型
绘图函数输出数据
输出的文本信息
文本显示的Y轴数据值,如果是null 就不显示。
指标脚本
DRAWTEXT(CLOSE/OPEN,LOW,'大阳线');
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": "DRAWTEXT",
"Draw": {
"Text": "大阳线",
"Price": [
9.51,
9.59,
9.62,
9.59,
9.48,
9.38,
9.34,
9.25,
9.22,
9.28,
9.28,
9.33,
9.33,
9.39,
9.44,
9.44,
9.43,
9.33,
9.37,
9.44
]
},
"Type": 1,
"Attribute": [
"NONE_OUT_NAME"
],
"Attribute2": {
"Function": "DRAWTEXT"
}
}
]
}
如果还有问题可以加交流QQ群: 950092318
地址:github.com/jones2000/HQChart
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。