飞狐分笔《龙虎榜》原码可用于L2
-
相关简介:飞狐分笔《龙虎榜》原码可用于L2 input:n(403,1,10000); DRAWGBK(C0,colorRGB(80,100,120),colorRGB(00,00,00),1),color33ff66; DRAWTEXTEX(c,1,20,30,STKLABEL),LINETHICK6,Colorffff00; DRAWTEXTEX(c,1,140,30,STKNAME),LINETHICK6,Color00ffff; DRAWTEXTEX(c,1,810,200,'龙'),LINETH
-
文章来源:股海网作者:股海网发布时间:2015-11-06浏览次数:
飞狐分笔《龙虎榜》原码可用于L2
input:n(403,1,10000);
DRAWGBK(C>0,colorRGB(80,100,120),colorRGB(00,00,00),1),color33ff66;
DRAWTEXTEX(c,1,20,30,STKLABEL),LINETHICK6,Colorffff00;
DRAWTEXTEX(c,1,140,30,STKNAME),LINETHICK6,Color00ffff;
DRAWTEXTEX(c,1,810,200,'龙'),LINETHICK6,Color00ff00;
DRAWTEXTEX(c,1,810,360,'虎'),LINETHICK6,Colorffffff;
DRAWTEXTEX(c,1,810,520,'看'),LINETHICK6,Color0000ff;
DRAWTEXTEX(c,1,810,680,'盘'),LINETHICK6,Color0000ff;
DRAWTEXTEX(c,1,20,450,'------------------------------------------------------------------------------------'),LINETHICK1,Coloreeeeee;
a:=BUYVOL*c/100;
bz:=sum(a,0);
b:=c*SELLVOL/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);
xb10:=if(a<=10 and a>=5 ,a,0);b10:=sum(xb10,0);
xs10:=if(b<=10 and b>=5,b,0);s10:=sum(xs10,0);
xb30:=if(a<=30 and a>=10 ,a,0);b30:=sum(xb30,0);
xs30:=if(b<=30 and b>=10 ,b,0);s30:=sum(xs30,0);
xb50:=if(a<=50 and a>=30 ,a,0);b50:=sum(xb50,0);
xs50:=if(b<=50 and b>=30 ,b,0);s50:=sum(xs50,0);
xb70:=if(a<=70 and a>=50 ,a,0);b70:=sum(xb70,0);
xs70:=if(b<=70 and b>=50 ,b,0);s70:=sum(xs70,0);
xb100:=if(a<=100 and a>=70,a,0);b100:=sum(xb100,0);
xs100:=if(b<=100 and b>=70,b,0);s100:=sum(xs100,0);
xb150:=if(a>=100 ,a,0);b150:=sum(xb150,0);
xs150:=if(b>=100 ,b,0);s150:=sum(xs150,0);
j5:=b5-s5;
j10:=b10-s10;
j30:=b30-s30;
j50:=b50-s50;
j70:=b70-s70;
j100:=b100-s100;
j150:=b150-s150;
DRAWTEXTEX(BARSTATUS=2 and (z),1,320,45,'■总成金额(万元):'+NUMTOSTR(z,2)),LINETHICK4,COLORccffcc;
DRAWTEXTEX(BARSTATUS=2 and (bz),1,30,500,'■■■■■买入:'+NUMTOSTR(bz,2)),LINETHICK1,COLORred;
DRAWTEXTEX(BARSTATUS=2 and (sz),1,250,500,'■■■■■卖出:'+NUMTOSTR(sz,2)),LINETHICK1,COLORgreen;
DRAWTEXTEX(BARSTATUS=2 and (b5),1,30,560,'5 万大单买入:'+NUMTOSTR(b5,2)),LINETHICK1,COLORred;
DRAWTEXTEX(BARSTATUS=2 and (s5),1,250,560,'5 万大单卖出:'+NUMTOSTR(s5,2)),LINETHICK1,COLORgreen;
DRAWTEXTEX(BARSTATUS=2 and (b10),1,30,620,'10 万大单买入:'+NUMTOSTR(b10,2)),LINETHICK1,COLORred;
DRAWTEXTEX(BARSTATUS=2 and (s10),1,250,620,'10 万大单卖出:'+NUMTOSTR(s10,2)),LINETHICK1,COLORgreen;
DRAWTEXTEX(BARSTATUS=2 and (b30),1,30,680,'30 万大单买入:'+NUMTOSTR(b30,2)),LINETHICK1,COLORred;
DRAWTEXTEX(BARSTATUS=2 and (s30),1,250,680,'30 万大单卖出:'+NUMTOSTR(s30,2)),LINETHICK1,COLORgreen;
DRAWTEXTEX(BARSTATUS=2 and (b50),1,30,740,'50 万大单买入:'+NUMTOSTR(b50,2)),LINETHICK1,COLORred;
DRAWTEXTEX(BARSTATUS=2 and (s50),1,250,740,'50 万大单卖出:'+NUMTOSTR(s50,2)),LINETHICK1,COLORgreen;
DRAWTEXTEX(BARSTATUS=2 and (b70),1,30,800,'70 万大单买入:'+NUMTOSTR(b70,2)),LINETHICK1,COLORred;
DRAWTEXTEX(BARSTATUS=2 and (s70),1,250,800,'70 万大单卖出:'+NUMTOSTR(s70,2)),LINETHICK1,COLORgreen;
DRAWTEXTEX(BARSTATUS=2 and (b100),1,30,860,'100 万大单买入:'+NUMTOSTR(b100,2)),LINETHICK1,COLORred;
DRAWTEXTEX(BARSTATUS=2 and (s100),1,250,860,'100 万大单卖出:'+NUMTOSTR(s100,2)),LINETHICK1,COLORgreen;
DRAWTEXTEX(BARSTATUS=2 and (b150),1,30,920,'150 万大单买入:'+NUMTOSTR(b150,2)),LINETHICK1,COLORred;
DRAWTEXTEX(BARSTATUS=2 and (s150),1,250,920,'150 万大单卖出:'+NUMTOSTR(s150,2)),LINETHICK1,COLORgreen;
DRAWTEXTEX(BARSTATUS=2 and (cz),1,500,500,'■■■■总净买入:'+NUMTOSTR(cz,2)),LINETHICK1,COLORccff00;
DRAWTEXTEX(BARSTATUS=2 and (j5),1,500,560,'5万大单净买入'+NUMTOSTR(j5,2)),LINETHICK1,COLORccff00;
DRAWTEXTEX(BARSTATUS=2 and (j10),1,500,620,'10万大单净买入'+NUMTOSTR(j10,2)),LINETHICK1,COLORccff00;
DRAWTEXTEX(BARSTATUS=2 and (j30),1,500,680,'30万大单净买入'+NUMTOSTR(j30,2)),LINETHICK1,COLORccff00;
DRAWTEXTEX(BARSTATUS=2 and (j50),1,500,740,'50万大单净买入'+NUMTOSTR(j50,2)),LINETHICK1,COLORccff00;
DRAWTEXTEX(BARSTATUS=2 and (j70),1,500,800,'70万大单净买入'+NUMTOSTR(j70,2)),LINETHICK1,COLORccff00;
DRAWTEXTEX(BARSTATUS=2 and (j100),1,500,860,'100万大单净买入'+NUMTOSTR(j100,2)),LINETHICK1,COLORccff00;
DRAWTEXTEX(BARSTATUS=2 and (j150),1,500,920,'150万大单净买入'+NUMTOSTR(j150,2)),LINETHICK1,COLORccff00;
dd:=INTPART(LN(FINANCE(7)/(n*10))*ATAN(FINANCE(7))*100);
主动买入:=SUM(BUYVOL,0);
主动卖出:=SUM(SELLVOL,0);
大单买:=if(BUYVOL>=dd,BUYVOL,0);
大单卖:=if(SELLVOL>dd,SELLVOL,0);
大单买入:=SUM(大单买,0);
大单卖出:=SUM(大单卖,0);
小单买入:=主动买入-大单买入;
小单卖出:=主动卖出-大单卖出;
大买金:=sum(if(BUYVOL>=dd,BUYVOL,0)*c,0);
大单买均价:=大买金/大单买入;
大卖金:=sum(if(SELLVOL>dd,SELLVOL,0)*c,0);
大单卖均价:=大卖金/大单卖出;
成交笔数:=sum(if(BUYVOL>0,1,0),0)+sum(if(SELLVOL>0,1,0),0);
大单净量:=大单买入-大单卖出;
DRAWTEXTEX(c,1,30,420,'■ 大单净量:'+NUMTOSTR(大单净量,2)),Color00FFFF,LINETHICK2;
//DRAWTEXTEX(c,1,115,100,''+大单净量),Color00FFFF,LINETHICK2;
DRAWTEXTEX(c,1,300,420,' 占'+NUMTOSTR(FLOOR(大单净量/(主动买入+主动卖出)*100),2)+' %'),Color00FFFF,LINETHICK2;
DRAWTEXTEX(c,1,30,100,'■ 大单买入: '+NUMTOSTR(大单买入,2)),Color8000FF,LINETHICK2;
DRAWTEXTEX(c,1,300,100,' 占'+NUMTOSTR(FLOOR(大单买入/(主动买入+主动卖出)*100),2)+'%'),Color8000FF,LINETHICK2;
DRAWTEXTEX(c,1,500,100,'大单买均价: '+NUMTOSTR(大单买均价,2)),Color8000FF,LINETHICK2;
DRAWTEXTEX(c,1,30,260,'■ 大单卖出: '+NUMTOSTR(大单卖出,2)),Color00FF00,LINETHICK2;
DRAWTEXTEX(c,1,300,260,' 占'+NUMTOSTR(FLOOR(大单卖出/(主动买入+主动卖出)*100),2)+' %'),Color00FF00,LINETHICK2;
DRAWTEXTEX(c,1,500,180,'大单卖均价: '+NUMTOSTR(大单卖均价,2)),Color00FF00,LINETHICK2;
DRAWTEXTEX(c,1,30,180,'■ 小单买入: '+NUMTOSTR(小单买入,2)),Color2F73FF,LINETHICK2;
DRAWTEXTEX(c,1,300,180,' 占'+NUMTOSTR(FLOOR(小单买入/(主动买入+主动卖出)*100),2)+' %'),Color2F73FF,LINETHICK2;
DRAWTEXTEX(c,1,30,340,'■ 小单卖出: '+NUMTOSTR(小单卖出,2)),ColorB4B043,LINETHICK2;
DRAWTEXTEX(c,1,300,340,' 占'+NUMTOSTR(FLOOR(小单卖出/(主动买入+主动卖出)*100),2)+' %'),ColorA8A800,LINETHICK2;
DRAWTEXTEX(c,1,500,260,'总成交笔数: '+NUMTOSTR(成交笔数,2)),ColorFFFFFF,LINETHICK2;
DRAWTEXTEX(c,1,500,340,'每笔成交手: '+NUMTOSTR(INTPART((主动买入+主动卖出)/成交笔数),2)),LINETHICK2;
DRAWTEXTEX(c,1,500,420,'■大单标准: '+NUMTOSTR(dd,2)),ColorFFFFFF,LINETHICK2;
总:=DYNAINFO(8);
STICKLINE((总 AND BARSTATUS=2),0,总,200,1),COLORFFFFFF;
STICKLINE((大单买入+大单卖出+小单买入+小单卖出 AND BARSTATUS=2),0,总,200,0),Color8000FF;
STICKLINE((大单卖出+小单买入+小单卖出 AND BARSTATUS=2),0,大单卖出+小单买入+小单卖出,200,0),Color2F73FF;
STICKLINE((小单卖出+大单卖出 AND BARSTATUS=2),0,小单卖出+大单卖出,200,0),Color00FF00;
STICKLINE((小单卖出 AND BARSTATUS=2),0,小单卖出,200,0),ColorB4B043;