DIF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIF,9);:"MACD.MACD",NODRAW;W1:STICKLINE(MACD>0,MACD,0,3,1),COLORRED;W2:STICKLINE(MACD<0 MACD,0,3,1),COLORCYAN;VA1:=HHVBARS(MACD,BARSLAST(MACD VA2:=OSS(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,MACD),BARSCOUNT(C)));前低:DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1