HGW3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
HGW4:=FILTER(HGW3,10);
HGW5:=BARSLAST(HGW4);
HGW6:=REF(HIGH,HGW5+2);
HGW7:=REF(HIGH,HGW5+1);
HGW8:=REF(HIGH,HGW5);
HGW9:=MAX(HGW6,HGW7);
HGW10:=MAX(HGW9,HGW8);
HGW11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
HGW12:=HGW5<150;
HGW13:=(OPEN-HGW10)/HGW10*100<30;
HGW14:=(CLOSE-LLV(LOW,HGW5))/LLV(LOW,HGW5)*100<50;
HGW15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
HGW16:=VOL/MA(VOL,5)<3.5;
HGW17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
HGW18:=HGW11 AND HGW12 AND HGW13 AND HGW14 AND HGW15 AND HGW16 AND HGW17;
HGW19:=FILTER(HGW18,15);
HGW20:=(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)<0.1;
HGW21:=(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)<0.3;
HGW22:=(HGW20=1 AND HGW21=1)*0.2;
HGW23:=(HGW22=0 AND REF(HGW22,1)=0.2 AND REF(COUNT(HGW22=0.2,10)=10,1)=1)*(-0.1);
HGW24:=HGW23=(-0.1);
HGW25:=HGW19 OR HGW24;
HGW26:=C/REF(CLOSE,1)>1.05 AND C/OPEN>1.05;
HGW27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
HGW28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
财龙:HGW25 AND HGW26 AND HGW27 AND HGW28 AND REF(NOT(HGW28),1) AND C>MA(C,60);