股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 不用收费DDX,也能看资金流(源码、副图、贴图)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-21 17:22:41
不用收费DDX,也能看资金流(源码、副图、贴图)介绍

不用收费DDX,也能看资金流(源码、副图、贴图)

以下是指标源码:
{日K龙虎榜大单及资金统计}
小单买入:=EXTDATA(1);
小单卖出:=EXTDATA(2);
大单买入:=EXTDATA(3);
大单卖出:=EXTDATA(4);
笔均成交手:=EXTDATA(5);
主动买卖:=EXTDATA(6);
买入金额:=EXTDATA(7);
卖出金额:=EXTDATA(12);
总成交金额:=买入金额+卖出金额;
增量资金:=买入金额-卖出金额;
大单净量:=大单买入-大单卖出;
散户跟风:=(小单买入-小单卖出)*c/100;
主力存量:SUM(大单净量*close/100,0),Colorwhite,LINETHICK3;
STICKLINE(增量资金>0,0,增量资金,10,0),Colorred;
STICKLINE(增量资金<0,0,增量资金,10,0),Colorgreen;
STICKLINE(大单净量*close/100>0,0,大单净量*close/100,7,0),Coloryellow;
STICKLINE(大单净量*close/100<0,0,大单净量*close/100,7,0),Colorblue;
STICKLINE(散户跟风>0,0,散户跟风,4,0),Colormagenta;
STICKLINE(散户跟风<0,0,散户跟风,4,0),Colorwhite;
ma(主力存量,10),colorcyan,linethick2;
FILLRGN(0,主力存量,主力存量>=0,RGB(255,125,0),主力存量<0,RGB(0,125,225));
ma(主力存量,10),colorcyan,linethick2;
DRAWRECTABS(0,0,340,130,RGB(100,100,100));
DRAWTEXTABS(20,5,STKLABEL),LINETHICK3,ColorFF00FF;{代码}
DRAWTEXTABS(80,5,STKNAME),LINETHICK3,ColorFF00FF;{名称}
DRAWTEXTABS(10,30,'■ 大单买入: '+大单买入),Color00ffff,LINETHICK1;
DRAWTEXTABS(130,30,'占'+FLOOR(大单买入/主动买卖*100)+' %'),Color00ffff,LINETHICK1;

DRAWTEXTABS(10,45,'■ 小单买入: '+小单买入),Color2F73FF,LINETHICK1;
DRAWTEXTABS(130,45,'占'+FLOOR(小单买入/主动买卖*100)+' %'),Color2F73FF,LINETHICK1;

DRAWTEXTABS(10,60,'■ 大单卖出: '+大单卖出),Color00FF00,LINETHICK1;
DRAWTEXTABS(130,60,'占'+FLOOR(大单卖出/主动买卖*100)+' %'),Color00FF00,LINETHICK1;

DRAWTEXTABS(10,75,'■ 小单卖出: '+小单卖出),ColorB4B043,LINETHICK1;
DRAWTEXTABS(130,75,'占'+FLOOR(小单卖出/主动买卖*100)+' %'),ColorA8A800,LINETHICK1;

DRAWTEXTABS(10,90,'■ 大单净量: '+大单净量),Colorff00ff,LINETHICK1;
DRAWTEXTABS(130,90,'占'+FLOOR(大单净量/主动买卖*100)+' %'),ColorFF00FF,LINETHICK1;

DRAWTEXTABS(10,105,'■ 笔均成交: '+笔均成交手+' 手'),Color00ffff,LINETHICK1;

DRAWTEXTABS(175,105,'■成交总额:'+总成交金额+' 万元'),LINETHICK1,COLOR00ffff;

DRAWTEXTABS(175,3,'■买入:'+买入金额),LINETHICK1,COLORred;
DRAWTEXTABS(175,15,'■卖出:'+卖出金额),LINETHICK1,COLORgreen;
DRAWTEXTABS(175,30,'■增量资金:'+增量资金),LINETHICK1,COLOR00ffff;
DRAWTEXTABS(300,30,'占'+FLOOR(增量资金/总成交金额*100)+'%'),COLOR00ffff,LINETHICK1;

DRAWRECTABS(0,0,170,28,0),COLORwhite;
DRAWRECTABS(170,0,340,28,0),COLORwhite;
DRAWRECTABS(0,28,170,120,0),COLORwhite;
DRAWRECTABS(170,28,340,120,0),COLORwhite;
DRAWRECTABS(0,103,340,120,0),COLORwhite;
DRAWRECTABS(0,120,340,140,0),COLORwhite;
总:=DYNAINFO(8);{-----------------------------------------大单直观比例-------------------------------------------------------------}

DRAWRECTABS(0,120,大单买入*340/总,140,RGB(255,255,0));
DRAWRECTABS(大单买入*340/总,120,(大单买入+小单买入)*340/总,140,RGB(255,125,0));
DRAWRECTABS((大单买入+小单买入)*340/总,120,(大单买入+小单买入+大单卖出)*340/总,140,RGB(0,200,0));
DRAWRECTABS((大单买入+小单买入+大单卖出)*340/总,120,(大单买入+小单买入+大单卖出+小单卖出)*340/总,140,RGB(0,125,225));


{---------------------------------------------------资金流量&控盘力度--------------------------------------------------------------};
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2));
HSL:=(XVL/20)/1.15;
攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击流量,3);
资金流量:=LLJX;
周流量:=SUM(LLJX,5);
流入力度:=HSL/1000;
控盘力度:=INTPART(ZZLKP);
DRAWTEXTABS(175,45,'■资金流量:'+资金流量),LINETHICK1,COLORff00ff;
DRAWTEXTABS(175,60,'■周流总量:'+周流量),LINETHICK1,COLORff00ff;
DRAWTEXTABS(175,75,'■流入力度:'+流入力度),LINETHICK1,COLORff00ff;
 


 




 



gd14372

回复

举报

QQ|

GMT+8, 2024-11-18 04:41

快速回复 返回顶部 返回列表