以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 交易策略发布专区 (http://weistock.com/bbs/list.asp?boardid=10) ---- [交易系统]三重滤网策略 (http://weistock.com/bbs/dispbbs.asp?boardid=10&id=5302) |
-- 作者:z7c9 -- 发布时间:2011/2/26 12:02:49 -- [交易系统]三重滤网策略
input:n1(60,5,120,5); ma1:=ma(close,n1); longcond:=ref(all(ma1>ref(ma1,1),2) and all(ma2<ref(ma2,1),2) and all(ma3>ref(ma3,1),2),1); shortcond:=ref(all(ma1<ref(ma1,1),2) and all(ma2>ref(ma2,1),2) and all(ma3<ref(ma3,1),2),1);
if holding=0 then begin if holding>0 then begin if holding<0 then begin [此贴子已经被作者于2011-10-3 11:24:25编辑过]
|