DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
JCCOUNT1:=COUNT(crOSS(DIF,DEA),BArslAST(DEA>=0));
零下金叉:=CROSS(DIF,DEA) AND DIF<0.0 AND COUNT(JCCOUNT1=1,21)=1;
零下二次:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT1=2,21)=1;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA) AND DEA<0;
三全项:零下金叉 AND 零下二次 AND 底背离;