DIF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIF,9);{此段为DIF线变色} IF(DIF,DIF,DRAWNULL),COLORWHITE;IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED;IF(DIF
[0,MACD,0,0,1),COLORRED;W2:STICKLINE(MACD<0 MACD,0,0,1),COLORGREEN;VA1:=HHVBARS(MACD,BARSLAST(MACD VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);QG:>0),REF(VA1,1)+2),0.5);前高:DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORMAGENTA;VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);BD:=BARSLAST(FILTERX(CROSS(0,MA
]