SHORT:=39;LONG:=78;MID:=16;
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;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
底背:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS (DIF,DEA);
三全项:低金 AND 二金 AND 底背;