cbl1:=if(ref(h,2)>ref(h,3),ref(h,2),ref(h,3)); cbl3:=if(ref(l,2)<ref(l,3),ref(h,2),cbl1); cbl2:=if(ref(h,3)>=ref(h,2),ref(h,2),ref(h,3)); CBL4:=IF(H<REF(H,2 OR L<REF(L,2)),REF(H,2),CBL2); cb5:=if(h>=ref(h,1) AND L>REF(L,1 ),cbl4,cbl3); cbl6:=if(h>ref(h,1) and ref(h,1)>ref(h,2) and l<ref(h,2) and o>c,h,cb5); cbl7:=if(l<ref(l,1) and ref(l,1)<ref(l,2)and ref(l,2)<ref(l,3) and c>o and (ref(l,1)-l)/l>0.015,l,cbl6); cbl:if(ref(l,1)<ref(l,2) and ref(l,2)<ref(l,3) and ref(l,3)<ref(l,4) and ref(c,1)>ref(o,1),ref(L,2),cbl7),,COLORff9963,LINETHICK0; STICKLINE((BARPOS = (SYSPARAM(1) - 0)and cbl<c),cbl,cbl,240,0),ColorRED; STICKLINE((BARPOS = (SYSPARAM(1) - 0)and cbl>=c),cbl,cbl,240,0),colorBLUE; |