HGW1:=IF(C=O=H=L,0,(C-O)/(H-L)*VOL*CLOSE*100/10000);
HGW2:=IF(C>REF(C,1) AND C=O=H=L,VOL*CLOSE*100/10000,0);
HGW3:=IF(C<REF(C,1) AND C=O=H=L,-VOL*CLOSE*100/10000,0);
HGW4:=SUM(HGW1+HGW2+HGW3,3);
HGW5:=EMA(HGW4,4);
HGW8:=HGW5-REF(HGW5,1);
HGW9:=REF(HGW5,1)>REF(HGW5,2) AND HGW5<REF(HGW5,1);
HGW10:=REF(HGW5,1)<=REF(HGW5,2) AND HGW5>REF(HGW5,1);
资金平衡线:0,COLORLIMAGENTA,LINETHICK1;
短线资金流:HGW5,COLORWHITE;
资金流速:HGW8,COLORGREEN;
DRAWTEXT(HGW9,HGW5,'减'),COLORGREEN;
DRAWTEXT(HGW10,HGW5,'加'),COLORRED;