HGW1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
HGW2:=(2*CLOSE+HIGH+LOW)/4;
HGW3:=LLV(LOW,34);
HGW4:=HHV(HIGH,34);
HGW5:=EMA((HGW2-HGW3)/(HGW4-HGW3)*100,13);
HGW6:=(HIGH+OPEN+LOW+3*CLOSE)/6;
HGW7:=SUM(IF(HGW6>REF(HGW6,1),HGW6*vol,0),13);
HGW8:=SUM(IF(HGW6<REF(HGW6,1),HGW6*VOL,0),13);
HGW9:=EMA(100-(100/(1+HGW7/HGW8)),5);
HGW10:=EMA(0.667*REF(HGW5,1)+0.333*HGW5,2);
VAR18:=crOSS(HGW9,30);
VAR19:=HGW5-HGW10>0;
XG:VAR18 AND VAR19;