分笔统计 a:=BUYVOL*c/100; bz:=SUM(a,0); b:=SELLVOL*c/100; sz:=SUM(b,0); z:=bz+sz; cz:=bz-sz; xb5:=IF(a<=5,a,0);b5:=SUM(xb5,0); xs5:=IF(b<=5,b,0);s5:=SUM(xs5,0); xb20:=IF(a>5 and a<=20,a,0);b20:=SUM(xb20,0); xs20:=IF(b>5 and b<=20 ,b,0);s20:=SUM(xs20,0); xb50:=IF(a>20 and a<=50,a,0);b50:=SUM(xb50,0); xs50:=IF(b>20 and b<=50,b,0);s50:=SUM(xs50,0); xb100:=IF(a>50 and a<=100,a,0);b100:=SUM(xb100,0); xs100:=IF(b>50 and b<=100,b,0);s100:=SUM(xs100,0); Xb300:=IF(a>100 and a<=300,a,0);b300:=SUM(xb300,0); Xs300:=IF(b>100 and b<=300,b,0);s300:=SUM(xs300,0); Xb500:=IF(a>300 and a<=500,a,0);b500:=SUM(xb500,0); Xs500:=IF(b>300 and a<=500,b,0);s500:=SUM(xs500,0); Xb800:=IF(a>500 and a<=800,a,0);b800:=SUM(xb800,0); Xs800:=IF(b>500 and a<=800 ,b,0);s800:=SUM(xs800,0); xb801:=IF(a>800,a,0);b801:=SUM(xb801,0); xs801:=IF(b>800,b,0);s801:=SUM(xs801,0); j5:=b5-s5; j20:=b20-s20; j50:=b50-s50; j100:=b100-s100; j300:=b300-s300; j500:=b500-s500; j800:=b800-s800; j801:=b801-s801; 净额:cz,linethick0,precis0; 统计:j5+j20+j50+j100+j300+j500+j800+j801,colorred,precis0; |