X_1:=EMA(EMA(CLOSE,13),13);
XLPL:(X_1-REF(X_1,1))/REF(X_1,1)*1000+1,NODRAW;
MD:EMA(XLPL,2),NODRAW;
X_2:=IF(XLPL>=MD AND XLPL<=0 AND XLPL>=REF(XLPL,1),XLPL,DRAWNULL);
X_3:=IF(XLPL>=MD AND XLPL>=0 AND XLPL>=REF(XLPL,1),XLPL,DRAWNULL);
X_4:=IF(XLPL>=MD AND XLPL>=0 AND XLPL<REF(XLPL,1),XLPL,DRAWNULL);
X_5:=IF(XLPL<MD,XLPL,DRAWNULL);
STICKLINE(X_2,0,VOL,2,0),COLORYELLOW;
STICKLINE(X_3,0,VOL,2,0),COLORRED;
STICKLINE(X_4,0,VOL,2,0),COLORCYAN;
STICKLINE(X_5,0,VOL,2,0),COLORGRAY;