以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  请教  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=55170)

--  作者:金田
--  发布时间:2013/8/15 8:53:50
--  请教
请问前天的最高价如何表达??
--  作者:jinzhe
--  发布时间:2013/8/15 9:08:56
--  
前天最高价:callstock(stklabel,vtclose,6,-2);
--  作者:rushtaotao
--  发布时间:2013/8/15 9:11:33
--  

\' 得到框架名称为"Technic",窗格名称为"Window1"的窗格对象
Set Grid = Technic.GetGridByName("Main")

\'得到该窗格所对应的对象
Set History = Grid.GetHistoryData()

\'取最后一天的收盘价
Close = History.high(History.Count-3)
MsgBox Close