N:=75;N1:=5;N2:=10;{N为多少天内的高低值,N1、N2为短长取点参数}A1:=REF(H,N1)=HHV(H,2*N1+1);B1:=FILTER(A1,N1);C1:=BACKSET(B1,N1+1);D1:=FILTER(C1,N1);E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); F1:=E1>REF(E1,1);短压:DRAWLINE(D1,H,F1,H,1),COLORCYAN;A2:=REF(L,N1)=LLV(L,2*N1+1);B2:=FILTER(A2,N1);C2:=BACKSET(B2,N1+1);D2:=FILTER(C2,N1);E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);F2:=E2>REF(E2,1);短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;AA1:=REF(H,N2)=HHV(H,2*N2+1);BB1:=FILTER(AA1,N2);CC1:=BACKSET(BB1,N2+1);DD1:=FILTER(CC1,N2);EE1:=BACKSET