LOCK:=IF(DATE<1340101,1,0);
DIFF:=EMA(CLOSE,21)-EMA(CLOSE,34);
DEA:=EMA(DIFF,8);
MACD:=20*(DIFF-DEA)*LOCK;
MM3:EMA(MACD,3),coloryellow;
MM5:EMA(MACD,5),colorgreen;
MARD:=SMA(MACD,2,1);
Y:=ATAN(MACD);
STICKLINE(MACD>MARD,MACD,MARD,3,0),colorred;
STICKLINE(MACD<MARD,MACD,MARD,5,0),ColorC0D9D9;