DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
轴上金叉:=CROSS(DIFF,DEA) AND DEA>0;
轴上死叉:=CROSS(DEA,DIFF) AND DEA>0;
轴下金叉:=CROSS(DIFF,DEA) AND DEA<0;
轴下死叉:=CROSS(DEA,DIFF) AND DEA<0;
轴上交叉点数:COUNT(轴上金叉,240)+COUNT(轴上死叉,240);
轴下交叉点数:COUNT(轴下金叉,240)+COUNT(轴下死叉,240);