{峰底}
TY0:=C;
HD0:=FILTER(BACKSET(FILTER(REF(TY0,10)=HHV(TY0,2*10+1),10),10+1),10);
LD0:=FILTER(BACKSET(FILTER(REF(TY0,10)=LLV(TY0,2*10+1),10),10+1),10);
A:=REF(C,BARSLAST(HD0));
B:=REF(C,BARSLAST(LD0));
TTT1:=BARSLAST(HD0)<BARSLAST(LD0) AND NOT(HD0) ;
TTT2:=BARSLAST(HD0)>BARSLAST(LD0) AND NOT(LD0);
峰底:IF(TTT2,B,B),COLORGREEN,POINTDOT,LINETHICK1;
STICKLINE(C,峰底 ,峰底 ,1,0),COLORGREEN ;
{峰顶}
TY0000:=C;
A1111:=REF(TY0000,10)=HHV(TY0000,2*10+1); B1111:=FILTER(A1111,10); C1111:=BACKSET(B1111,10+1); HD1111:=FILTER(C1111,10);
A2222:=REF(TY0000,10)=LLV(TY0000,2*10+1); B2222:=FILTER(A2222,10); C2222:=BACKSET(B2222,10+1); LD2222:=FILTER(C2222,10);
峰顶:REF(C,BARSLAST(HD1111)),COLORCYAN,POINTDOT;
STICKLINE(C,峰顶 ,峰顶 ,1,0),COLORCYAN ;
|