操盘手主力版主要指标官方源码
操盘资金源码:
zj:=(bigorder(1,3)-bigorder(2,3))*amount/100000000;
lj:=sum(zj,0);
tj:=cpmoney;
操盘资金:if(tj<>0,INTPART(zj*10+sgn(zj)*0.5)/10,0),linethick0,PRECIS1;
stickline(tj>0 and zj>=0,lj,lj-zj,8,1),colorred;
stickline(tj>0 and zj<0,lj,lj-zj,8,0),colorcyan;
stickline(tj>0 and zj<0,lj,lj-zj,8,1),colorred;
stickline(tj<0 and zj>=0,lj,lj-zj,8,1),colorcyan;
stickline(tj<0 and zj<0,lj,lj-zj,8,0),colorcyan;
drawText(cross(tj,0),lj-zj-40,I),coloryellow;
drawText(cross(0,tj),lj-zj+40,O),colorgreen;
超级资金
超户:(BIGORDER(1,3)-BIGORDER(2,3))*vol/CAPITAL,color3d;
{ tD:=BARSCOUNT(超户); }
tD:=COUNT(BIGORDER(1,0),0);
myD:=min(tD,60);
累计:ema(超户,myD)*myD,COLORMAGENTA;
均值:ema(累计,min(10,td)),colorWhite;
0,color333333,PRECIS0,layer7;
大户资金
大户:(BIGORDER(1,2)-BIGORDER(2,2)-BIGORDER(1,3)+BIGORDER(2,3))*vol/CAPITAL,color3d;
{tD:=BARSCOUNT(大户);}
tD:=COUNT(BIGORDER(1,0),0);
myD:=if(tD<60,tD,60);
累计:ema(大户,myD)*myD,COLORYELLOW,layer3;
均值:ema(累计,min(10,td)),colorWhite;
0,color333333,PRECIS0,layer7;
中户资金
中户:(BIGORDER(1,1)-BIGORDER(2,1)-BIGORDER(1,2)+BIGORDER(2,2))*vol/CAPITAL,color3d;
{tD:=BARSCOUNT(中户);}
tD:=COUNT(BIGORDER(1,0),0);
myD:=if(tD<60,tD,60);
累计:ema(中户,myD)*myD,COLORCYAN,layer3;
均值:ema(累计,min(10,td)),colorWhite;
0,color333333,PRECIS0,layer7;
资金流变
小框:N(0,500,5);
大框:
资金净流:(orderamt(1,2)-orderamt(2,2))/100000000,PRECIS4,colorstick,colorwhite;
累计净流:ma(资金净流,n)*n,colorYELLOW,PRECIS4,LAYER1;
0,COLORBLACK;
stickline(资金净流>0,资金净流,0,7,0),color00006F;
stickline(资金净流<0,资金净流,0,7,0),color006F00;
stickline(资金净流>0,资金净流/8*7,0,7,0),color00009F;
stickline(资金净流<0,资金净流/8*7,0,7,0),color009F00;
stickline(资金净流>0,资金净流/4*3,0,7,0),color0000CF;
stickline(资金净流<0,资金净流/4*3,0,7,0),color00CF00;
stickline(资金净流>0,资金净流/2,0,7,0),color0000Ff;
stickline(资金净流<0,资金净流/2,0,7,0),color00Ff00;
stickline(资金净流>0,资金净流,资金净流,7,0),color0000FF;
stickline(资金净流<0,资金净流,资金净流,7,0),color00FF00;
资金净流
资金净流:sum(zjjl,0)/100000000,linethick2,colorcyan,PRECIS4;
{stickline(1,0,0,0,0),colorgray,layer7;}
stickline(1,-资金净流,-资金净流,0,0),linethick0,layer7;
本文仅仅提供源码