HGW1:=EMA(C,6)-EMA(C,12);
HGW2:=EMA(HGW1,5);
HGW3:=HGW1-HGW2;
HGW4:=ABS(C-O);
HGW5:=VOL/((H-L)*2-HGW4);
HGW6:=IF(C>O,HGW5*(H-L),IF(C<O,HGW5*(H-O+(C-L)),VOL/2))+IF(C>O,0-HGW5*(H-C+(O-L)),IF(C<O,0-HGW5*(H-L),0-VOL/2));
HGW7:=HGW6/20/1.15;
HGW8:=EMA(HGW7*0.55+REF(HGW7,1)*0.33+REF(HGW7,2)*0.22,3);
HGW9:=100-3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
HGW10:=100-3*SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
HGW11:=HGW9<REF(HGW10,1) AND VOL>REF(VOL,1) AND C>REF(C,1);
HGW12:=(H+L+C)/3;
HGW13:=(HGW12-MA(HGW12,14))/(0.015*AVEDEV(HGW12,14));
HGW14:=(HGW12-MA(HGW12,70))/(0.015*AVEDEV(HGW12,70));
HGW15:=IF(HGW13>=150 AND HGW13<200 AND HGW14>=150 AND HGW14<200,10,0);
HGW16:=IF(HGW13<=-150 AND HGW13>-200 AND HGW14<=-150 AND HGW14>-200,-10,HGW15);
HGW17:=(C-MA(C,13))/MA(C,13)*100;
HGW18:=100-ABS(HGW17);
HGW19:=IF(HGW18<90,HGW18,100);
HGW20:=IF(MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20>0,MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20,0);
牛哥:=IF(HGW14>=200 AND HGW13>=150,15,IF(HGW14<=-200 AND HGW13<=-150,-15,HGW16))+60;
HGW21:=HGW20>48 AND 牛哥>60 AND HGW19<100;
STICKLINE(HGW8>0 AND HGW3>0,HGW3/40,0,1,0),COLORRED;
STICKLINE(HGW8>0 AND HGW3<0,0,HGW3/40,1,0),COLORGREEN;
DRAWTEXT(HGW11 AND COUNT(HGW11,30)=1,0.025,' 资金进场'),COLORMAGENTA;
STICKLINE(HGW11 AND COUNT(HGW11,30)=1,0,0.02,2,0),COLORLIRED;
DRAWTEXT(HGW21 AND COUNT(HGW21,30)=1,0.025,' 加速拉升'),LINETHICK1,COLORRED;
STICKLINE(HGW21 AND COUNT(HGW21,30)=1,0,0.02,2,0),COLORYELLOW;