SHORT:=12;LONG:=26;MID:=9;DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,MID);:=(DIF-DEA)*2,COLORSTICK;DIFF:(54*REF(EMA(C,12),1)-26*REF(EMA(C,26),1))/28,COLORGREEN;DIFF1:(54*EMA(C,12)-26*EMA(C,26))/28,NODRAW;DEAA:(REF(DEA,1)*13*27+13*25*REF(EMA(C,26),1)-27*11*REF(EMA(C,12),1))/((27-13)*2);DEAA1:("MACD.DEA"*13*27+13*25*EMA(C,26)-27*11*EMA(C,12))/((27-13)*2),NODRAW;MACD0:((5/8*REF(MACD,1)+REF(DEA,1))*13*27+(13*25*REF(EMA(C,26),1)-27*11*REF(EMA(C,12),1)))/28,COLORRED; MACD1:((5/8*MACD+DEA)*13*2