HH:=HHV(H,20);
LL:=LLV(L,20);
HH1:=REF(HHV(H,20),20);
LL1:=REF(LLV(L,20),20);
HH2:=REF(HHV(H,20),40);
LL2:=REF(LLV(L,20),40);
HH3:=REF(HHV(H,20),60);
LL3:=REF(LLV(L,20),60);
HH4:=REF(HHV(H,20),80);
LL4:=REF(LLV(L,20),80);
HH5:=REF(HHV(H,20),100);
LL5:=REF(LLV(L,100),100);
CURRBARSCOUNT:=DATACOUNT-BARPOS+1;
STICKLINE1(CURRBARSCOUNT<20 AND CURRBARSCOUNT>1 ,REFX1(HH,10000),REFX1(HH,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<20 AND CURRBARSCOUNT>1 ,REFX1(LL,10000),REFX1(LL,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<20 AND CURRBARSCOUNT>1 ,(REFX1(HH,10000)+REFX1(LL,10000))/2,(REFX1(HH,10000)+REFX1(LL,10000))/2,8,-1),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT=20 OR CURRBARSCOUNT=1 ,REFX1(HH,10000),REFX1(LL,10000),0,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<40 AND CURRBARSCOUNT>21 ,REFX1(HH1,10000),REFX1(HH1,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<40 AND CURRBARSCOUNT>21,REFX1(LL1,10000),REFX1(LL1,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<40 AND CURRBARSCOUNT>21 ,(REFX1(HH1,10000)+REFX1(LL1,10000))/2,(REFX1(HH1,10000)+REFX1(LL1,10000))/2,8,-1),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT=40 OR CURRBARSCOUNT=21 ,REFX1(HH1,10000),REFX1(LL1,10000),0,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<60 AND CURRBARSCOUNT>41,REFX1(HH2,10000),REFX1(HH2,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<60 AND CURRBARSCOUNT>41,REFX1(LL2,10000),REFX1(LL2,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<60 AND CURRBARSCOUNT>41 ,(REFX1(HH2,10000)+REFX1(LL2,10000))/2,(REFX1(HH2,10000)+REFX1(LL2,10000))/2,8,-1),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT=60 OR CURRBARSCOUNT=41,REFX1(HH2,10000),REFX1(LL2,10000),0,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<80 AND CURRBARSCOUNT>61,REFX1(HH3,10000),REFX1(HH3,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<80 AND CURRBARSCOUNT>61,REFX1(LL3,10000),REFX1(LL3,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<80 AND CURRBARSCOUNT>61 ,(REFX1(HH3,10000)+REFX1(LL3,10000))/2,(REFX1(HH3,10000)+REFX1(LL3,10000))/2,8,-1),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT=80 OR CURRBARSCOUNT=61,REFX1(HH3,10000),REFX1(LL3,10000),0,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<100 AND CURRBARSCOUNT>81,REFX1(HH4,10000),REFX1(HH4,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<100 AND CURRBARSCOUNT>81,REFX1(LL4,10000),REFX1(LL4,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<100 AND CURRBARSCOUNT>81 ,(REFX1(HH4,10000)+REFX1(LL4,10000))/2,(REFX1(HH4,10000)+REFX1(LL4,10000))/2,8,-1),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT=100 OR CURRBARSCOUNT=81,REFX1(HH4,10000),REFX1(LL4,10000),0,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<120 AND CURRBARSCOUNT>101,REFX1(HH5,10000),REFX1(HH5,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<120 AND CURRBARSCOUNT>101,REFX1(LL5,10000),REFX1(LL5,10000),8,0),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT<120 AND CURRBARSCOUNT>101 ,(REFX1(HH5,10000)+REFX1(LL5,10000))/2,(REFX1(HH5,10000)+REFX1(LL5,10000))/2,8,-1),COLORYELLOW;
STICKLINE1(CURRBARSCOUNT=120 OR CURRBARSCOUNT=101,REFX1(HH5,10000),REFX1(LL5,10000),0,0),COLORYELLOW;