当前位置:→ 股海网飞狐公式 → 正文
  • 飞狐资金进出指标公式

  • 相关简介:input:n(5); k1:=IF(CLOSE=REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW); k2:=IF(CLOSE=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE); dt:= VOL *K1/(K1+K2); kt:=VOL-DT; 买量:sum(dt,n),COLOR0000FF; 卖量:-

  • 文章来源:股海网作者:股海网发布时间:2015-07-05浏览次数:下载次数:0

input:n(5);
k1:=IF(CLOSE>=REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW);
k2:=IF(CLOSE<=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);
dt:=VOL*K1/(K1+K2);
kt:=VOL-DT;
买量:sum(dt,n),COLOR0000FF;
卖量:-sum(kt,n),COLORFFFF00;
FILLRGN(买量,0,买量), COLOR7800;
FILLRGN(卖量,0,卖量), COLOR5000;
进出量:买量+卖量,POINTDOT,COLOR00FFFF;
净量换手:100*进出量/CAPITAL,POINTDOT,COLOR00FF33;
STICKLINE(进出量>=0,0,进出量,6,1),COLOR0000FF;
STICKLINE(进出量<0,0,进出量,6,1),COLORFFFF00;
D5:=100*SUM(DT,5)/CAPITAL;
K5:=100*SUM(KT,5)/CAPITAL;
J5:=D5-K5;
D10:=100*SUM(DT,10)/CAPITAL;
K10:=100*SUM(KT,10)/CAPITAL;
J10:=D10-K10;
D20:=100*SUM(DT,20)/CAPITAL;
K20:=100*SUM(KT,20)/CAPITAL;
J20:=D20-K20;
yyzq:=sysparam(3)-sysparam(2);
FILL:=barscount(c)>SYSPARAM(2) and barscount(c)<if(sysparam(3)-sysparam(2)>20,SYSPARAM(2)+INTPART(yyzq/2),20);
pich:=refx(hhv(买量,yyzq),yyzq);
picl:=refx(llv(卖量,yyzq),yyzq);
kg0:=' ';
kg:=' ';
kg1:=' ';
bgh:=refx(pich,yyzq)*0.89;
bgl:=refx(picl,yyzq)*0.89;
jg:=(bgh*0.89-bgl*0.89)/10;
fillrgn(fill,refx(pich,yyzq)*0.9,refx(picl,yyzq)*0.9),colorcc00cc;
fillrgn(ref(fill,1) and refx(fill,1),refx(pich,yyzq)*0.885,refx(picl,yyzq)*0.885),color333333;
BL5:=(bgh-bgl)/2*0.9/MAX(D5,K5);
BL10:=(bgh-bgl)/2*0.9/MAX(D10,K10);
BL20:=(bgh-bgl)/2*0.9/MAX(D20,K20);
D5B:=bgl+D5*BL5;
K5B:=bgl+K5*BL5;
J5B:=bgl+ABS(J5)*BL5;
D10B:=bgl+D10*BL10;
K10B:=bgl+K10*BL10;
J10B:=bgl+ABS(J10)*BL10;
D20B:=bgl+D20*BL20;
K20B:=bgl+K20*BL20;
J20B:=bgl+ABS(J20)*BL20;
zx:=if(sysparam(3)-sysparam(2)>40,yyzq/2,20)/20;
fillrgn(barpos>SYSPARAM(2)+2*zx and barpos<sysparam(2)+3*zx,refx(D5B,yyzq),bgl),color3300aa;
fillrgn(barpos>SYSPARAM(2)+3*zx and barpos<sysparam(2)+4*zx,refx(K5B,yyzq),bgl),color99cc33;
fillrgn(barpos>SYSPARAM(2)+4*zx and barpos<sysparam(2)+5*zx,refx(J5B,yyzq),bgl),color00cccc;
fillrgn(barpos>SYSPARAM(2)+8*zx and barpos<sysparam(2)+9*zx,refx(D10B,yyzq),bgl),color3300aa;
fillrgn(barpos>SYSPARAM(2)+9*zx and barpos<sysparam(2)+10*zx,refx(K10B,yyzq),bgl),color99cc33;
fillrgn(barpos>SYSPARAM(2)+10*zx and barpos<sysparam(2)+11*zx,refx(J10B,yyzq),bgl),color00cccc;
fillrgn(barpos>SYSPARAM(2)+14*zx and barpos<sysparam(2)+15*zx,refx(D20B,yyzq),bgl),color3300aa;
fillrgn(barpos>SYSPARAM(2)+15*zx and barpos<sysparam(2)+16*zx,refx(K20B,yyzq),bgl),color99cc33;
fillrgn(barpos>SYSPARAM(2)+16*zx and barpos<sysparam(2)+17*zx,refx(J20B,yyzq),bgl),color00cccc;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-jg,kg1+'买量'), colorddffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-jg,kg1+kg+'卖量'), colorddffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-jg,kg1+kg+kg+'进出量'), colorddffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-2*jg,kg0+'今日'), colorddffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-2*jg,kg1+NUMTOSTR(100*refx(DT,yyzq)/CAPITAL,2)), color33ffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-2*jg,kg1+kg+NUMTOSTR(100*refx(KT,yyzq)/CAPITAL,2)), color33ffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-2*jg,kg1+kg+kg+NUMTOSTR(100*refx(DT,yyzq)/CAPITAL-100*refx(KT,yyzq)/CAPITAL,2)), color33ffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-3*jg,kg0+' 5日'),colorddffff;

