difF:"maCD.DIF#MONTH"(12,26,9),COLORWHITE,LINETHICK2;
DEA:"MacD.DEA#MONTH"(12,26,9);
macd:"MACD.MACD#MONTH"(12,26,9),LINETHICK0;
RMACD:=REF(MACD,1);
CK2:=IF(MACD>RMACD,1,IF(MACD<RMACD,2,0));
CK3:=REF(CK2,BArslAST(CK2<>0));
STICKLINE(MACD>0 AND CK3=1,0,MACD,2,0),COLORWHITE ;
STICKLINE(MACD>0 AND CK3=2,0,MACD,2,0),COLOR9966FF;
STICKLINE(MACD<=0 AND CK3=1,0,MACD,2,0),COLORCCFF66;
STICKLINE(MACD<=0 AND CK3=2,0,MACD,2,0),COLORYELLOW;
IF(1,DIFF,DRAWNULL),COLORWHITE;
IF(1,DEA,DRAWNULL),COLORYELLOW;