机构买卖差(分时指标 源码)
A1:=(VOL/C)/2;
A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A3:=SUM(IF(A1>100 AND CLOSE
A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A5:=SUM(IF(A1<100 AND CLOSE
A6:=A2+A3+A4+A5;
机买:(A4/A6)*100,LINETHICK0;
机卖:(A5/A6)*100,LINETHICK0;
主力差:机买-机卖,LINETHICK0;
DRAWTEXT(主力差>0 AND REF(主力差,1)<=0,C*0.15,'●机构'),COLORCYAN;