SHORT:=12;LONG:=26;M:=9;
DIFF :=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA :=EMA(DIFF,M);
MACD :=2*(DIFF-DEA);
ZERO : 0;
MACD:SUM(MACD,0),LINETHICK2,COLORGREEN;
IF( MACD REF( MACD,1), MACD,DRAWNULL),LINETHICK2,COLORRED;
SHORT:=12;LONG:=26;M:=9;
DIFF :=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA :=EMA(DIFF,M);
MACD :=2*(DIFF-DEA);
ZERO : 0;
MACD:SUM(MACD,0),LINETHICK2,COLORGREEN;
IF( MACD REF( MACD,1), MACD,DRAWNULL),LINETHICK2,COLORRED;