ma05:=ma(c,5);ma10:=ma(c,10);ma20:=ma(c,20);ma30:=ma(c,30);五日乖离率:=(c-ma05)/ma05*100;bb05:=atan((ma05/ref(ma05,1)-1)*100)*180/3.1416;速度5:=sma(ema((ma05-ref(ma05,1))/ref(ma05,1),3)*100,3,1);加速度5:=ema((速度5-ref(速度5,1)),3);三拾日乖离率:=(c-ma30)/ma30*100;加仓:filter(count(cross(bb05,30),5)>=1 and ma05>ref(ma05,1) and 三拾日乖离率>ref(三拾日乖离率,1) and ma10>ref(ma10,1)and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1) ,10) ;ma05:=ma(c,5);ma10:=ma(c,10);ma20:=ma(c,20);ma30:=ma(c,30);五日乖离率:=(c-ma05)/ma05*100;bb05:=atan((ma05/ref(ma05,1)-1)*100)*180/3.1416;速度5:=sma(ema((ma05-ref(ma05,1))/ref(ma05,1),3)*100,3,1);加速度5:=ema((速度5-ref(速度5,1)),3);三拾日乖离率:=(c-ma30)/ma30*100;mr:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and ma05>ref(ma05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<ma30;买入:filter(mr,10); 20210311
var10:=if(trou**ars(3,16,1)=0 and high>low+0.04,4,0);买1:=var10;var11:=zig(3,6)>ref(zig(3,6),1) and ref(zig(3,6),1)<=ref(zig(3,6),2) and ref(zig(3,6),2)<=ref(zig(3,6),3);var13:=zig(3,22)>...