调整指定编号的文本的显示位置。返回0则调整成功;返回-2为无效的文本编号。
Text_SetLocation (TextID, BarDate, BarTime, PriceValue)
Text_SetLocation
TextID —— 整数类型,指定文本的ID号。
TextID
BarDate —— 数值表达式,显示文字的K线日期;日期格式为YYYMMdd
BarDate
BarTime —— 数值表达式,显示文字的K线时间;时间格式为HHmm
BarTime
PriceValue —— 数值表达式,显示文字的垂直位置
PriceValue
当使用 Text_New 的时候,会产生一组TextID。
Text_New
将编号为3的文本字移动到目前K线的上方:
Value1=Text_SetLocation(3,Date,Time,High);
Value1
3
Date
Time
High