在图表上指定位置标注一个特定的文字。返回文字的编号TextID。
Text_New (BarDate, BarTime, PriceValue,"Text")
Text_New
Text
BarDate —— 数值表达式,显示文字的K线日期;日期格式为YYYMMdd
BarDate
BarTime —— 数值表达式,显示文字的K线时间;时间格式为HHmm
BarTime
PriceValue —— 数值表达式,显示文字的垂直位置
PriceValue
Text —— 字符串,显示需要的文本内容
当连续三根K线的开盘价都持续升高,则在K线最高价位置标注”UpT”:
If Open>Open[1] And Open[1]>Open[2] Then Value1=Text_New(Date,Time,High,"UpT");
If
Open
1
And
2
Then
Value1=Text_New(Date,Time,High,"UpT");
Value1
Date
Time
High
"UpT"