DIF:(EMA(CLOSE,12)-EMA(CLOSE,26)),COLORFF00FF;DEA:EMA(DIF,9),COLORCCC555;:(DIF-DEA)*2,COLORSTICK;MACD2:=MA(MACD,4);判断顶背:=IF(OSS(DEA,DIF),HHV(DIF,10),REF(HHV(DIF,10),BARSLAST(CROSS(DEA,DIF))));判断底背:=IF(CROSS(DIF,DEA),LLV(DIF,10),REF(LLV(DIF,10),BARSLAST(CROSS(DIF,DEA))));{MACD红绿天和面积}红天:IF(MACD>=0,BARSLAST(CROSS(MACD,0))+1,0),COLOR0000FF,NODRAW;绿天:IF(MACD<0>0,SUM(MACD,BARSLAST(CROSS(MACD,0))+1),0),COLOR0000FF,NODRAW;绿柱面积:IF(绿天>0,SUM(MACD,BARSLAST(CROSS(0,MACD))+1),0),COLOR00FF00,NODRAW;DF:=CROSS(D