同花顺主力来了公式
IF(PERIODNAME<>"日线")
{
统计:"该指标只在日线周期下有效。";
RETURN;
}
r1:=ZDMR[-1];
r2:=BDMR[-1];
r3:=-ZDMC[-1];
r4:=-BDMC[-1];
STICKLINE(r2>0,r1,r1+r2,8),color160060;
STICKLINE(r1>0,0,r1,8),color0000ff;
STICKLINE(r3<0,0,r3,8),color00ff00;
STICKLINE(r4<0,r3,r3+r4,8),color166000;
x1:=(ZDMR+BDMR);
y1:=-(ZDMC+BDMC);
a1=MA(x1,n);
b1=MA(y1,n);
净买入:a1+b1;
净买入比值:(a1+b1)/VOL*100;
IF(ISNULL(r1))
{
统计:"本指标由同花顺金融研究中心提供,每晚11点后提供当天的数据。";
RETURN;
}
a=(ZDMR[-1]+BDMR[-1]);
b=(ZDMC[-1]+BDMC[-1]);
a3=SUM(a,n)/1000000;
b3=SUM(b,n)/1000000;
VOL1=SUM(VOL,n)/1000000;
a5=(SUM((ZDMR[-1]+BDMR[-1]),M+1)-(ZDMR[-1]+BDMR[-1]))/1000000;
b5=SUM((ZDMC[-1]+BDMC[-1]),M)/1000000;
k=a5-b5;
a6=(ZDMR[-1])/(ZDMC[-1]);
IF(a3>b3)
{
y=a3-b3;
z=y/VOL1*100;
统计:TOSTRING(n,0)+"天机构买入"+TOSTRING(a3,1)+"万手,卖出"+TOSTRING(b3,1)+"万手.净买入"+TOSTRING(y,1)+"万手.占总成交"+TOSTRING(z,1)+"%."+"比"+TOSTRING(a6,1)+"% 未出货量"+TOSTRING(k,1);
}
ELSE
{
y=b3-a3;
z=y/VOL1*100;
统计:TOSTRING(n,0)+"天机构买入"+TOSTRING(a3,1)+"万手,卖出"+TOSTRING(b3,1)+"万手.净卖出"+TOSTRING(y,1)+"万手.占总成交"+TOSTRING(z,1)+"%."+"比"+TOSTRING(a6,1)+"% 未出货量"+TOSTRING(k,1);