通达信新资金进出指标公式

 

N:=3;
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;
DRAWBAND(买量,RGB(0,120,0),0,DRAWNULL);
DRAWBAND(0,RGB(0,80,0),卖量,DRAWNULL);
进出量:买量+卖量,POINTDOT,COLOR00FFFF;
{ _通达信指标公式}
净量换手:100*进出量/CAPITAL,POINTDOT,COLOR00FF33;
STICKLINE(进出量>=0,0,进出量,3,1),COLOR0000FF;
STICKLINE(进出量<0,0,进出量,3,1),COLORFFFF00;
D3:=100*SUM(DT,3)/CAPITAL;
K3:=100*SUM(KT,3)/CAPITAL;
J3:=D3-K3;
D6:=100*SUM(DT,6)/CAPITAL;
K6:=100*SUM(KT,6)/CAPITAL;
J6:=D6-K6;
D9:=100*SUM(DT,9)/CAPITAL;
K9:=100*SUM(KT,9)/CAPITAL;
J9:=D9-K9;
DAZHI:=CONST(MAX(Abs(D3),MAX(ABS(K3),MAX(ABS(J3),MAX(ABS(D6),MAX(ABS(K6),MAX(ABS(J6),MAX(ABS(D9),MAX(ABS(K9),ABS(J9)))))))))),NODRAW;
DRAwrECTREL(0,0,230,999.4,IF(120,RGB(100,100,100),0));
{3日画直方图}
DRAWRECTREL(38,CONST(830-(ABS(D3)*500/DAZHI)),51,935,IF(CONST(D3)>0,RGB(150,0,0),RGB(150,0,0)));
DRAWRECTREL(53,CONST(830-(ABS(K3)*500/DAZHI)),65,935,IF(CONST(K3)>0,RGB(0,150,150),RGB(0,150,150)));
DRAWRECTREL(68,CONST(830-(ABS(J3)*500/DAZHI)),80,935,IF(CONST(J3)>0,RGB(150,150,0),RGB(150,150,0)));
{6日画直方图}
DRAWRECTREL(100,CONST(830-(ABS(D6)*500/DAZHI)),112,935,IF(CONST(D6)>0,RGB(150,0,0),RGB(150,0,0)));
DRAWRECTREL(114,CONST(830-(ABS(K6)*500/DAZHI)),126,935,IF(CONST(K6)>0,RGB(0,150,150),RGB(0,150,150)));
DRAWRECTREL(128,CONST(830-(ABS(J6)*500/DAZHI)),140,935,IF(CONST(J6)>0,RGB(150,150,0),RGB(150,150,0)));
{9日画直方图}
DRAWRECTREL(160,CONST(830-(ABS(D9)*500/DAZHI)),172,935,IF(CONST(D9)>0,RGB(150,0,0),RGB(150,0,0)));
DRAWRECTREL(174,CONST(830-(ABS(K9)*500/DAZHI)),186,935,IF(CONST(K9)>0,RGB(0,150,150),RGB(0,150,150)));
DRAWRECTREL(188,CONST(830-(ABS(J9)*500/DAZHI)),200,935,IF(CONST(J9)>0,RGB(150,150,0),RGB(150,150,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.01,0,'资金进出统计'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.15,0,'名称'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.042,0.15,0,'买量'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.098,0.15,0,'卖量'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.160,0.15,0,'进出量'),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.30,0,'今日'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.30,0,CONST(100*DT/CAPITAL)),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.098,0.30,0,CONST(100*KT/CAPITAL)),COLORGREEN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.160,0.30,0,CONST(100*DT/CAPITAL-100*KT/CAPITAL)),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.48,0,' 3日'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.48,0,CONST(D3)),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.098,0.48,0,CONST(K3)),COLORGREEN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.160,0.48,0,CONST(J3)),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.68,0,' 6日'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.68,0,CONST(D6)),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.098,0.68,0,CONST(K6)),COLORGREEN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.160,0.68,0,CONST(J6)),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.98,0,' 9日'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.98,0,CONST(D9)),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.098,0.98,0,CONST(K9)),COLORGREEN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.160,0.98,0,CONST(J9)),COLORCYAN;




来函数检测结果如下
该公式包含未来函数:CAPITAL

解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

