M:=9;
MID:EMA(CLOSE,M);
UPPER:MID+2*STD(CLOSE,M),COLOR0000FF;
LOWER:MID-2*STD(CLOSE,M),COLORFF0000;
UPPER0:MID+3*STD(CLOSE,M),COLOR0000FF;
LOWER0:MID-3*STD(CLOSE,M),COLORFF0000;
DRAWICON(HIGH>UPPER0 OR HIGH=UPPER0,HIGH*1.03,2);
DRAWICON(LOW<LOWER0 OR LOW=LOWER0,LOW*0.99,1);