:=MA(SUM(IF(CLOSE>REF(CLOSE,1),,IF(CLOSE
[0,0,MACD,2.5,0),COLORGREEN;STICKLINE(MACD][REF(MACD,1)AND MACD<0>REF(MACD,1)AND MACD>0,0,MACD,3,1),COLORYELLOW;IF(BBDEA>0,DEA,DRAWNULL),COLOR9966CC,LINETHICK2;IF(BBDEA<0>0,DIFF,DRAWNULL),COLORRED,LINETHICK2;IF(BBDIFF<0,DIFF,DRAWNULL),COLORCYAN,LINETHICK2;
]