N:=3;
M:=9;
M1:=3;
DIF:=EMA(CLOSE,N)-EMA(CLOSE,M);
DEA:=EMA(DIF,M1);
JCCOUNT:=COUNT(crOSS(DIF,DEA),BArslAST(DEA>=0));
四次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=4,90)=1;
四金:四次金叉;
N:=3;
M:=9;
M1:=3;
DIF:=EMA(CLOSE,N)-EMA(CLOSE,M);
DEA:=EMA(DIF,M1);
JCCOUNT:=COUNT(crOSS(DIF,DEA),BArslAST(DEA>=0));
四次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=4,90)=1;
四金:四次金叉;