DIF:EMA(CLOSE,12)-EMA(CLOSE,25);DEA:EMA(DIF,5);:=(DIF-DEA)*2;STICKLINE(MACD>0,MACD,0,2,1),COLORRED;STICKLINE(MACD<0 BARSLAST(MACD=HHV(MACD,120))),COLORRED,LINETHICK2;MACD250:REF(MACD/2,BARSLAST(MACD HHV(MACD,250))),COLORWHITE,LINETHICK2;XG:=NOT(REF(MACD120,1)>=MACD250,MACD250,MACD,2,0),COLORMAGENTA;大:=NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250;金柱:XG,NODRAW,COLORYELLOW;