N:=20;
DRAWGBK(CLOSE>OPEN,RGB(10,0,0),RGB(0,0,0),1,2,1);
NOTEXT1:CLOSE,COLORRED;
NOTEXT2:CLOSE,CIRCLEDOT,COLORRED;
UB:BOLL+2*STD(CLOSE,N),COLORGREEN,LINETHICK2;
BOLL:MA(CLOSE,N),COLORRED,LINETHICK2;
DRAWICON(CROSS(CLOSE,UB),BOLL,5);
LB:BOLL-2*STD(CLOSE,N),COLORGREEN,LINETHICK2;
DRAWTEXT_FIX(ISLASTBAR,0,1,0,EXTERNSTR(0,1)),COLORCYAN;
HJ_1:=CROSS(CLOSE,UB) OR CLOSE>UB;
DRAWICON(HJ_1,BOLL,5);