{创240天新高}
G1:=C=HHV(C,240); ;
{5天以上30天以内创新高}
G2:=COUNT(G1,5)>=1;
G3:=COUNT(G1,30)>=1;
{30天内有大阳}
T1:=C/REF(C,1)>=1.08;
T:=COUNT(T1,30)>=1;
{有倍缩量或10天低量或长阴短柱}
低量:=VOL<=LLV(VOL,10);
倍缩量:=VOL/REF(VOL,1)<=0.5;
长阴短柱:= C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9;
{10天内有倍缩量或低量或长阴短柱}
BD:=COUNT(低量,10)>=1 OR COUNT(倍缩量,10)>=1 OR COUNT(长阴短柱,10)>=1 ;
{20天跌幅大于10%}
N1:=5;N2:=20;
LL:=LLV(L,N1);
HH:=HHV(H,N2);
跌幅:= (HH-LL)/HH>10/100;
{连续2天收阳线}
XG1:=UPNDAY(CLOSE,2);
{盘中虚拟量大于昨天的2倍}
虚拟量:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1)),0);
LXG:=虚拟量>=2*REF(V,1);
XG:G2=0 AND G3 AND T AND BD AND XG1 AND 跌幅 AND LXG; |