K:=EMA(C,2);
K1:=EMA(K,2);
K2:=EMA(K1,2);
K3:=EMA(K2,2);
快:=EMA(K1,3),COLORRED,LINETHICK1;
中:=EMA(K2,5),COLORYELLOW,LINETHICK1;
慢:=EMA(K3,7),COLORBLUE,LINETHICK1;
A1:=EMA(C,14),COLORWHITE,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100;
打首板:crOSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 AND C=H AND CROSS(快,慢) AND C>=快 AND C>O;