DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORFF00FF,NODRAW;DEA:EMA(DIF,9),COLORCCC555,NODRAW;:(DIF-DEA)*2,NODRAW;DIFT:=6*DIF-5*EMA(DIF,4);DEAT:=EMA(DIFT,4);MACDT:=(DIFT-DEAT)*2;器:IF(DIFT>0 AND MACD>0,DIFT,0),COLOR0000CC,NODRAW;DIX:(DIFT+DEA)/2,COLOR00FFFF,NODRAW;K:=".K";D:="J.D";J:="KDJ.J";红天:IF(MACD>=0,BARSLAST(OSS(MACD,0))+1,0),COLOR0000FF,NODRAW;绿天:IF(MACD<0>0,SUM(MACD,BARSLAST(CROSS(MACD,0))+1),0),COLOR0000FF,NODRAW;绿M2:IF(绿天>0,SUM(MACD,BARSLAST(CROSS(0,MACD))+1),0),COLOR00FF00,NODRAW;界面高:=CONST(HHV