dif:ema(close,9)-ema(close,18),colorcyan;dea:ema(dif,7);macd:=2*(dif-dea);if(dif>=ref(dif,1),dif,draw**),colorred;stickline(macd>=0 and macd>=ref(macd,1),0,macd,2,0),colorred;stickline(macd&g...
ma05:=ma(c,5);ma30:=ma(c,30);五日乖离率:=(c-ma05)/ma05*100;三拾日乖离率:=(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...
公式1: ma1:=ma(c,5);ma2:=ma(c,10);ma3:=ma(c,20);xg:cross(ma1,ma3) and cross(ma2,ma3);公式2: ma1:=ma(c,10);ma2:=ma(c,20);xg:count(cross(ma1,ma2),10)=1 and l<ma2 and c>ma2;