YDIF:=EMA(CLOSE,240)-EMA(CLOSE,520);
YDEA:=EMA(YDIF,180);
macd2:=YDIF*2-YDEA;
X_1:=SMA(MACD2,3,1);
X_2:=EMA(X_1,3);
X_3:=(X_2/REF(X_2,1)-1)*1000;
X_4:=60;
X_5:=130;
X_6:=45;
DIF:=EMA(CLOSE,X_4)-EMA(CLOSE,X_5);
DEA:=EMA(DIF,X_6);
MACD:=DIF*2-DEA;
X_7:=SMA(MACD,3,1);
ZDIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
ZDEA:=EMA(ZDIF,9);
X_8:=ZDIF*2-ZDEA;
X_9:=SMA(X_8,3,1);
MCD主力走强选股:IF(crOSS(X_9,X_7) AND MACD>X_7,0.2,0),COLORYELLOW;