T:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1));L0:=LLV(L,T+1);L1:=REF(L0,T+1);L2:=REF(L1,T+1);L3:=REF(L2,T+1);L4:=REF(L3,T+1);L5:=REF(L4,T+1);L6:=REF(L5,T+1);L7:=REF(L6,T+1);L8:=REF(L7,T+1);H0:=HHV(H,T+1);H1:=REF(H0,T+1);H2:=REF(H1,T+1);H3:=REF(H2,T+1);H4:=REF(H3,T+1);H5:=REF(H4,T+1);H6:=REF(H5,T+1);H7:=REF(H6,T+1);H8:=REF(H7,T+1);TJ:=WEEKOFYEAR!=REF(WEEKOFYEAR,1);TJ1:=COUNT(TJ,TOTALBARSCOUNT);T0:=BARSLAST(OSS(CONST(TJ1)-TJ1=0,0.5));T1:=BARSLAST(CROSS(CONST(TJ1)-TJ1=1,0.5));T2:=BARSLAST(CROSS(CONST(