{谷底线捉涨停的3要素(长阴短柱\百日低量\倍量拉升)}
{HTTP://U.178448.COM/SPACE.PHP?UID=30578}{WEN98编写}
{含未来,不喜勿用}
百分比:=10;{也可设为参数:百分比(3,20,5)}
N:=5;{也可设为参数:N(3,20,5)}
拉升幅度:=3;{也可设为参数:拉升幅度(1,10,3)}
波谷值:= TROUGH(2,百分比,1);
波谷距离:= 1+TROUGHBARS(2,百分比,1);
长阴短柱:= C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9;
百日低量:= V=LLV(V,100) AND BARSCOUNT(V)>=100;
地量群:= COUNT(V<=百日低量*1.2 AND V>0 AND BARSCOUNT(V)>=100,5)>=3;
倍量:= VOL>=REF(V,1)*1.9 AND (IF(C<O,C>REF(C,1),1));
XG1:= COUNT(L<=波谷值,N)>0 ;
XG2:= REF(COUNT(长阴短柱,N),波谷距离)>0 ;
XG3:= COUNT(百日低量 OR 地量群,N)>0 ;
XG4:= COUNT(倍量,N)>0 {AND (C-REF(C,1))*100>=拉升幅度};{倍量拉升}
XG: XG1 AND XG2 AND XG3 AND XG4; |