DRAWGBK(C>0, RGB(0,0,00),RGB(0,0,0),0,'60',0);
MA3:MA(C,3),COLORCYAN,DOTLINE;
MA10:MA(C,10),COLORBROWN ,LINETHICK2;
MA20:MA(CLOSE,20),COLORLIGREEN,LINETHICK2;
VAR1:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
VAR2:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);
VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
A:=(3*C+L+O+H)/6;
VAR4:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
DRAWKLINE(H,O,L,C);
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.5,0),COLOR6060FF;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.5,0),COLORFFCC00;
STICKLINE(VAR1,C,(O+C)/2,3,0),COLORFF11FF;
STICKLINE(VAR1,C,(O+C)/2,2.2,0),COLORFF55FF;
STICKLINE(VAR1,C,(O+C)/2,1.5,0),COLORFF99FF;
STICKLINE(VAR1,C,(O+C)/2,0.5,0),COLORFFDDFF;
STICKLINE(VAR2,C,(O+C)/2,3,0),COLOR999999;
STICKLINE(VAR2,C,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(VAR2,C,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(VAR2,C,(O+C)/2,0.5,0),COLORFFBBFF;
STICKLINE(VAR3,O,(O+C)/2,3,0),COLOR009900;
STICKLINE(VAR3,O,(O+C)/2,2.2,0),COLOR00BB00;
STICKLINE(VAR3,O,(O+C)/2,1.5,0),COLOR00DD00;
STICKLINE(VAR3,O,(O+C)/2,0.5,0),COLOR00FF00;
BOLL:=MA(CLOSE,20);
UB:BOLL+2*STD(CLOSE,20),COLORLICYAN,DOTLINE;
LB:BOLL-2*STD(CLOSE,20),COLORGRAY,DOTLINE;