代码://策略名:Aberration //类型:中长线//使用市场:多市场//修订时间:2012.11.1//Designed By Rogarzinput:m(35,5,300,30),N(2,0.1,10,1),ss(1,1,100,1);MID : MA(CLOSE,M);//中轨UPPER: MID + N*STD(CLOSE,M);//上轨LOWER: MID - N*STD(CLOSE,M);//下轨手数:ss;//条件:开多条件:=c>upper and holding=0;//上穿上轨开多开空条件:=c<lower and holding=0;//下穿下轨开空平多条件:=c<mid and holding>0; //下穿中轨平多平空条件:=c>mid and holding<0; //上穿中轨平空 if 开多条件 then buy(1,手数,market);if 开空条件 then buyshort(1,手数,market);if 平多条件 then sell(1,手数,market);if 平空条件 then sellshort(1,手数,market); |