SHORT:=12;
LONG:=26;
MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
macd:=(DIF-DEA)*2;
A1:=BArslAST(REF(crOSS(DIF,DEA),1));
一号:(DIFREF(MACD,1) AND DIF/CLOSE<-0.06)*1;
二号:(CROSS(DIF,DEA) AND DIF<-0.01)*1.5;
三号:(REF(CLOSE,A1+1)>CLOSE AND DIF