SHORT:=12;
LONG:=26;
M:=9;
DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIFF,M);
macd:2*(DIFF-DEA);
ZERO:0;
买:MacD>0 AND REF(MACD,1)<0 AND REF(MACD,2)>0;
SHORT:=12;
LONG:=26;
M:=9;
DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIFF,M);
macd:2*(DIFF-DEA);
ZERO:0;
买:MacD>0 AND REF(MACD,1)<0 AND REF(MACD,2)>0;