資金博弈官方源碼:
jgV:=(BIGORDER(1,3)-BIGORDER(2,3))*vol; dhV:=(BIGORDER(1,2)-BIGORDER(2,2)-BIGORDER(1,3)+BIGORDER(2,3))*vol; zhV:=(BIGORDER(1,1)-BIGORDER(2,1)-BIGORDER(1,2)+BIGORDER(2,2))*vol; shV:=(BIGORDER(2,1)-BIGORDER(1,1))*vol; tD:=COUNT(BIGORDER(1,0),0); myD:=min(tD,60); 超級資金:ema(jgV,myD)*myD/capital,COLORMAGENTA; 大戶資金:ema(dhV,myD)*myD/capital,color3399FF ; 中戶資金:ema(zhV,myD)*myD/capital,colorcyan; 散戶資金:ema(shV,myD)*myD/capital,colorgreen; 0,color333333,PRECIS0,layer7; 分時(shí)資金博弈官方源碼:(分時(shí)公式) sh:=(1-ORDERVOL(1,1))/capital*10000-(1-ORDERVOL(2,1))/capital*10000; 散戶資金:Sum(sh,0)colorgreen; zh:=(ORDERVOL(1,1)/capital*10000-ORDERVOL(1,2)/capital*10000)-(ORDERVOL(2,1)/capital*10000-ORDERVOL(2,2)/capital*10000); 中戶資金:Sum(zh,0)colorcyan; dh:=(ORDERVOL(1,2)/capital*10000-ORDERVOL(1,3)/capital*10000)-(ORDERVOL(2,2)-ORDERVOL(2,3))/capital*10000; 大戶資金:Sum(dh,0)color3399FF; jg:=(ORDERVOL(1,3)-ORDERVOL(2,3))/capital*10000; 超級資金:Sum(jg,0)COLORMAGENTA; 資金凈流官方源碼:(分時(shí)公式) N(0,999,0,1); a:=(ORDERAMT(1,2)-ORDERAMT(2,2)); 累計(jì):SUM(a,N)/100000000; 資金流變官方源碼: N1(0,999,1,1); P1(0,999,5,1); P2(0,999,30,1); a:=(ORDERAMT(1,2)-ORDERAMT(2,2)); b:=SUM(a,N1)/100000000; STICKLINE(b>0,0,b,6,0 ),COLOR0022FF; STICKLINE(b>0,0,b,4,0 ),COLORBB22CC; STICKLINE(b<0,0,b,6,0 ),COLORFFFF00; STICKLINE(b<0,0,b,4,0 ),COLOR00FFFF; 當(dāng)日:b,stick,precis4; 5日:MA(b,P1),precis4; 30日:MA(b,P2),precis4; 抄盤線(因?yàn)槔锩娴腃PX函數(shù)暫時(shí)沒人破解所以只能在抄盤手里用) Var1:=1061231; Var2:=if(date<=Var1,1,100); MA1 : MA(CLOSE,P1); MA2 : MA(CLOSE,P2); MA3 : MA(CLOSE,P3); MA4 : MA(CLOSE,P4); STICKLINE(c>=o,o,c,8,1),color3333FF; STICKLINE(c<o,c,o,8,0),colorblue; STICKLINE(c>=o,c,h,1,0),color3333FF; STICKLINE(c>=o,o,l,1,0),color3333FF; STICKLINE(c<o,o,h,1,0),colorblue; STICKLINE(c<o,l,c,1,0),colorblue; DRAWTEXT(CROSS(cpx,0) ,l*0.99 , B),coloryellow; DRAWTEXT(CROSS(0,cpx) ,h*1.01 , S),colorgreen; STICKLINE(CROSS(CPX,0) AND C>MA(C,40) ,O ,C ,8 ,0 ),COLORRED; STICKLINE(CPX>0 AND C>MA(C,40) AND C<O ,O ,C ,8 ,0 ),COLORblue; STICKLINE(CPX>0 AND C>MA(C,40) AND C<O ,O ,C ,8 ,1 ),COLORRED; STICKLINE(CPX>0 AND C>MA(C,40) AND C<O ,O ,H ,1 ,0 ),COLORRED; STICKLINE(CPX>0 AND C>MA(C,40) AND C<O ,L ,C ,1 ,0 ),COLORRED; STICKLINE(CROSS(CPX,0) AND C<MA(C,40) ,O ,C ,8 ,1 ),COLORWHITE; STICKLINE(c>=o AND CPX>0 AND C<MA(C,40),c,h,1,0),COLORWHITE; STICKLINE(c>=o AND CPX>0 AND C<MA(C,40),o,l,1,0),COLORWHITE; STICKLINE(CPX>0 AND C<MA(C,40) AND C<O ,O ,C ,8 ,0 ),COLORblue; STICKLINE(CPX>0 AND C<MA(C,40) AND C>O ,O ,C ,8 ,1 ),COLORWHITE; STICKLINE(CPX>0 AND C<MA(C,40) AND C<O ,O ,C ,8 ,1 ),COLORWHITE; STICKLINE(CPX>0 AND C<MA(C,40) AND C<O ,O ,H ,1 ,1 ),COLORWHITE; STICKLINE(CPX>0 AND C<MA(C,40) AND C<O ,L ,C ,1 ,1),COLORWHITE; STICKLINE(CROSS(1,CPX) AND C>MA(C,40) ,O ,C ,8 ,0 ),COLOryellow; STICKLINE(CPX<1 AND C>MA(C,40) AND C<O ,O ,C ,8 ,0 ),COLORblue; STICKLINE(CPX<1 AND C>MA(C,40) AND C<O ,O ,C ,8 ,1 ),COLORyellow; STICKLINE(CPX<1 AND C>MA(C,40) AND C<O ,O ,H ,1 ,0 ),COLORYELLOW; STICKLINE(CPX<1 AND C>MA(C,40) AND C<O ,L ,C ,1 ,0 ),COLORYELLOW; STICKLINE(CPX<1 AND C>MA(C,40) AND C>O ,O ,C ,8 ,1 ),COLORYELLOW; STICKLINE(CPX<1 AND C>MA(C,40) AND C>O ,C ,H ,1 ,0 ),COLORYELLOW; STICKLINE(CPX<1 AND C>MA(C,40) AND C>O ,L ,O ,1 ,0),COLORYELLOW; STICKLINE(CPX<1 AND C>MA(C,40) AND C=O ,O ,C ,8 ,1 ),COLORYELLOW; STICKLINE(CPX<1 AND C>MA(C,40) AND C=O ,C ,H ,1 ,0 ),COLORYELLOW; STICKLINE(CPX<1 AND C>MA(C,40) AND C=O ,L ,O ,1 ,0),COLORYELLOW; STICKLINE(CPX<1 AND C<MA(C,40) AND C>O ,O ,C ,8 ,1),COLORblue; STICKLINE(CPX<1 AND C<MA(C,40) AND C>O ,C ,H ,1 ,0),COLORblue; STICKLINE(CPX<1 AND C<MA(C,40) AND C>O ,L ,O ,1 ,0),COLORblue; STICKLINE(CPX<1 AND C<MA(C,40) AND C=O ,O ,C ,8 ,1),COLORblue; STICKLINE(CPX<1 AND C<MA(C,40) AND C=O ,C ,H ,1 ,0),COLORblue; STICKLINE(CPX<1 AND C<MA(C,40) AND C=O ,L ,O ,1 ,0),COLORblue; |
|