DIFF :(EMA(CLOSE,12)-EMA(CLOSE,26))*100/EMA(CLOSE,26);DEA : EMA(DIFF,9);:2*(DIFF-DEA),COLORSTICK;2.5;STICKLINE(MACD
[0,0,MACD,1,0),COLORWHITE;STICKLINE(MACD][REF(MACD,1)AND MACD,0,MACD,1,0),COLORBLUE;STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,1,0),COLORRED;
]