A1:=(VOL/CLOSE)/3;
A2:=SUM((IF(((A1>60) AND C<15 AND (CLOSE>(REF(CLOSE,1)))),A1,0)),1);
A3:=SUM((IF(((A1>20) AND C>15 AND (CLOSE>(REF(CLOSE,1)))),A1,0)),1);
主力买:=A2+A3;
A4:=SUM((IF(((A1>60) AND C<15 AND (CLOSE<(REF(CLOSE,1)))),A1,0)),1);
A5:=SUM((IF(((A1>20) AND C>15 AND (CLOSE<(REF(CLOSE,1)))),A1,0)),1);
主力卖:=A4+A5;
主力净买额:IF(FINANCE(7)<5000000000,(主力买-主力卖)/10,0);
占盘比:主力净买额/FINANCE(7)*1000000;