n1:=5;n2:=9;nmtm:=c-ref(c,1);zlgj:=100*ema(ema(nmtm,n1),n1)/ema(ema(abs(nmtm),n1),n1);t1:=ref(zlgj,1)<=zlgj;xg:t1=1 and ref(t1,1)=0 and zlgj<0;信号较多,帮你优化了一下。
dif:=ema(close,5)-ema(close,26);dea:=ema(dif,55);macd:=(dif-dea)*2;tj:=macd>0;t:=macd<0;a:=llv(macd,55)=macd;b:=hhv(macd,55)=macd;drawicon(a and filterx(a,25), l*0.99,11);d:b and filterx(b,25);