DIFF :=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA :=EMA(DIFF,9);
MACD :=2*(DIFF-DEA);
STICKLINE(DIFF<0,0,DIFF,4,0),COLOR00FF00;
STICKLINE(DIFF>=0,0,DIFF,4,0),colorred;
STICKLINE(DEA>=0,0,DEA,4,0),colorblue;
STICKLINE(DEA<0,0,DEA,4,0),coloryellow;
DRAWICON(CROSS(DIFF,DEA),DEA*1.1,1);
DRAWICON(CROSS(DEA,DIFF),DEA*1.1,2);
强1:IF(DIFF>DEA,DIFF,DRAWNULL),colorred;
强2:IF(DEA<DIFF,DEA,DRAWNULL),colormagenta;
抄底:=ABS((CROSS("MACD.DIFF","MACD.DEA") AND "MACD.DEA"<=-0.07)*"MACD.DIFF")*1.09,colorlimagenta,LINETHICK2;
DRAWTEXT(ABS(抄底)>0,抄底,'抄底'),colorcyan;
DRAWICON(ABS(抄底)>0,抄底,9);
DRAWTEXT_FIX(1,0.5,0,0,'㊣【绿柱消失买入,红柱消失卖出】'),colorcyan;