J主力买卖
每日主力买卖净量
零轴:0,Linethik2,coloryellow;
IF(PERIODNAME<>"日线")
{
统计:"该指标只在日线周期下有效。";
RETURN;
}
r1:=ZDMR[-1];
r2:=BDMR[-1];
r3:=-ZDMC[-1];
r4:=-BDMC[-1];
x1:=(ZDMR+BDMR);
y1:=-(ZDMC+BDMC);
a1=SUM(x1,n);
b1=SUM(y1,n);
总买入:a1+b1;
IF(a1>-b1)
{
y=(a1+b1)/1000000;
统计:TOSTRING(n,0)+"天机构总买入"+TOSTRING(a1/1000000,1)+"万手,总卖出"+TOSTRING(-b1/1000000,1)+"万手.净买入"+TOSTRING(y,1)+"万手";
}
ELSE
{
y=-(b1+a1)/1000000;
统计:TOSTRING(n,0)+"天机构总买入"+TOSTRING(a1/1000000,1)+"万手,总卖出"+TOSTRING(-b1/1000000,1)+"万手.净卖出"+TOSTRING(y,1)+"万手";
};
FILLRGN(总买入,0,总买入>0,RGB(255,0,0),总买入<0,RGB(255,255,0));