dif:=ema(close,9)-ema(close,150),nodraw;dea:=ema(dif,12),nodraw;macd:=2*(dif-dea),colorstick;xg:macd<0 and macd>ref(macd,1)and ref(macd,1)(macd,2) and ref(macd,2)(macd,3) and ref(macd,3)(macd,4); 20210311
dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;macd<0 and macd>ref(macd,1) and ref(macd,1)<ref(macd,2);通达信条件选股小于日线的时间周期,要线下载分钟数据,不然是不准确的。选股周期调整为30分。