K:=EMA(CLOSE,12)-EMA(CLOSE,26);
M:=BACKSET(K>REF(K,1),2);
强DIF:IF(M,K,0),COLORRED,LINETHICK2;
D:=BACKSET(K
弱DIF:IF(D,K,0),COLOR33FF33,LINETHICK2;
DEA:EMA(K,9),COLORFFFFFF;
MACD:2*(K-DEA),LINETHICK0,COLORFF00FF ;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR6058FF;
STICKLINE(MACD>=0 AND MACD< REF(MACD,1),0,MACD,0,0),COLORFFFF00;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLORFF99FF;
STICKLINE(MACD<0 AND MACD< REF(MACD,1),0,MACD,0,0),COLORFFFF00;