MMM:=CURRBARSCOUNT<37;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DIEA:=EMA(DIFF,9);
JCCOUNT:=COUNT(crOSS(DIFF,DIEA),BArslAST(DIEA>=0));
二次金叉:=CROSS(DIFF,DIEA) AND DIEA<0 AND COUNT(JCCOUNT=2,21)=1;
二次金叉XG:二次金叉 AND MMM=1;
MMM:=CURRBARSCOUNT<37;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DIEA:=EMA(DIFF,9);
JCCOUNT:=COUNT(crOSS(DIFF,DIEA),BArslAST(DIEA>=0));
二次金叉:=CROSS(DIFF,DIEA) AND DIEA<0 AND COUNT(JCCOUNT=2,21)=1;
二次金叉XG:二次金叉 AND MMM=1;