在图表上指定位置标示一个向上或向下的箭头物件,返回箭头物件的编号ArrowID(数值型)。
Arw_New (BarDate, BarTime, PriceValue, Direction)
Arw_New
BarDate —— 数值表达式,显示箭头的Bar日期;日期格式为YYYMMdd(从1990年开始)
BarDate
BarTime —— 数值表达式,显示箭头的Bar时间;时间格式为HHmm
BarTime
PriceValue —— 数值表达式,显示箭头的价格(垂直)位置
PriceValue
Direction —— 逻辑表达式,True为向下箭头,False为向上箭头
Direction
当连续三根Bar的开盘价都持续升高,则在Bar最高价的位置显示一个向上的箭头:
If Open>Open[1] And Open[1]>Open[2] Then Value1=Arw_New(Date,Time,High,False);
If
Open
1
And
2
Then
Value1=Arw_New(Date,Time,High,False);
Value1
Date
Time
High
False