ValueByPoint(X, Y, Date, Price, [Correct])
X,Y 输入参数,点位置坐标。
Date 输出参数,输入点位置的日期。
Price 输出参数,输入点位置的
Correct 可选参数,当输入点超过当前窗格范围时,是否允许进行修正,默认为True。
返回值 输入点坐标对应的周期序列。
这个函数,的Date 输出 总是最后一天 23号。 x,y坐标是不同的
944 499 2016/4/23 3848
969 560 2016/4/23 3596
970 559 2016/4/23 3600
960 564 2016/4/23 3579
960 564 2016/4/23 3579 我是多个窗格,有几个周期, 为什么只有1,3分钟取到的 坐标对应的价格 是对的,稍微大点的周期取的值都不对
不知道你具体的代码是怎么写的?
Sub Technic_MouseMove(Button, Shift, x, y)
set Grid1 = Technic.GetGridByPt(x, y)
if not(Grid1 is nothing) then ‘这里要判断对象是否为空,养成良好的编程习惯
set Grid1 = Technic.GetGridByName(Grid1.Name)
Dim Values
Dim Date
x1=0
y2=0
call Grid1.FrameToGrid(x,y,x1,y2)
call Grid1.ValueByPoint(x1, y2,Date,Values,true)
v1 = round(Values, 0)
application.msgout date & " "& v1 & "--"& Grid1.Name
end if
End Sub