aa:=SUM(IF(((NEWVOL*NEW<50000OR NEWVOL<10000) AND NEW>NEW[1]),NEWVOL*NEW,0),0);
bb:=SUM(IF(((NEWVOL*NEW<50000OR NEWVOL<10000) AND NEW<NEW[1]),NEWVOL*NEW,0),0);
散户:=MA(aa-bb,10),colorffcc00;
cc:=SUM(IF(((NEWVOL*NEW>=50000 AND NEWVOL*NEW<300000OR NEWVOL>=10000AND NEWVOL<60000) AND NEW>NEW[1]),NEWVOL*NEW,0),0);
dd:=SUM(IF(((NEWVOL*NEW>=50000 AND NEWVOL*NEW<300000OR NEWVOL>=10000AND NEWVOL<60000) AND NEW<NEW[1]),NEWVOL*NEW,0),0);
中户:=MA(cc-dd,3),Color00eeff;
ee:=SUM(IF(((NEWVOL*NEW>=300000 AND NEWVOL*NEW<1000000OR NEWVOL>=60000AND NEWVOL<200000OR NEWVOL>SHGZG/1000) AND NEW>NEW[1]),NEWVOL*NEW,0),0);
ff:=SUM(IF(((NEWVOL*NEW>=300000 AND NEWVOL*NEW<1000000OR NEWVOL>=60000AND NEWVOL<200000OR NEWVOL>SHGZG/1000) AND NEW<NEW[1]),NEWVOL*NEW,0),0);
大户:MA(ee-ff,3),color0033ff;
gg:=SUM(IF((NEWVOL*NEW>=1000000OR NEWVOL>=200000 AND NEW>NEW[1]),NEWVOL*NEW,0),0);
hh:=SUM(IF((NEWVOL*NEW>=1000000OR NEWVOL>=200000 AND NEW<NEW[1]),NEWVOL*NEW,0),0);
机构:gg-hh,Color8800EE;
FILLRGN(0,机构,机构>0,color000066);
FILLRGN(0,机构,机构<0,color003300);
STICKLINE(NEWVOL*NEW>=1000000OR NEWVOL>=200000 AND NEW>NEW[1],NEWVOL*NEW,0,2,0),colorred;
STICKLINE(NEWVOL*NEW>=1000000OR NEWVOL>=200000 AND NEW<NEW[1],-NEWVOL*NEW,0,2,0),colorgreen;
ZZ:0,Colorffdddd;