顶点:=IF(CURRBARSCOUNT>7 AND REFX(H,1)<H AND REFX(H,2)<H AND REFX(H,3)<H AND REFX(H,4)<H AND REFX(H,5)<H AND REFX(H,6)<H AND REFX(H,7)<H &&
H>REF(H,1) AND H>REF(H,2) AND H>REF(H,3) AND H>REF(H,4) AND H>REF(H,5) AND H>REF(H,6) AND H>REF(H,7),H,0),NODRAW;
上次顶点:=BARSLAST(顶点>0),NODRAW;
DRAWTEXT(顶点>0,H,'顶'),COLORMAGENTA;
DRAWNUMBER(顶点>0,H*1.05,H),COLORMAGENTA;
底点:=IF(CURRBARSCOUNT>7 AND REFX(L,1)>L AND REFX(L,2)>L AND REFX(L,3)>L AND REFX(L,4)>L AND REFX(L,5)>L AND REFX(L,6)>L AND REFX(L,7)>L &&
L<REF(L,1) AND L<REF(L,2) AND L<REF(L,3) AND L<REF(L,4) AND L<REF(L,5) AND L<REF(L,6) AND L<REF(L,7),L,0),NODRAW;
上次底点:=BARSLAST(底点>0),NODRAW;
DRAWTEXT(底点>0,L,'底' ), COLORYELLOW; |