以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  count 函数 和 LLV 一起用时候的 bug?  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=60401)

--  作者:onceflyhigh
--  发布时间:2013/12/27 12:33:46
--  count 函数 和 LLV 一起用时候的 bug?

V3.031 普通版本,股指连续5分钟周期
 
lll := llv(l, 54);

bottomline : lll + 1, linethick0;
c1 : count(low < bottomline, 54), linethick0;
c2 : count(low < 2280.6, 54), linethick0;

如果 bottomline 等于 2280.6, 那么 c1 和 c2 应该相等。

但是26号收盘最后1根K线时候,bottomline 是 2280.6, c1 和 c2 却不相等

--  作者:jinzhe
--  发布时间:2013/12/27 13:22:28
--  

因为这54个周期之内

bottomline是一直在变的

你用2280.6是不变的

所以不一样