以下是同花顺游资线指标公式
反映每天该只股票资金流入流出净量,及资金持仓情况。
r:=( ZJLR[-1]-ZJLC[-1])/SHGZG;
t:=BARSCOUNT(SHGZG);
b:=SUM(r,t);
主力持仓:b;
x2:=HHV(r,n);
S:=STD(SHGZG,2)/1000000;
S1:=-STD(SHGZG,2)/1000000;
STICKLINE(r>0,r+b,b,2),colorred;
STICKLINE(r<0,b,b+r,2),colorgreen;
STICKLINE(s>0,x2+b,b+r*3,3),coloryellow;
STICKLINE(s1<0,b+r*3,b-x2,3),coloryellow;
IF(ISNULL(r))
a= ZJLR[-1]/1000000;
b=-ZJLC[-1]/1000000;
a3=SUM(a,n)/1000000;
b3=SUM(b,n)/1000000;
VOL1=SUM(VOL,n)/1000000;
S3=STD(SHGZG,2)/10000;
IF(a3>b3)
{y=a3-b3; z=y/VOL1*100; 主力增加:TOSTRING(r,2)+”%.”+TOSTRING(n,0)+”天主力净买入”+TOSTRING(y,1)+”万手.占总成交”+TOSTRING(z,1)+”%.”+”流通盘增加”+TOSTRING(s3,2)+”万.”;}
ELSE{ y=b3-a3; z=y/VOL1*100; 主力增加:TOSTRING(r,2)+”%.”+TOSTRING(n,0)+”天主力净买入”+TOSTRING(y,1)+”万手.占总成交”+TOSTRING(z,1)+”%.”+”流通盘增加”+TOSTRING(s3,2)+”万.”;}
评论(0)