obv:=MA(SUM(IF(CLOSE>REF(CLOSE,1),vol,IF(CLOSE
obve:=ema(obv,3);
DIFF : EMA(obve,12) - EMA(obve,26);
bbdIFF:=DIFF-ref(DIFF,1);
DEA : EMA(DIFF,9);
bbDEA:=DEA-ref(DEA,1);
macd : 2*(DIFF-DEA), COLORSTICK;
STICKLINE(MacD0,0,MACD,4,0),colorgreen;
STICKLINE(MACD
STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,4,0),COLOR0099FF;
STICKLINE(MACD>ref(MACD,1)and MACD>0,0,MACD,4,0),COLORred;