N:=24;
aa:=N;
A1:=REF(H,aa)=HHV(H,2*aa); B1:=FILTER(A1,aa); C1:=BACKSET(B1,aa);
D1:=FILTER(C1,aa);A2:=REF(L,aa)=LLV(L,2*aa); B2:=FILTER(A2,aa);
C2:=BACKSET(B2,aa); D2:=FILTER(C2,aa);
R1:=BACKSET(DISPSTATUS=2,BARSLAST(D1)+1); S1:=R1>REF(R1,1);
T1:=BACKSET(DISPSTATUS=2,BARSLAST(D2)+1); U1:=T1>REF(T1,1);
R2:=BACKSET(S1,REF(BARSLAST(D1),1)+2); S2:=R2>REF(R2,1);
T2:=BACKSET(U1,REF(BARSLAST(D2),1)+2); U2:=T2>REF(T2,1);
R3:=BACKSET(S2,REF(BARSLAST(D1),1)+2); S3:=R3>REF(R3,1);
T3:=BACKSET(U2,REF(BARSLAST(D2),1)+2); U3:=T3>REF(T3,1);
R4:=BACKSET(S3,REF(BARSLAST(D1),1)+2); S4:=R4>REF(R4,1);
T4:=BACKSET(U3,REF(BARSLAST(D2),1)+2); U4:=T4>REF(T4,1);
DRAWLINE(S2,H,S1,H,1),Color883333;
DRAWLINE(U2,L,U1,L,1),LINETHICK2,POINTDOT,Colorffff00;
DRAWLINE(S3,H,S2,H,1),Color008833;
DRAWLINE(U3,L, U2,L,1),LINETHICK2,POINTDOT,Color338833;
DRAWLINE(S4,H,S3,H,1),Color00CCCC;
DRAWLINE(U4,L, U3,L,1),LINETHICK2,Color0000CC;