SHORT:=12;
LONG:=26;
MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
JCCOUNT:=COUNT(crOSS(DIF,DEA),BArslAST(DEA>=0));
低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
双金叉:低位金叉 AND 二次金叉;