DIFF :EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD :=2*(DIFF-DEA);
n1:=sumbars(macd>0 and ref(macd<0,1),1);
n2:=sumbars(macd>0 and ref(macd<0,1),2);
JG1:REF(open,N1-1);
SZ1:REF(DIFF,N1-1);
JG2:REF(open,N2-1);
SZ2:REF(DIFF,N2-1);
if macd>0 and ref(macd<0,1) and SZ1>SZ2 then BEGIN
进场语句;
end