DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;
DEA :=EMA(DIFF,9);
MACD :=2*(DIFF-DEA);
綠柱消失買入:STICKLINE(DIFF
紅柱消失賣出:STICKLINE(DIFF>=0,0,DIFF,2,0),COLORRED;
STICKLINE(DEA>=0,0,DEA,2,0),COLORBLUE;
STICKLINE(DEA
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
抄底:=ABS((CROSS("MACD.DIF","MACD.DEA")
&&"MACD.DEA"
DRAWTEXT(ABS(抄底)>0,抄底,' 抄底'),COLORFFFF00;
DRAWICON(ABS(抄底)>0,抄底,9);