{未补缺口} IF DATACOUNT<3 then exit; HH:=HIGH; LL:=LOW; pL:=ll[DATACOUNT]; pH:=0; tk:=IF(LOW>REF(HIGH,1),1,IF(HIGH<REF(LOW,1),-1,0)); for i=DATACOUNT-1 downto 2 do begin IF ll[i ]<pL then pL:=ll [i ]; IF HH[i ]>pH then pH:=hh [i ]; IF tk[i ]=1 and pL<=hh[i-1] then tk [i ]:=0; IF tk[i ]=-1 and pH>=ll[i-1] then tk [i ]:=0; end; DRAWTEXT(tk=1,LOW-(LOW-REF(HIGH,1))/2,'未补'),linethick2,COLORmagenta,ALIGN1; DRAWTEXT(tk=-1,HIGH+(REF(LOW,1)-HIGH)/2,'未补'),COLORgreen,linethick2,ALIGN1 ; DRAWSL(tk=1,REF(HIGH,1),0,0,0),COLOR408080; DRAWSL(tk=1,LOW,0,0,0),COLOR408080; DRAWSL(tk=-1,REF(LOW,1),0,0,0),COLOR408080; DRAWSL(tk=-1,HIGH,0,0,0),COLOR408080; {点击看本软件截图: 58股票 公式网 http://www. 58gu. com 整理} |