X_1:=V/CLOSE/2;
X_2:=SUM(IF(X_1>100 AND CLOSE>REF(CLOSE,1),X_1,0),0);
X_3:=SUM(IF(X_1>100 AND CLOSE<REF(CLOSE,1),X_1,0),0);
X_4:=SUM(IF(X_1<100 AND CLOSE>REF(CLOSE,1),X_1,0),0);
X_5:=SUM(IF(X_1<100 AND CLOSE<REF(CLOSE,1),X_1,0),0);
X_6:=X_2+X_3+X_4+X_5;
机买:=X_2/X_6*100,COLORRED,LINETHICK2;
机卖:=X_3/X_6*100,COLORGREEN,LINETHICK2;
主力差:=机买-机卖,LINETHICK2;
机构加仓:(主力差>=REF(主力差,1)+1.5)*50;