DRAWTEXT(BARPOS=SYSPARAM(2),bgh-3*jg,kg1+NUMTOSTR(refx(D5,yyzq),2)), colorddffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-3*jg,kg1+kg+NUMTOSTR(refx(K5,yyzq),2)), colorddffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-3*jg,kg1+kg+kg+NUMTOSTR(refx(J5,yyzq),2)), colorddffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-4*jg,kg0+'10日'), colorddffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-4*jg,kg1+NUMTOSTR(refx(D10,yyzq),2)), color33ffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-4*jg,kg1+kg+NUMTOSTR(refx(K10,yyzq),2)), color33ffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-4*jg,kg1+kg+kg+NUMTOSTR(refx(J10,yyzq),2)), color33ffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-5*jg,kg0+'20日'), colorddffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-5*jg,kg1+NUMTOSTR(refx(D20,yyzq),2)), colorddffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-5*jg,kg1+kg+NUMTOSTR(refx(K20,yyzq),2)), colorddffff;
DRAWTEXT(BARPOS=SYSPARAM(2),bgh-5*jg,kg1+kg+kg+NUMTOSTR(refx(J20,yyzq),2)), colorddffff;
DRAWTEXT(BARSSINCE(barpos>SYSPARAM(2)+zx)=1,bgl+(bgh*0.89-bgl*0.89)/4,' 5\n日'),align0,COLORwhite;
DRAWTEXT(BARSSINCE(barpos>SYSPARAM(2)+7*zx)=1,bgl+(bgh*0.89-bgl*0.89)/4,'10\n日'),align0,COLORwhite;
DRAWTEXT(BARSSINCE(barpos>SYSPARAM(2)+13*zx)=1,bgl+(bgh*0.89-bgl*0.89)/4,'20\n日'),align0,COLORwhite;

飞狐资金进出指标公式

 ☟问题反馈 ☞┄┄┄┄┄┄┄┄┄┄→收藏资源:

飞狐资金进出指标公式

  • 下载资源所需积分

    0

  • 当前拥有积分

    0

上传会员: 
股海网
文件大小: 
Bytes
上传时间: 
2015-07-05
下载积分: 
-
免责声明: 
请仔细阅读并同意后才能下载
本附件为用户分享上传,股海网没有对文件进行验证,不能保证下载资源的准确性、安全性和完整性,也不保证下载资源能正常安装和使用,且下载后扣除的积分无法退还,除非您充分理解并完全接受本声明,否则您无权下载。
本站对提供下载的软件、指标、资料等不拥有任何权利,其版权归该下载资源的合法拥有者所有。本附件仅供学习和研究使用,不得用于商业或者非法用途,如有侵犯您的版权, 请参看 《股海网侵权处理流程》《股海网免责声明条款》
点击下载无反应时,更换主流浏览器重新登录操作,如360浏览器、Edge浏览器、谷歌浏览器,个别浏览器有不兼容现象。
勾选以下表示您已经阅读并同意以上声明才能下载本文件,扣除积分无法退还!
我已阅读所有条款规定, 请点我同意 所有条款内容!我自愿下载!
提示:如下载失败,请点关闭刷新此页面或提交问题反馈给管理员→
关闭

关于我们 - 联系我们 - 隐私政策 - 免责声明 - 下载帮助 - 广告合作 - SiteMap - TOP
增值电信业务经营ICP许可证:湘B2-20210269 湘ICP备09016573号-10 湘公网安备43108102000040号
Copyright © 2021 铭网科技,All Rights Reserved.