DIS:=STDP(CLOSE,21);
MID:MA(CLOSE,21),DOTLINE, COLORGRAY;
UPPER:MID+0.9*DIS,DOTLINE,COLORRED;
LOWER:MID-0.9*DIS,DOTLINE,COLORGREEN;
EMA3:EMA(CLOSE,3),COLORBLUE, LINETHICK2;
EMA5:EMA(CLOSE,5),COLORYELLOW, LINETHICK2;
DRAWICON(CROSS(EMA3,UPPER) OR CROSS(EMA5,UPPER),MID,5);
DRAWICON(CROSS(LOWER,EMA3) OR CROSS(LOWER,EMA5),MID,6);