DIF:(EMA(C,12)-EMA(C,26)),COLORF0F0F0;
DEA:EMA(DIF,9),COLOR00DCDC;
macd:2*(DIF-DEA),COLORSTICK;
STICKLINE(MacD>REF(MACD,1) AND MACD>=0,MACD,0,2,0),COLORRED;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,0,2,0),COLORMAGENTA;
DIF:(EMA(C,12)-EMA(C,26)),COLORF0F0F0;
DEA:EMA(DIF,9),COLOR00DCDC;
macd:2*(DIF-DEA),COLORSTICK;
STICKLINE(MacD>REF(MACD,1) AND MACD>=0,MACD,0,2,0),COLORRED;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,0,2,0),COLORMAGENTA;