TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1);
VB1:=FILTER(A1,10);
C1:=BacKSET(VB1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);
VB2:=FILTER(A2,10);
C2:=BACKSET(VB2,10+1);
LD:=FILTER(C2,10);
A:=REF(C,BArslAST(HD));
B:=REF(C,BARSLAST(LD));
T11:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD);
T21:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波峰:IF(T11,A,A),COLORFF00FF,POINTDOT;
STICKLINE(T11,A,A,9,0),COLORFF00FF;
波谷:IF(T21,B,B),COLOR80FF00,POINTDOT;
STICKLINE(T21,B,B,9,0),COLOR80FF00;