【成明作品】第五版【多空趋势】(源码+贴图)

2011-02-19 11:05:00来源:本站整理浏览:92

委买:=allbidvol;
委卖:=allaskvol;
正委比:=委买/委卖;
负委比:=0-委卖/委买;
委托比:if(委买>委卖,正委比,负委比),colorff22ff,linethick0;
委净:=委买-委卖;
fillrgn(0,委净,委净>0,rgb(255,0,0),委净<0,rgb(0,100,0)),precis0;
{多空比}
逐笔买:=sum(transactvol(1,0),0);
逐笔卖:=sum(transactvol(2,0),0);
多比:=逐笔买/逐笔卖;
空比:=0-逐笔卖/逐笔买;
多空比:IF(逐笔买>逐笔卖,多比,空比),colorffffff,linethick0;
{大单比}
大单买:=sum(ordervol(1,2),0);
大单卖:=sum(ordervol(2,2),0);
大单比:((大单买-大单卖)+0.001)/capital*100,color3333ff,linethick0;
{散单比}
散单买:=sum(ordervol(1,0),0)-sum(ordervol(1,1),0);
散单卖:=sum(ordervol(2,0),0)-sum(ordervol(2,1),0);
散单比:((散单买-散单卖)+0.001)/capital*100,colorgreen,linethick0;
{逐笔逐单线}
逐单:=大单买-大单卖;
POLYLINE(C,逐单),colorff00ff,linethick2;
drawtext( barstatus=2,逐单 ,' 逐单' ),colorff00ff;
逐笔:=逐笔买-逐笔卖;
POLYLINE(C,逐笔),colorffccff,linethick2;
drawtext( barstatus=2,逐笔 ,' 逐笔' ),colorffccff;
{逐笔多空资金}
逐笔买额:=sum(transactvol(1,0)*C/100,0);
逐笔卖额:=sum(transactvol(2,0)*C/100,0);
逐笔净额:=逐笔买额-逐笔卖额;
drawtextrel(135,10,'逐笔多空资金:'+NUMTOSTRN(逐笔净额,0)+'万元'),colorffff54;
{逐单主力资金}
大单买额:=sum(ordervol(1,2)*C/100,0);
大单卖额:=sum(ordervol(2,2)*C/100,0);
大单净额:=大单买额-大单卖额;
drawtextrel(285,10,'逐单主力资金:'+NUMTOSTRN(大单净额,0)+'万元'),colorffff54;
drawtextrel(0,10,'仿【成明作品】第五版'),color00ffff;

 

股票公式栏目导航

本类热门

相关公式