HGW1:=EXIST((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5.6,100);
HGW2:=DYNAINFO(4)>0;
HGW3:=HGW1 AND HGW2;
HGW4:=5;
HGW5:=(2*CLOSE+HIGH+LOW)/4;
HGW6:=LLV(LOW,34);
HGW7:=HHV(HIGH,34);
HGW8:=EMA((HGW5-HGW6)/(HGW7-HGW6)*100,13);
HGW9:=EMA(0.667*REF(HGW8,1)+0.333*HGW8,2);
HGW10:=EMA(HGW9,HGW4);
HGW11:=HHV(HIGH,9)-LLV(LOW,9);
HGW12:=HHV(HIGH,9)-CLOSE;
HGW13:=CLOSE-LLV(LOW,9);
HGW14:=HGW12/HGW11*100-70;
HGW15:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
HGW16:=SMA(HGW13/HGW11*100,3,1);
HGW17:=SMA(HGW16,3,1)-SMA(HGW14,9,1);
HGW18:=IF(HGW17>100,HGW17-100,0);
HGW19:=EMA((HGW5-HGW6)/(HGW7-HGW6)*100,8);
HGW20:=EMA(HGW19,5);
HGW21:=EMA(CLOSE,2);
HGW22:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
HGW23:=HHV(MA(HIGH,13),13);
HGW24:=LLV(MA(HIGH,13),1);
HGW25:=EMA(CLOSE,4);
HGW26:=HGW21>=HGW22 AND HGW24=HGW23 AND HGW21>HGW25 AND CLOSE>HGW24 AND REF(HGW24,1)<REF(HGW23,1);
HGW27:=BARSLAST(HGW26)+1;
HGW28:=LLV(LOW,HGW27)*1.3;
HGW29:=LLV(LOW,20)*1.418;
HGW30:=HGW21>=HGW22 AND HGW24=HGW23 AND C/REF(C,1)>=1.07 AND HGW27<=30 AND C<=HGW28 AND C<=HGW29;
HGW31:=HGW30 AND FILTER(HGW30,HGW27);
HGW32:=HGW21>=HGW22 AND HGW24=HGW23 AND C/REF(C,1)>=1.035 AND HGW27<=30 AND C<=HGW28 AND C<=HGW29;
HGW33:=HGW32 AND FILTER(HGW32,20);
HGW34:=HGW31 OR HGW33 AND HGW3;
HGW35:=CLOSE/REF(CLOSE,1)>=1.0995;
HGW36:=BARSLAST(HGW35);
HGW37:=CLOSE>MA(CLOSE,5);
HGW38:=EVERY(HGW37,HGW36);
HGW39:=REF(HGW38,2);
X_3:=REF(CLOSE,1)<REF(MA(CLOSE,5),1);
X_12:=HIGH/REF(CLOSE,1)>=1.03;
X_8:=HGW36<=15 AND HGW39 AND X_3 AND X_12;
XG:HGW34 AND X_8;