前段时间看到一位高人自编的资金进出量 计算公式,使用中量出不错,主要是自己总是不相信官方数据,所以就替代了,自己来统计数据了。
看需要自己下吧
{资金进出}
总亿:FINANCE(1)*C/100000000,NODRAW,COLORRED;
总量万:VOL/10000,NODRAW;
总额亿:AMOUNT/100000000,NODRAW,COLORGREEN;
AA:=(VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)));
B:=(IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+
(CLOSE-LOW)),VOL/2)));
S:=ABS((IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2))));
流量:=(B-S)/10000;
净亿:((B-S)*AMOUNT/VOL)/100000000,NODRAW,COLORWHITE;
STICKLINE(流量>0,0,B,2,0),COLORRED;
STICKLINE(流量<0,0,S,2,0),COLORGREEN;
买:B,COLORWHITE,LINETHICK2;
卖:S,COLORYELLOW,LINETHICK2;