收集:中国股票市场经济分析网

活动分笔公式  根据流通市值计算不同的门限, 最小门限6w左右,最大的是中信,26w, 大单为门限的5倍, 巨单为大单的5倍,
公式在分笔小会显示门限。
-------------------------
0,dotline,colorgray;

流通市值:=capital*c/1000000;{亿}
base:=0.1;{亿}
rate:=流通市值/2/base;
rate3:=rate*rate*rate;
lognrate3:=LN(rate3);
biglimit:=lognrate3*10000;
largelimit:=biglimit*5;
superlimit:=largelimit*5;


var5:=buyvol;
var6:=sellvol;

tb:=IF(AMOUNT>=superlimit,Var5,0);
ts:=IF(AMOUNT>=superlimit,Var6,0);

lb:=IF(AMOUNT>=largelimit and amount<superlimit,Var5,0);
ls:=IF(AMOUNT>=largelimit and amount<superlimit,Var6,0);

bb:=IF(AMOUNT>=biglimit and amount<largelimit,Var5,0);
bs:=IF(AMOUNT>=biglimit and amount<largelimit,Var6,0);

sb:=IF(AMOUNT<biglimit,Var5,0);
ss:=IF(AMOUNT<biglimit,Var6,0);


特买:=SUM(tb,0);
特卖:=SUM(ts,0);

大买:=SUM(lb,0);
大卖:=SUM(ls,0);

中买:=SUM(bb,0);
中卖:=SUM(bs,0);

小买:=SUM(sb,0);
小卖:=SUM(ss,0);

flow:=capital/100;
总量:=sum(vol,0);






小量差:=小买-小卖;
中量差:中买-中卖,linethick0;
大量差:大买-大卖,linethick0;
特量差:特买-特卖,linethick0;
主量差:中量差+大量差+特量差,linethick0;

主差额:主量差*c/100,PRECIS0,linethick0;
主流比:=主量差/flow;
主日比:=主量差/总量;

FILLRGN(主量差,0,主量差>0,rgb(120,60,30),主量差<0,rgb(100,100,100));

小差:小量差,colorgray;
大上差:大量差+特量差,coloryellow;



sbp:=小买/总量*100;
ssp:=小卖/总量*100;
bbp:=中买/总量*100;
bsp:=中卖/总量*100;
lbp:=大买/总量*100;
lsp:=大卖/总量*100;
tbp:=特买/总量*100;
tsp:=特卖/总量*100;

DRAWTEXTABS(10 ,10 ,'主力量差 :  '+主量差),COLORMAGENTA,linethick2;
DRAWTEXTABS(10 ,25 ,'主力增仓 :  '+主流比+'%'),COLORMAGENTA,linethick2;
DRAWTEXTABS(10 ,40 ,'主力比重 :  '+主日比+'%'),COLORMAGENTA,linethick2;

DRAWTEXTABS(170 ,10 ,'中单门限 :  '+biglimit/10000+'万'),COLORwhite,linethick2;
DRAWTEXTABS(170 ,25 ,'大单门限 :  '+largelimit/10000+'万'),COLORwhite,linethick2;
DRAWTEXTABS(170 ,40 ,'巨单门限 :  '+superlimit/10000+'万'),COLORwhite,linethick2;



DRAWTEXTABS(10 ,120 ,'小买% '+sbp),colorred;
DRAWTEXTABS(10 ,135 ,'小卖% '+ssp),colorgreen;
DRAWTEXTABS(90 ,120 ,'中买% '+bbp),colorred;
DRAWTEXTABS(90 ,135 ,'中卖% '+bsp),colorgreen;
DRAWTEXTABS(170 ,120 ,'大买% '+lbp),colorred;
DRAWTEXTABS(170 ,135 ,'大卖% '+lsp),colorgreen;
DRAWTEXTABS(250 ,120 ,'特买% '+tbp),colorred;
DRAWTEXTABS(250 ,135 ,'特卖% '+tsp),colorgreen;

