DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,MID);
DEA1:=REF(DEA,1);
MACD:=(DIF-DEA)*2;
aa1:=dif>dea;
aa2:=o>ref(c,1) and l>ref(h,1) and v/ref(v,1)>1.5 and c/ref(c,1)>1.04;
AA:=C>O;
BB:=O>REF(H,1) AND C>O AND V>REF(V,1);
CC:=OREF(H,2);
XG:REF(AA,2) AND REF(BB,1) AND CC AND COUNT(CROSS(MACD.DIF,MACD.DEA),3)=1;
(试试看)