HGW1:=EMA(HHV(HIGH,500),21);
HGW2:=EMA(HHV(HIGH,250),21);
HGW3:=EMA(HHV(HIGH,90),21);
HGW4:=EMA(LLV(LOW,500),21);
HGW5:=EMA(LLV(LOW,250),21);
HGW6:=EMA(LLV(LOW,90),21);
HGW7:=EMA((HGW4*0.96+HGW5*0.96+HGW6*0.96+HGW1*0.558+HGW2*0.558+HGW3*0.558)/6,21);
HGW8:=EMA((HGW4*1.25+HGW5*1.23+HGW6*1.2+HGW1*0.55+HGW2*0.55+HGW3*0.65)/6,21);
HGW9:=EMA((HGW4*1.3+HGW5*1.3+HGW6*1.3+HGW1*0.68+HGW2*0.68+HGW3*0.68)/6,21);
HGW10:=IF(MA(CLOSE,58),1,0);
HGW11:=EMA((HGW7*3+HGW8*2+HGW9)/6*1.738,21);
HGW12:=REF(LOW,1);
HGW13:=SMA(ABS(LOW-HGW12),3,1)/SMA(MAX(LOW-HGW12,0),3,1)*100;
HGW14:=EMA(IF(CLOSE*1.35<=HGW11,HGW13*10,HGW13/10),3);
HGW15:=LLV(LOW,30);
HGW16:=HHV(HGW14,30);
HGW17:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27));
HGW18:=(3*SMA(((HGW17)*100),5,1));
VAR22:=(HGW18-(2*SMA(SMA(((HGW17)*100),5,1),3,1)));
VAR23:=IF(CROSS(VAR22,3),1,0);
QZG:EMA(IF(LOW<=HGW15,(HGW14+HGW16*2)/2,0),3)/618*HGW10,COLORRED;
QZG2:EMA(IF(LOW<=HGW15,(HGW14+HGW16*2)/2,0),3)/-618*HGW10,COLORYELLOW;
STICKLINE(VAR23,0,10,2,0),COLORFFFFFF;