A3:=SUM(IF(A11 100 AND CLOSE REF(CLOSE,1),A11,0),0);
A4:=SUM(IF(A11 100 AND CLOSE REF(CLOSE,1),A11,0),0);
A5:=SUM(IF(A11 100 AND CLOSE REF(CLOSE,1),A11,0),0);
A6:=A2+A3+A4+A5;
机买:=(A2/A6)*100;
机卖:=(A3/A6)*100;
主力差:=机买-机卖;
差额 0.1 AND 主力差 0 AND REF(主力差,1) =0 AND 差额+0.3;