p:=(high+low+close)/3;cci:=(p-ma(p,84))*100/(1.5***edev(p,84));a:=cross(cci,100);dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=2*(diff-dea);b:=macd>0 and corss(dif,dea);rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;d:=cross... 20210311
这样就可以: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...