C:=CROSS(K,D);
SC:=CROSSDOWN(K,D);
N1:=BARSLAST(JC)+1;
N2:=BARSLAST(SC)+1;
HH:=CROSS(BACKSET(REFX(SC,1),HHVBARS(K,N1)+1),0.5);
LL:=CROSS(BACKSET(REFX(JC,1),LLVBARS(K,N2)+1),0.5);
DRAWLINE3(HH&&K<REF(K,SUMBARS(HH,2)-1)&&H>REF(H,SUMBARS(HH,2)-1),REF(K,SUMBARS(HH,2)-1),SUMBARS(HH,2)-1,1,K,0,0),LINETHICK1,RGB(0,128,255);
DRAWLINE3(LL&&K>REF(K,SUMBARS(LL,2)-1)&&L<REF(L,SUMBARS(LL,2)-1),REF(K,SUMBARS(LL,2)-1),SUMBARS(LL,2)-1,1,K,0,0),LINETHICK1,RGB(255,0,255);
DRAWTEXT(HH&&K<REF(K,SUMBARS(HH,2)-1)&&H>REF(H,SUMBARS(HH,2)-1),K,'顶背离');
DRAWTEXT(LL&&K>REF(K,SUMBARS(LL,2)-1)&&L<REF(L,SUMBARS(LL,2)-1),K,'底背离');