分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]资金图表,主力买卖和主动买卖,含有10天之内的统计数据[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:5.00 KB
官方主页:Home Page
更新时间:2021-09-10 00:15:36
软件简介:

我所说的真正的资金,是指的L2数据,全面是说包括主力买卖和主动买卖,而且含有10天内的统计数据。

为了免去大家使用各种“值”我发源码。
请将这个“资金图表”源码,复制粘贴到自己喜欢的主图最后面就行了。
 
资金图表说明:此资金图表包括了主力买卖和主动买卖;并且,含有10天之内的统计数据。
1.大单动向:DDX;涨跌动因:DDY;大单差分:DDZ;连红:即最近翻红的天数;十红:即近10天内翻红天数;
2.主力买比:主力买额在主力买卖总额中的占比;主力活跃:主力买入和卖出成交量之和与流通盘之比;主力净资:主力净买入资金,单位:万元;
3.主主买比:主力主动买与主力主动买卖之和之比;主力主动十红:主力主动净买近10天红的天数;预测换手:当日随时预测;
4.下面红蓝柱体:是主动买卖资金数据,单位:万元。

 
{资金图表}
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=-L2_AMO(0,3)/10000.0;
大S:=-L2_AMO(1,3)/10000.0;
中S:=-L2_AMO(2,3)/10000.0;
小S:=-L2_AMO(3,3)/10000.0;
净流入:=(超B+大B+中B+小B)+(超S+大S+中S+小S);
中单:=中B+中S;
大宗净流入:=(超B+大B)+(超S+大S);
三日大宗:=SUM(大宗净流入,3);
十日大宗:=SUM(大宗净流入,10);
超大单:=(超B)+(超S);
大单:=(大B)+(大S);
小单:=(小B)+(小S);
大宗进:=(超B)+(大B);
大宗出:=(超S)+(大S);
非大宗进:=(中B)+(小B);
非大宗出:=(中S)+(小S);
近3日流向:=SUM(净流入,3);
近10日流向:=SUM(净流入,10);
主力买力度:=LARGEINTRDVOL*100/VOL;
主力卖力度:=LARGEOUTTRDVOL*100/VOL;
DRAWRECTREL(0,410,264,999.4,IF(120,RGB(10,0,0),0));
{分析家公式网 WWW.70822.com}
AAB:=CONST(MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))*1.5,NODRAW;
DRAWRECTREL(2,CONST(945-(ABS(超大单)*400/AAB)),37,945,IF(CONST(超大单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(39,CONST(945-(ABS(大单)*400/AAB)),74,945,IF(CONST(大单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(76,CONST(945-(ABS(中单)*400/AAB)),111,945,IF(CONST(中单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(113,CONST(945-(ABS(小单)*400/AAB)),148,945,IF(CONST(小单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.002,0.9,0,INTPART(超大单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.038,0.85,0,INTPART(大单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.076,0.9,0,INTPART(中单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.115,0.85,0,INTPART(小单)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.004,1,0,'超大单'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.044,1,0,'大单'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.082,1,0,'中单'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.1160,1,0,'小单'),COLORYELLOW;
 
AAC:=CONST(MAX(ABS(净流入),MAX(ABS(近3日流向),ABS(近10日流向))))*1.5,NODRAW;
DRAWRECTREL(153,CONST(945-(ABS(净流入)*400/AAC)),188,945,IF(CONST(净流入)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(190,CONST(945-(ABS(近3日流向)*400/AAC)),225,945,IF(CONST(近3日流向)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(227,CONST(945-(ABS(近10日流向)*400/AAC)),262,945,IF(CONST(近10日流向)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.152,0.9,0,INTPART(净流入)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.190,0.85,0,INTPART(近3日流向)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.228,0.9,0,INTPART(近10日流向)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.152,1,0,'净流入'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.190,1,0,'三日流'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.228,1,0,'十日流'),COLORYELLOW;
 
DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*100/CAPITAL;
DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);
DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);
DRAWRECTREL(2,415,88,465,IF(CONST(DDX)>0,RGB(175,50,250),RGB(0,100,0)));
DRAWRECTREL(89,415,175,465,IF(CONST(DDY)>0,RGB(175,50,250),RGB(0,100,0)));
DRAWRECTREL(176,415,262,465,IF(CONST(DDZ)>0,RGB(175,50,250),RGB(0,100,0)));
DRAWTEXT_FIX(1,0.004,0.420,0,STRCAT('大单动向:',CON2STR(DDX,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.091,0.420,0,STRCAT('涨跌动因:',CON2STR(DDY,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.178,0.420,0,STRCAT('大单差分:',CON2STR(DDZ,2))),COLORWHITE;
 
DDX连红:=BARSLASTCOUNT(DDX>0);
DDY连红:=BARSLASTCOUNT(DDY>0);
DDZ连红:=BARSLASTCOUNT(DDZ>0);
DRAWTEXT_FIX(1,0.004,0.470,0,STRCAT(STRCAT('连红  ',CON2STR(DDX连红,0)),' [天] ')),COLORWHITE;
DRAWTEXT_FIX(1,0.091,0.470,0,STRCAT(STRCAT('连红  ',CON2STR(DDY连红,0)),' [天] ')),COLORWHITE;
DRAWTEXT_FIX(1,0.178,0.470,0,STRCAT(STRCAT('连红  ',CON2STR(DDZ连红,0)),' [天] ')),COLORWHITE;
 
DDX十红:=COUNT(DDX>0,10);
DDY十红:=COUNT(DDY>0,10);
DDZ十红:=COUNT(DDZ>0,10);
DRAWTEXT_FIX(1,0.004,0.520,0,STRCAT(STRCAT('十红  ',CON2STR(DDX十红,0)),' [天] ')),COLORWHITE;
DRAWTEXT_FIX(1,0.091,0.520,0,STRCAT(STRCAT('十红  ',CON2STR(DDY十红,0)),' [天] ')),COLORWHITE;
DRAWTEXT_FIX(1,0.178,0.520,0,STRCAT(STRCAT('十红  ',CON2STR(DDZ十红,0)),' [天] ')),COLORWHITE;
 
主买量占比:=LARGEINTRDVOL/(LARGEINTRDVOL+LARGEOUTTRDVOL)*100;
TMP:=LARGEINTRDVOL-LARGEOUTTRDVOL;
主力活跃度:=(LARGEINTRDVOL+LARGEOUTTRDVOL)*100/FINANCE(7)*100;
主力净资:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000.0;
DRAWRECTREL(2,570,88,616,IF(CONST(主买量占比)>50,RGB(175,50,250),RGB(0,100,0)));
DRAWRECTREL(89,570,175,616,IF(CONST(TMP)>0,RGB(175,50,250),RGB(0,100,0)));
DRAWRECTREL(176,570,262,616,IF(CONST(主力净资)>0,RGB(175,50,250),RGB(0,100,0)));
DRAWTEXT_FIX(1,0.004,0.575,0,STRCAT('主力买比:',CON2STR(主买量占比,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.091,0.575,0,STRCAT('主力活跃:',CON2STR(主力活跃度,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.178,0.575,0,STRCAT('主力净资:',CON2STR(主力净资,0))),COLORWHITE;
 
主力主动买占比:=(超B+大B)/(超B+大B-超S-大S)*100;
十日飘红:=COUNT(大宗净流入>0,10);
DRAWRECTREL(2,616,88,665,IF(CONST(主力主动买占比)>50,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(89,616,175,665,IF(CONST(十日飘红)>0,RGB(255,0,0),RGB(25,125,255)));
DRAWTEXT_FIX(1,0.004,0.620,0,STRCAT('主主买比:',CON2STR(主力主动买占比,2))),COLORYELLOW;
DRAWTEXT_FIX(1,0.091,0.620,0,STRCAT('主力主动十红:',CON2STR(十日飘红,0))),COLORYELLOW;
 
换手率:=VOL/CAPITAL*100,NODRAW,COLORRED;
AAAA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,换手率*240/FROMOPEN,DRAWNULL);{预测换手率}
DRAWRECTREL(175,616,262,665,IF(CONST(AAAA>=3 AND AAAA<15),RGB(255,0,0),RGB(25,125,255)));
DRAWTEXT_FIX(1,0.178,0.620,0,STRCAT('预测换手:',CON2STR(AAAA,2))),COLORYELLOW;
 
通达信公式

[url=http://www.70822.com/soft/sort013/sort05/down-157981.html]资金图表,主力买卖和主动买卖,含有10天之内的统计数据[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:78.12500 毫秒