以文本方式查看主题

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

--  作者:PierreHuang
--  发布时间:2015/5/4 21:33:36
--  请教两段代码
1、取当天9:00-9:30之间的最高价;(使用5分钟周期)
2、取开仓(多头仓)前1小时内的最高价;(使用5分钟周期)

以上两段代码如何实现?谢谢

--  作者:jinzhe
--  发布时间:2015/5/5 8:47:00
--  

1.valuewhen(time=093000,hhv(h,6));

2.ref(hhv(h,12),typebar(1,1));