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=2,21)=1; 二金:二次金叉;