DRAWRECTABS(40 ,118-sbp , 52 ,118 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(58 ,118-ssp, 70 ,118 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(120 ,118-bbp , 132 ,118 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(138 ,118-bsp, 150 ,118 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(190 ,118-lbp , 202 ,118 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(208 ,118-lsp , 220 ,118 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(270 ,118-tbp , 282 ,118 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(288 ,118-tsp , 300 ,118 ,RGB(0,255,0)),colorblack;



{-------------看各价位上的成交累计------------}
DRAWTEXTABS(250+100 ,122 ,'-10-9-8-7-6-5-4-3-2-1  0+1+2+3+4+5+6+7+8+9+10'),COLORwhite,linethick1;

昨收:=DYNAINFO(3);
涨幅:=(c/昨收-1)*100;
n9:=sum(if(涨幅<=-9,vol,0),0)/总量;
n8:=sum(if(涨幅<=-8 and 涨幅>-9,vol,0),0)/总量;
n7:=sum(if(涨幅<=-7 and 涨幅>-8,vol,0),0)/总量;
n6:=sum(if(涨幅<=-6 and 涨幅>-7,vol,0),0)/总量;
n5:=sum(if(涨幅<=-5 and 涨幅>-6,vol,0),0)/总量;
n4:=sum(if(涨幅<=-4 and 涨幅>-5,vol,0),0)/总量;
n3:=sum(if(涨幅<=-3 and 涨幅>-4,vol,0),0)/总量;
n2:=sum(if(涨幅<=-2 and 涨幅>-3,vol,0),0)/总量;
n1:=sum(if(涨幅<=-1 and 涨幅>-2,vol,0),0)/总量;
b0:=sum(if(涨幅<=0 and 涨幅>-1,vol,0),0)/总量;
p1:=sum(if(涨幅<=1 and 涨幅>0,vol,0),0)/总量;
p2:=sum(if(涨幅<=2 and 涨幅>1,vol,0),0)/总量;
p3:=sum(if(涨幅<=3 and 涨幅>2,vol,0),0)/总量;
p4:=sum(if(涨幅<=4 and 涨幅>3,vol,0),0)/总量;
p5:=sum(if(涨幅<=5 and 涨幅>4,vol,0),0)/总量;
p6:=sum(if(涨幅<=6 and 涨幅>5,vol,0),0)/总量;
p7:=sum(if(涨幅<=7 and 涨幅>6,vol,0),0)/总量;
p8:=sum(if(涨幅<=8 and 涨幅>7,vol,0),0)/总量;
p9:=sum(if(涨幅<=9 and 涨幅>8,vol,0),0)/总量;
p10:=sum(if(涨幅>9,vol,0),0)/总量;


DRAWRECTABS(265+100 ,120-n9*250, 275+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(277+100 ,120-n8*250, 287+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(290+100 ,120-n7*250, 300+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(302+100 ,120-n6*250, 312+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(315+100 ,120-n5*250, 325+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(327+100 ,120-n4*250, 337+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(340+100 ,120-n3*250, 350+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(352+100 ,120-n2*250, 362+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(365+100 ,120-n1*250, 375+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(377+100 ,120-b0*250, 387+100 ,120 ,RGB(0,0,255)),colorblack;

DRAWRECTABS(390+100 ,120-p1*250, 400+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(402+100 ,120-p2*250, 412+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(415+100 ,120-p3*250, 425+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(427+100 ,120-p4*250, 437+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(440+100 ,120-p5*250, 450+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(452+100 ,120-p6*250, 462+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(465+100 ,120-p7*250, 475+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(477+100 ,120-p8*250, 487+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(490+100 ,120-p9*250, 500+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(502+100 ,120-p10*250, 512+100 ,120 ,RGB(180,120,60)),colorblack;

{主力大单分布}

zn9b:=sum(if(涨幅<=-9 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zn9s:=sum(if(涨幅<=-9 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zn8b:=sum(if(涨幅<=-8 and 涨幅>-9 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zn8s:=sum(if(涨幅<=-8 and 涨幅>-9 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zn7b:=sum(if(涨幅<=-7 and 涨幅>-8 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zn7s:=sum(if(涨幅<=-7 and 涨幅>-8 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zn6b:=sum(if(涨幅<=-6 and 涨幅>-7 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zn6s:=sum(if(涨幅<=-6 and 涨幅>-7 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zn5b:=sum(if(涨幅<=-5 and 涨幅>-6 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zn5s:=sum(if(涨幅<=-5 and 涨幅>-6 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zn4b:=sum(if(涨幅<=-4 and 涨幅>-5 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zn4s:=sum(if(涨幅<=-4 and 涨幅>-5 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zn3b:=sum(if(涨幅<=-3 and 涨幅>-4 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zn3s:=sum(if(涨幅<=-3 and 涨幅>-4 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zn2b:=sum(if(涨幅<=-2 and 涨幅>-3 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zn2s:=sum(if(涨幅<=-2 and 涨幅>-3 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zn1b:=sum(if(涨幅<=-1 and 涨幅>-2 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zn1s:=sum(if(涨幅<=-1 and 涨幅>-2 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zn0b:=sum(if(涨幅<=0 and 涨幅>-1 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zn0s:=sum(if(涨幅<=0 and 涨幅>-1 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zp1b:=sum(if(涨幅<=1 and 涨幅>0 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zp1s:=sum(if(涨幅<=1 and 涨幅>0 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zp2b:=sum(if(涨幅<=2 and 涨幅>1 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zp2s:=sum(if(涨幅<=2 and 涨幅>1 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zp3b:=sum(if(涨幅<=3 and 涨幅>2 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zp3s:=sum(if(涨幅<=3 and 涨幅>2 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zp4b:=sum(if(涨幅<=4 and 涨幅>3 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zp4s:=sum(if(涨幅<=4 and 涨幅>3 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zp5b:=sum(if(涨幅<=5 and 涨幅>4 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zp5s:=sum(if(涨幅<=5 and 涨幅>4 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zp6b:=sum(if(涨幅<=6 and 涨幅>5 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zp6s:=sum(if(涨幅<=6 and 涨幅>5 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zp7b:=sum(if(涨幅<=7 and 涨幅>6 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zp7s:=sum(if(涨幅<=7 and 涨幅>6 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zp8b:=sum(if(涨幅<=8 and 涨幅>7 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zp8s:=sum(if(涨幅<=8 and 涨幅>7 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zp9b:=sum(if(涨幅<=9 and 涨幅>8 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zp9s:=sum(if(涨幅<=9 and 涨幅>8 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

zp10b:=sum(if(涨幅>9 and (bb>0 or tb>0 or lb>0),bb+lb+tb,0),0)/总量;
zp10s:=sum(if(涨幅>9 and (bs>0 or ts>0 or ls>0),bs+ls+ts,0),0)/总量;

DRAWRECTABS(265+100 ,120-zn9b*250, 275+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(265+100 ,134+zn9s*250, 275+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(277+100 ,120-zn8b*250, 287+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(277+100 ,134+zn8s*250, 287+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(290+100 ,120-zn7b*250, 300+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(290+100 ,134+zn7s*250, 300+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(302+100 ,120-zn6b*250, 312+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(302+100 ,134+zn6s*250, 312+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(315+100 ,120-zn5b*250, 325+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(315+100 ,134+zn5s*250, 325+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(327+100 ,120-zn4b*250, 337+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(327+100 ,134+zn4s*250, 337+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(340+100 ,120-zn3b*250, 350+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(340+100 ,134+zn3s*250, 350+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(352+100 ,120-zn2b*250, 362+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(352+100 ,134+zn2s*250, 362+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(365+100 ,120-zn1b*250, 375+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(365+100 ,134+zn1s*250, 375+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(377+100 ,120-zn0b*250, 387+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(377+100 ,134+zn0s*250, 387+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(390+100 ,120-zp1b*250, 400+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(402+100 ,120-zp2b*250, 412+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(415+100 ,120-zp3b*250, 425+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(427+100 ,120-zp4b*250, 437+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(440+100 ,120-zp5b*250, 450+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(452+100 ,120-zp6b*250, 462+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(465+100 ,120-zp7b*250, 475+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(477+100 ,120-zp8b*250, 487+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(490+100 ,120-zp9b*250, 500+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(502+100 ,120-zp10b*250, 512+100 ,120 ,RGB(255,0,0)),colorblack;

DRAWRECTABS(390+100 ,134+zp1s*250, 400+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(402+100 ,134+zp2s*250, 412+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(415+100 ,134+zp3s*250, 425+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(427+100 ,134+zp4s*250, 437+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(440+100 ,134+zp5s*250, 450+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(452+100 ,134+zp6s*250, 462+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(465+100 ,134+zp7s*250, 475+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(477+100 ,134+zp8s*250, 487+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(490+100 ,134+zp9s*250, 500+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(502+100 ,134+zp10s*250, 512+100 ,134 ,RGB(0,255,0)),colorblack;

obj_ID += ",message14565946";


发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口


相关内容


  • 上一篇教程:
  • 下一篇教程: