这样就可以:ma05:=ma(c,5);ma30:=ma(c,30);五日乖离率:=(c-ma05)/ma05*100;三拾日乖离率:=(c-ma30)/ma30*100;买入:count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and ma05>ref(ma05,1) and (c/ref(c,1)-1)*100>5 a...
tr:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),7);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sum(if(hd>0 and hd>ld,hd,0),7);dmm:=sum(if(ld>0 and ld>hd,ld,0),7);d...