顶分形:=H<REF(H,1) AND L<REF(L,1) AND REF(H,1)>REF(H,2) AND REF(L,1)>REF(L,2);
BB1:=FILTER(顶分形,1);
CCC1:=BACKSET(BB1,2);
DD1:=FILTER(CCC1,1);{高点}
DRAWTEXT(DD1,H*1.009,'--'),COLORLIGREEN;
DRAWICON(DD1,H*1.009,39);
{股票指标网WWW.}
底分形:=L>REF(L,1) AND H>REF(H,1) AND REF(L,1)<REF(L,2) AND REF(H,1)<REF(H,2);
BB2:=FILTER(底分形,1);
CCC2:=BACKSET(BB2,2);
DD2:=FILTER(CCC2,1);{低点}
DRAWTEXT(DD2,L*0.997,'--'),COLORLIRED;
DRAWICON(DD2,L*0.997,38);