大B:=L2_AMO(1,0)/10000.0;
中B:=L2_AMO(2,0)/10000.0;
小B:=L2_AMO(3,0)/10000.0;
超S:=L2_AMO(0,1)/10000.0;
大S:=L2_AMO(1,1)/10000.0;
中S:=L2_AMO(2,1)/10000.0;
小S:=L2_AMO(3,1)/10000.0;
主力净额:(超B+大B)-(超S+大S),NODRAW;
超大单:(超B)-(超S),NODRAW;
大单:(大B)-(大S),NODRAW;
中单:(中B)-(中S),NODRAW;
小单:(小B)-(小S),NODRAW;
总成交:=AMOUNT;
占比1:主力净额/(总成交/10000)*100,COLORRED,NODRAW;
占比3:SUM(主力净额,3)/(SUM(总成交,3)/10000)*100,NODRAW;
占比5:SUM(主力净额,5)/(SUM(总成交,5)/10000)*100,NODRAW;
占比10:SUM(主力净额,10)/(SUM(总成交,10)/10000)*100,NODRAW;
STICKLINE(占比1>0,0,占比1,2,0),COLORRED;
STICKLINE(占比1<0,0,占比1,2,0),COLORCYAN;