资金流量
【飞狐5.0】
input:num(13,1,999),short(3,1,999),long(5,1,999);
zf:=h-l;
cb:=amount/vol/100;
dv1:=if(zf>0 and c>cb, ((h-c)/(h-cb))*((h-c)/(h-cb))*((h-cb)/zf*vol) ,0);
uv1:=if(zf>0 and c>cb, vol-dv1 ,0);
uv2:=if(zf>0 and c<cb, ((c-l)/(cb-l))*((c-l)/(cb-l))*((cb-l)/zf*vol) ,0);
dv2:=if(zf>0 and c<cb, vol-uv2 ,0);
uv3:=if(zf=0 and c>ref(c,1), vol,0);
dv3:=if(zf=0 and c<ref(c,1), vol,0);
uv:=uv1+uv2+uv3;
dv:=dv1+dv2+dv3;
cbx:(uv-dv)/vol,linethick0;
stickline(cbx>0,0,cbx,8,0),color0984ff;
stickline(cbx>0,0,cbx,6,0),color2d96ff;
stickline(cbx>0,0,cbx,4,0),color53a9ff;
stickline(cbx>0,0,cbx,2,0),color80bfff;
stickline(cbx>0,0,cbx,1,0),colora4d1ff;
stickline(cbx<0,0,cbx,8,0),color00f700;
stickline(cbx<0,0,cbx,6,0),color1eff1e;
stickline(cbx<0,0,cbx,4,0),color51ff51;
stickline(cbx<0,0,cbx,2,0),color75ff75;
stickline(cbx<0,0,cbx,1,0),colora4ffa4;
cbx1:ema(sum(cbx,num),2),colormagenta;
cbx2:ema(cbx1,short),coloryellow;
cbx3:ema(cbx1,long),colorff8000;
【大智慧i】
{手动输入参数:num(1,999,13),short(1,999,3),long(1,999,5)}
zf:=h-l;
cb:=amount/vol/100;
dv1:=if(zf>0 and c>cb, ((h-c)/(h-cb))*((h-c)/(h-cb))*((h-cb)/zf*vol) ,0);
uv1:=if(zf>0 and c>cb, vol-dv1 ,0);
uv2:=if(zf>0 and c<cb, ((c-l)/(cb-l))*((c-l)/(cb-l))*((cb-l)/zf*vol) ,0);
dv2:=if(zf>0 and c<cb, vol-uv2 ,0);
uv3:=if(zf=0 and c>ref(c,1), vol,0);
dv3:=if(zf=0 and c<ref(c,1), vol,0);
uv:=uv1+uv2+uv3;
dv:=dv1+dv2+dv3;
cbx:(uv-dv)/vol,colorstick;
stickline(cbx>0,0,cbx,4,0),color0984ff;
stickline(cbx>0,0,cbx,5,0),color2d96ff;
stickline(cbx>0,0,cbx,2,0),color53a9ff;
stickline(cbx>0,0,cbx,1,0),color80bfff;
stickline(cbx>0,0,cbx,0,0),colora4d1ff;
stickline(cbx<0,0,cbx,4,0),color00f700;
stickline(cbx<0,0,cbx,3,0),color1eff1e;
stickline(cbx<0,0,cbx,2,0),color51ff51;
stickline(cbx<0,0,cbx,1,0),color75ff75;
stickline(cbx<0,0,cbx,0,0),colora4ffa4;
cbx1:ema(sum(cbx,num),2),colorred;
cbx2:ema(cbx1,short),coloryellow;
cbx3:ema(cbx1,long),colorff8000;
【大智慧ii】
input:num(13,1,999),short(3,1,999),long(5,1,999);
zf:=h-l;
cb:=amount/vol/100;
dv1:=if(zf>0 and c>cb, ((h-c)/(h-cb))*((h-c)/(h-cb))*((h-cb)/zf*vol) ,0);
uv1:=if(zf>0 and c>cb, vol-dv1 ,0);
uv2:=if(zf>0 and c<cb, ((c-l)/(cb-l))*((c-l)/(cb-l))*((cb-l)/zf*vol) ,0);
dv2:=if(zf>0 and c<cb, vol-uv2 ,0);
uv3:=if(zf=0 and c>ref(c,1), vol,0);
dv3:=if(zf=0 and c<ref(c,1), vol,0);
uv:=uv1+uv2+uv3;
dv:=dv1+dv2+dv3;
cbx:((uv-dv)/vol)/capital*1000000,linethick0;
stickline(cbx>0,0,cbx,8,0),color041cec;
stickline(cbx>0,0,cbx,6,0),color0f26fb;
stickline(cbx>0,0,cbx,4,0),color2439fb;
stickline(cbx>0,0,cbx,2,0),color485afb;
stickline(cbx>0,0,cbx,1,0),color6473fb;
stickline(cbx<0,0,cbx,8,0),colorcd690e;
stickline(cbx<0,0,cbx,6,0),coloref7b12;
stickline(cbx<0,0,cbx,4,0),colorf08728;
stickline(cbx<0,0,cbx,2,0),colorf29540;
stickline(cbx<0,0,cbx,1,0),colorf5a963;
cbx1:ema(sum(cbx,num),2),colormagenta;
cbx2:ema(cbx1,short),coloryellow;
cbx3:ema(cbx1,long),colorgreen;
【通达信】
{手动输入参数:num(1,999,13),short(1,999,3),long(1,999,5)}
zf:=h-l;
cb:=amount/vol/100;
dv1:=if(zf>0 and c>cb, ((h-c)/(h-cb))*((h-c)/(h-cb))*((h-cb)/zf*vol) ,0);
uv1:=if(zf>0 and c>cb, vol-dv1 ,0);
uv2:=if(zf>0 and c<cb, ((c-l)/(cb-l))*((c-l)/(cb-l))*((cb-l)/zf*vol) ,0);
dv2:=if(zf>0 and c<cb, vol-uv2 ,0);
uv3:=if(zf=0 and c>ref(c,1), vol,0);
dv3:=if(zf=0 and c<ref(c,1), vol,0);
uv:=uv1+uv2+uv3;
dv:=dv1+dv2+dv3;
cbx:((uv-dv)/vol)/capital*1000000,linethick0;
stickline(cbx>0,0,cbx,3,0),color041cec;
stickline(cbx>0,0,cbx,3,0),color0f26fb;
stickline(cbx>0,0,cbx,2,0),color2439fb;
stickline(cbx>0,0,cbx,1,0),color485afb;
stickline(cbx>0,0,cbx,0,0),color6473fb;
stickline(cbx<0,0,cbx,3,0),colorcd690e;
stickline(cbx<0,0,cbx,3,0),coloref7b12;
stickline(cbx<0,0,cbx,2,0),colorf08728;
stickline(cbx<0,0,cbx,1,0),colorf29540;
stickline(cbx<0,0,cbx,0,0),colorf5a963;
cbx1:ema(sum(cbx,num),2),colormagenta;
cbx2:ema(cbx1,short),coloryellow;
cbx3:ema(cbx1,long),colorgreen;
上一指标公式:荷蒲能量公式详解 通达信能量
下一指标公式:做红弃绿副公式详解 通达信做红弃绿
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文资金流量公式详解 通达信流量仅供学习研究。