DRAWLINE(H>REF(H,1),HIGH,L<REF(L,1),L,0),COLORCYAN;
DRAWLINE(L<REF(L,1),LOW,H>REF(H,1),H,0),COLORWHITE;
N:=5;
TY:=H;
AA:=REF(TY,N)=HHV(TY,2*N+1);
BB:=FILTER(AA,N);
CC:=BacKSET(BB,N+1);
HD10:=FILTER(CC,N);
AA1:=REF(TY,N)=LLV(TY,2*N+1);
BB1:=FILTER(AA1,N);
CC1:=BACKSET(BB1,N+1);
LD10:=FILTER(CC1,N);
A:=REF(H,BArslAST(HD10));
B:=REF(L,BARSLAST(LD10));
T10:=BARSLAST(HD10) AND BARSLAST(LD10) AND NOT(LD10);
STICKLINE(T10,A,A,9,0),COLORWHITE,LINETHICK2;
STICKLINE(T10,B,B,9,0),COLORCYAN,LINETHICK2;