以文本方式查看主题

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

--  作者:tanganquan
--  发布时间:2015/7/31 11:54:48
--  统计问题?
老师您好,请给我写个指标:我做的是股指期货3分钟,请帮我统计10:00之前,(1)3分钟的收盘价大于等于分时线的K线根数,(2)3分钟的收盘价小于分时线的K线根数。(3)10:00之前最高价到最低价的K线根数。


--  作者:jinzhe
--  发布时间:2015/7/31 13:09:08
--  

fs:sum(amount,todaybar)/sum(vol,todaybar)/multiplier;//分时线

1.  valuewhen(time=100000,count(close>fs,todaybar));

2.  valuewhen(time=100000,count(close<fs,todaybar));

3.  valuewheN(time=100000,hhvbars(h,todaybar)-llvbars(l,todaybar));