通达信《超短波峰波谷》主图指标公式源码

波峰:=H>REF(H,1) AND H>REF(H,2) AND H>REFX(H,1) AND H>REFX(H,2);
波谷:=L<REF(L,1) AND L<REF(L,2) AND L<REFX(L,1) AND L<REFX(L,2);

DRAWTEXT(波峰,H,'波峰'),COLORBLUE;{www.zhibiao365.com}
DRAWTEXT(波谷,L,'波谷'),COLORRED;