在做股票时常会有缺口是否存在,都要放大去看,费时误事今天送大家一个小玩意方便看盘一目了然,希望给有缘朋友带来方便!
{缺口}
I1:=0;
flag1:=0;
while I1<BARSLAST(DISPSTATUS=1)-BARSLAST(DISPSTATUS=2)
DO
IF REF(H,I1)<REF(L,I1+1) AND REF(L,I1+1)>HHV(H,I1+1)
THEN BEGIN FLAG1:=1;
S1:=I1;
I1:=BARSLAST(DISPSTATUS=1);
END ELSE I1:=I1+1;
STICKLINE(FLAG1,REF(L,S1+1),HHV(h,S1+1),(s1+1)*40,0),ColorC0C0C0,ALIGN1,LAYER7;
DRAWTEXT(flag1,REF(L,s1+1),NUMTOSTRN(ref(l,s1+1),2)+'-'+NUMTOSTRN(hhV(h,S1+1),2)),ALIGN2,COLORgreen;