HGW1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
HGW2:=EMA(HGW1,5);
HGW3:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
HGW4:=(MA(3*SMA(HGW3,6,1)-2*SMA(SMA(HGW3,5,1),5,1),2));
HGW5:=CROSS(HGW4,0) AND HGW2<40;
HGW6:=IF("KDJ.J"<0,10,0);
HGW7:=(2*CLOSE+HIGH+LOW)/4;
HGW8:=LLV(LOW,5);
HGW9:=HHV(HIGH,5);
HGW10:=EMA((HGW7-HGW8)/(HGW9-HGW8)*100,5);
HGW16:=MA(HGW10,2);
HGW18:=HGW10>HGW16 AND REF(HGW10,1)<30;
STICKLINE(HGW10>HGW16,HGW10,HGW16,6,1),COLORRED;
STICKLINE(HGW10>HGW16 AND REF(HGW10,1)<30,HGW10,HGW16,6,1),COLORRED;
STICKLINE(HGW10<=HGW16,HGW10,HGW16,6,1),COLORFFCC66;
DRAWICON(CROSS(9.9,HGW6) OR HGW5 AND HGW18 AND NOT(REF(HGW18,1)),HGW10-12,30);
STICKLINE(CROSS(9.9,HGW6),HGW10+5,HGW16-4,6,1),COLORYELLOW;
STICKLINE(HGW10>HGW16 AND REF(HGW10,1)<30,HGW10+5,HGW16-4,6,1),COLORYELLOW;