真正交于一点的机会太少!粘合度在正负0.01,你可调0.99/1.01来处理。
{N=0.99,M=1.01}
MA30:=MA(C,30);
MA60:=MA(C,30);
MA90:=MA(C,30);
MA120:=MA(C,30);
mA_1:=(MA30+MA60+MA90+MA120)/4;
BETWEEN(M30/MA_1,N,M) AND BETWEEN(M60/MA_1,N,M) AND BETWEEN(M90/MA_1,N,M) AND BETWEEN(M120/MA_1,N,M)
MA30:=MA(C,30);
MA60:=MA(C,30);
MA90:=MA(C,30);
MA120:=MA(C,30);
选股:count(cross(ma30,ma60),3)=1 and count(cross(ma30,ma90),3)=1 and count(cross(ma30,ma120),3)=1 and count(cross(ma60,ma90),3)=1 and count(cross(ma60,ma120),3)=1 and count(cross(ma90,ma120),3)=1;