DIFF: (EMA(CLOSE,N1) - EMA(CLOSE,N2))/C*1000;
DEA: EMA(DIFF,M);
Zero:0;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
JC:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
JCC:=COUNT(CROSS(DEA,DIFF),BARSLAST(DEA<=0));
DRAWICON(CROSS(DIFF,DEA)AND DEA<0 AND COUNT(JC=2,21)=1,DIFF,1);
DRAWICON(CROSS(DEA,DIFF)AND DEA>0 AND COUNT(JCC=2,21)=1,DIFF,2);