可以選股也可以放在主圖
{顯示向上的缺口,這個(gè)可以選股}
缺口:(LOW>REF(HIGH,1));
{下面的可以放在主圖,或者副圖}
LL1:=REF(L,1);
HH1:=REF(H,1); SQK:=L>HH1; XQK:=H<LL1; 上跳:IF(SQK=1,L-HH1,DRAWNULL),COLORFF00FF,CROSSDOT,LINETHICK3,NODRAW; 下跳:IF(XQK=1,H-LL1,DRAWNULL),COLORGREEN,CROSSDOT,LINETHICK3,NODRAW; STICKLINE(SQK,L,HH1,4*1,1),COLORYELLOW;{上跳} STICKLINE(XQK,H,LL1,4*1,2),COLOR00FF00;{下跳} DRAWTEXT(SQK,H,'上跳'),COLORYELLOW; DRAWTEXT(XQK,L,'下跳'),COLOR00FF00; {補(bǔ)缺口} K1:=BARSLAST(L>REF(H,1)); K2:=L<REF(H,K1+1) AND COUNT(L<REF(H,K1+1),K1)=1; STICKLINE(K2,L,O,1,0),COLORFF00FF;{缺口回補(bǔ)}; DRAWTEXT(K2=1,L,'回補(bǔ)'),COLORFF00FF; |
|