DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:=EMA(DIFF,9);
macd:=(2 * (DIFF - DEA));
STICKLINE((DIFF > DEA),HIGH,LOW,0.1,1),colorFF;
STICKLINE((DIFF > DEA),CLOSE,OPEN,8,0),colorFF;
STICKLINE((DIFF < DEA),HIGH,LOW,0.1,1),colorFF00;
STICKLINE((DIFF < DEA),CLOSE,OPEN,8,0),colorFF00;