N赋值:3
K1赋值:如果收盘价>=1日前的收盘价,返回最高价-开盘价+收盘价-最低价+收盘价-1日前的收盘价,否则返回最高价-开盘价+收盘价-最低价
K2赋值:如果收盘价<=1日前的收盘价,返回开盘价-最低价+最高价-收盘价+1日前的收盘价-收盘价,否则返回开盘价-最低价+最高价-收盘价
DT赋值:成交量(手)*K1/(K1+K2)
KT赋值:(成交量(手)-DT)
输出买量:DT的N日累和,COLOR0000FF
输出卖量:-KT的N日累和,COLORFFFF00
画带状线
画带状线
输出进出量:买量+卖量,POINTDOT,COLOR00FFFF
输出净量换手:100*进出量/当前流通股本(手),POINTDOT,COLOR00FF33
当满足条件进出量>=0时,在0和进出量位置之间画柱状线,宽度为3,1不为0则画空心柱.,COLOR0000FF
当满足条件进出量<0时,在0和进出量位置之间画柱状线,宽度为3,1不为0则画空心柱.,COLORFFFF00
D3赋值:100*DT的3日累和/当前流通股本(手)
K3赋值:100*KT的3日累和/当前流通股本(手)
J3赋值:D3-K3
D6赋值:100*DT的6日累和/当前流通股本(手)
K6赋值:100*KT的6日累和/当前流通股本(手)
J6赋值:D6-K6
D9赋值:100*DT的9日累和/当前流通股本(手)
K9赋值:100*KT的9日累和/当前流通股本(手)
J9赋值:D9-K9
DAZHI赋值:D3的绝对值和K3的绝对值和J3的绝对值和D6的绝对值和K6的绝对值和J6的绝对值和D9的绝对值和K9的绝对值和J9的绝对值的较大值的较大值的较大值的较大值的较大值的较大值的较大值的较大值的最后一日取值设为常数,NODRAW
相对位置上画矩形
相对位置上画矩形
相对位置上画矩形
相对位置上画矩形
相对位置上画矩形
相对位置上画矩形
相对位置上画矩形
相对位置上画矩形
相对位置上画矩形
相对位置上画矩形
当满足条件到最后交易的周期=1时,在横轴0.05纵轴0.01位置书写文字,画黄色
当满足条件到最后交易的周期=1时,在横轴0.002纵轴0.15位置书写文字,画白色
当满足条件到最后交易的周期=1时,在横轴0.042纵轴0.15位置书写文字,画红色
当满足条件到最后交易的周期=1时,在横轴0.098纵轴0.15位置书写文字,画绿色
当满足条件到最后交易的周期=1时,在横轴0.160纵轴0.15位置书写文字,画青色
当满足条件到最后交易的周期=1时,在横轴0.002纵轴0.30位置书写文字,画黄色
当满足条件到最后交易的周期=1时,在横轴0.042纵轴0.30位置书写数字,画红色
当满足条件到最后交易的周期=1时,在横轴0.098纵轴0.30位置书写数字,画绿色
当满足条件到最后交易的周期=1时,在横轴0.160纵轴0.30位置书写数字,画青色
当满足条件到最后交易的周期=1时,在横轴0.002纵轴0.48位置书写文字,画黄色
当满足条件到最后交易的周期=1时,在横轴0.042纵轴0.48位置书写数字,画红色
当满足条件到最后交易的周期=1时,在横轴0.098纵轴0.48位置书写数字,画绿色
当满足条件到最后交易的周期=1时,在横轴0.160纵轴0.48位置书写数字,画青色
当满足条件到最后交易的周期=1时,在横轴0.002纵轴0.68位置书写文字,画黄色
当满足条件到最后交易的周期=1时,在横轴0.042纵轴0.68位置书写数字,画红色
当满足条件到最后交易的周期=1时,在横轴0.098纵轴0.68位置书写数字,画绿色
当满足条件到最后交易的周期=1时,在横轴0.160纵轴0.68位置书写数字,画青色
当满足条件到最后交易的周期=1时,在横轴0.002纵轴0.98位置书写文字,画黄色
当满足条件到最后交易的周期=1时,在横轴0.042纵轴0.98位置书写数字,画红色
当满足条件到最后交易的周期=1时,在横轴0.098纵轴0.98位置书写数字,画绿色
当满足条件到最后交易的周期=1时,在横轴0.160纵轴0.98位置书写数字,画青色

指标安装下载帮助  |   联系我们  |  乐淘公式网  |  公式网   |  指标公式  |   加入收藏   |  设为主页

@2005-2025 浙ICP备2024071487号-1 乐淘公式网公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:乐淘公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图