以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 背离判断编程 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=149129) |
-- 作者:yaochun -- 发布时间:2017/3/15 14:46:36 -- 背离判断编程 我想做一个背离统计的程序,要统计的数有:价格创新高并且MACD没有创新高的次数,价格创新高的次数。请版主帮忙。 |
-- 作者:jinzhe -- 发布时间:2017/3/15 14:56:27 -- 统计一天里面的次数吗 |
-- 作者:yaochun -- 发布时间:2017/3/15 15:07:32 -- 所有的 |
-- 作者:jinzhe -- 发布时间:2017/3/15 15:17:04 -- 1.价格创新高并且MACD没有创新高的次数, macd:=stkndi(\'\',\'macd.macd1\',0,datatype); count(h=hhv(h,0) and macd<>hhv(macd,0),0); 2.价格创新高的次数 count(h=hhv(h,0),0); [此贴子已经被作者于2017-3-15 15:17:12编辑过]
|
-- 作者:yaochun -- 发布时间:2017/3/15 15:37:47 -- 可以吗。或者时一天内小周期1分钟的。 |
-- 作者:jinzhe -- 发布时间:2017/3/15 15:42:34 -- 以下是引用jinzhe在2017-3-15 15:17:04的发言:
1.价格创新高并且MACD没有创新高的次数, macd:=stkndi(\'\',\'macd.macd1\',0,datatype); count(h=hhv(h,0) and macd<>hhv(macd,0),0); 2.价格创新高的次数 count(h=hhv(h,0),0); [此贴子已经被作者于2017-3-15 15:17:12编辑过] 再发一遍 |