DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
LS:=((DIF>=0 AND DEA>=0) OR DIF>=0) AND DIF>=DEA;
STICKLINE(LS,O,C,3,0),COLORRED;
LX:=DIF<=0 AND DEA<=0 AND DIF>=DEA;
STICKLINE(LX,O,C,3,0),COLORWHITE;
QT:=DIF<=DEA;
STICKLINE(QT,O,C,3,0),COLORGREEN;