GSPT1:=IF(C=O=H=L,0,(C-O)/(H-L)*VOL*CLOSE*100/10000);
GSPT2:=IF(C>REF(C,1) AND C=O=H=L,VOL*CLOSE*100/10000,0);
GSPT3:=IF(C<REF(C,1) AND C=O=H=L,-VOL*CLOSE*100/10000,0);
GSPT4:=SUM(GSPT1+GSPT2+GSPT3,3);
GSPT5:=EMA(GSPT4,4);
GSPT8:=GSPT5-REF(GSPT5,1);
GSPT9:=REF(GSPT5,1)>REF(GSPT5,2) AND GSPT5<REF(GSPT5,1);
GSPT10:=REF(GSPT5,1)<=REF(GSPT5,2) AND GSPT5>REF(GSPT5,1);
资金平衡线:0,COLORLIMAGENTA,LINETHICK1;
短线资金流:GSPT5,COLORWHITE;
资金流速:GSPT8,COLORGREEN;
DRAWTEXT_FIX(C>O,0,0.2,0,'GSPT8GSPT9:GSPT10'),COLORMAGENTA;
DRAWTEXT(GSPT9,GSPT5,'减'),COLORGREEN;
DRAWTEXT(GSPT10,GSPT5,'加'),COLORRED;