以文本方式查看主题

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

--  作者:东吴杰
--  发布时间:2013/10/22 12:29:08
--  求教如何表述

如果昨天最高价表述为

N:barslast(date<>ref(dare,1))+1

predayhigh:ref(hhv(h,N),N)

那么前天最高价应该是?


--  作者:jinzhe
--  发布时间:2013/10/22 13:08:41
--  

N:barslast(date<>ref(dare,1))+1

predayhigh:ref(hhv(h,270),N+270);

 

270是股指一分钟的一天k线数量,其他周期其他数量的要做适当的修改