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=3,60)=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=3,60)=1;
三金:三次金叉;