分笔统计
SB:=IF(BUYVOL<散户UP*10000/CLOSE/100 AND BUYVOL>0 AND REF(BUYVOL,1)<散户UP*10000/CLOSE/100 AND REF(BUYVOL,1)>0,BUYVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
散买:SUM(SB,0),LINETHICK0;
SS:=IF(SELLVOL<散户UP*10000/CLOSE/100 AND SELLVOL>0 AND REF(SELLVOL,1)<散户UP*10000/CLOSE/100 AND REF(SELLVOL,1)>0,SELLVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
散卖:SUM(SS,0);
散户:散买-散卖,LINETHICK0;
SB1:=IF(BUYVOL<100000/CLOSE/100 AND BUYVOL>=60000/CLOSE/100 AND REF(BUYVOL,1)<100000/CLOSE/100 AND REF(BUYVOL,1)>=60000/CLOSE/100,BUYVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
六至十万B:SUM(SB1,0);
SS1:=IF(SELLVOL<100000/CLOSE/100 AND SELLVOL>=60000/CLOSE/100 AND REF(SELLVOL,1)<100000/CLOSE/100 AND REF(SELLVOL,1)>=60000/CLOSE/100,SELLVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
六至十万S:SUM(SS1,0);
SB2:=IF(BUYVOL<200000/CLOSE/100 AND BUYVOL>=100000/CLOSE/100 AND REF(BUYVOL,1)<200000/CLOSE/100 AND REF(BUYVOL,1)>=100000/CLOSE/100,BUYVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
十至二十万B:SUM(SB2,0);
SS2:=IF(SELLVOL<100000/CLOSE/100 AND SELLVOL>=60000/CLOSE/100 AND REF(SELLVOL,1)<100000/CLOSE/100 AND REF(SELLVOL,1)>=60000/CLOSE/100,SELLVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
十至二十万S:SUM(SS2,0);
SB3:=IF(BUYVOL<500000/CLOSE/100 AND BUYVOL>=200000/CLOSE/100 AND REF(BUYVOL,1)<500000/CLOSE/100 AND REF(BUYVOL,1)>=200000/CLOSE/100,BUYVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
二0至五0万B:SUM(SB3,0);
SS3:=IF(SELLVOL<500000/CLOSE/100 AND SELLVOL>=200000/CLOSE/100 AND REF(SELLVOL,1)<500000/CLOSE/100 AND REF(SELLVOL,1)>=200000/CLOSE/100,SELLVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
二0至五0万S:SUM(SS3,0);
SB4:=IF(BUYVOL<1000000/CLOSE/100 AND BUYVOL>=500000/CLOSE/100 AND REF(BUYVOL,1)<1000000/CLOSE/100 AND REF(BUYVOL,1)>=500000/CLOSE/100,BUYVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
五0至1百万B:SUM(SB4,0);
SS4:=IF(SELLVOL<1000000/CLOSE/100 AND SELLVOL>=500000/CLOSE/100 AND REF(SELLVOL,1)<1000000/CLOSE/100 AND REF(SELLVOL,1)>=500000/CLOSE/100,SELLVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
五0至1百万S:SUM(SS4,0);
SB5:=IF(BUYVOL<3000000/CLOSE/100 AND BUYVOL>=1000000/CLOSE/100 AND REF(BUYVOL,1)<3000000/CLOSE/100 AND REF(BUYVOL,1)>=1000000/CLOSE/100,BUYVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
一至三百万B:SUM(SB5,0);
SS5:=IF(SELLVOL<3000000/CLOSE/100 AND SELLVOL>=1000000/CLOSE/100 AND REF(SELLVOL,1)<3000000/CLOSE/100 AND REF(SELLVOL,1)>=1000000/CLOSE/100,SELLVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
一至三百万S:SUM(SS5,0);
SB6:=IF(BUYVOL<5000000/CLOSE/100 AND BUYVOL>=3000000/CLOSE/100 AND REF(BUYVOL,1)<5000000/CLOSE/100 AND REF(BUYVOL,1)>=3000000/CLOSE/100,BUYVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
三至五百万B:SUM(SB6,0);
SS6:=IF(SELLVOL<5000000/CLOSE/100 AND SELLVOL>=3000000/CLOSE/100 AND REF(SELLVOL,1)<5000000/CLOSE/100 AND REF(SELLVOL,1)>=3000000/CLOSE/100,SELLVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
三至五百万S:SUM(SS6,0);
SB7:=IF(BUYVOL<10000000/CLOSE/100 AND BUYVOL>=5000000/CLOSE/100 AND REF(BUYVOL,1)<10000000/CLOSE/100 AND REF(BUYVOL,1)>=5000000/CLOSE/100,BUYVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
五百至千万B:SUM(SB7,0);
SS7:=IF(SELLVOL<10000000/CLOSE/100 AND SELLVOL>=5000000/CLOSE/100 AND REF(SELLVOL,1)<10000000/CLOSE/100 AND REF(SELLVOL,1)>=5000000/CLOSE/100,SELLVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
五百至千万S:SUM(SS7,0);
SB8:=IF(BUYVOL<50000000/CLOSE/100 AND BUYVOL>=10000000/CLOSE/100 AND REF(BUYVOL,1)<50000000/CLOSE/100 AND REF(BUYVOL,1)>=10000000/CLOSE/100,BUYVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
一至五千万B:SUM(SB8,0);
SS8:=IF(SELLVOL<50000000/CLOSE/100 AND SELLVOL>=10000000/CLOSE/100 AND REF(SELLVOL,1)<50000000/CLOSE/100 AND REF(SELLVOL,1)>=10000000/CLOSE/100,SELLVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
一至五千万S:SUM(SS8,0);
SB9:=IF(BUYVOL>=50000000/CLOSE/100 AND REF(BUYVOL,1)>=50000000/CLOSE/100,BUYVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
五千万以上B:SUM(SB9,0);
SS9:=IF(SELLVOL>=50000000/CLOSE/100 AND REF(SELLVOL,1)>=50000000/CLOSE/100,SELLVOL*(IF(CAPITAL>0,CLOSE,1))*100,0);
五千万以上S:SUM(SS9,0);
中买:六至十万B+十至二十万B;
中卖:六至十万S+十至二十万S;
中户:中买-中卖;
大买:二0至五0万B+五0至1百万B;
大卖:二0至五0万S+五0至1百万S;
大户:大买-大卖;
特大买:一至三百万B+三至五百万B+五百至千万B+一至五千万B+五千万以上B;
特大卖:一至三百万S+三至五百万S+五百至千万S+一至五千万S+五千万以上S;
机构:特大买-特大卖;
总买:散买+中买+大买+特大买;
总卖:散卖+中卖+大卖+特大卖;
|