DIF:=EMA(CLOSE,12)-EMA(CLOSE,26), COLORGRAY;
DEA:=EMA(DIF,9),COLORYELLOW;
macd:=2*(DIF-DEA);
CXY:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667;
攻击针:CXY AND DEA>REF(DEA,1) AND DIF>DEA AND (C>=MA(C,10)OR COUNT(C>=MA(C,10),3)>=1)AND
COUNT(crOSS(MA(C,5),MA(C,20)),5)=1 AND MA(C,60)>REF(MA(C,60),1)AND MA(C,60)>MA(C,120) AND MA(C,120)>REF(MA(C,120),1);