HGW1:=VOL>=REF(VOL,1)*1.91;
HGW2:=VOL>REF(HHV(VOL,100),1);
HGW3:=HGW1 OR HGW2;
HGW4:=C/REF(C,1)>1.095 AND C=H;
HGW5:=EMA(EMA(EMA(EMA(MA(MA(MA(SUM(MA(CLOSE,60)/1,1),1),1),1),5),5),12),13)*1.01;
HGW6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
HGW7:=BBI+3*STD(BBI,10);
HGW8:=BBI-3*STD(BBI,10);
HGW9:=L<=HGW6 AND C>=HGW6;
HGW10:=L<=HGW7 AND C>=HGW7;
HGW11:=L<=HGW8 AND C>=HGW8;
HGW12:=HGW9+HGW10+HGW11>=2;
HGW13:=LLV(LOW,21);
HGW14:=HHV(HIGH,21);
HGW15:=EMA((CLOSE-HGW13)/(HGW14-HGW13)*100,6);
HGW16:=EMA(0.667*REF(HGW15,1)+0.333*HGW15,2);
HGW17:=LONGCROSS(HGW15,HGW16,0.1);
HGW18:=REF(HGW4,1) AND REF(HGW1,1) AND HGW1 AND ABS(C/REF(C,1)-1)<=0.06;
HGW19:=REF(COUNT(HGW18,20)=1,1);
HGW20:=BARSLAST(HGW18);
HGW21:=LLV(C,HGW20)>=(REF(C,HGW20+1)+REF(O,HGW20+1))/2 AND HHV(C,HGW20)<=REF(C,HGW20+1)*1.15;
X_1:=REF(COUNT(ABS(C/REF(C,1)-1)>0.05,HGW20)<1,1);
好股网:=COUNT(MA(C,5)>HGW5,HGW20)<=3;
XG:X_1 AND 好股网 AND HGW19 AND HGW21 AND HGW3+HGW12+HGW17>=2;