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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 净量超赢 主动超赢 资金超赢


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-22 17:22:36
净量超赢 主动超赢 资金超赢介绍

净量超赢 主动超赢 资金超赢

净量超赢
input:N日(20,1,100);
TODAY:="ddx.ddx"=0;{判断是否有正版数据}
主单买:=IF(TODAY,"DDEDATA@BIGORDER"(1,2),bigorder(1,2))*VOL/100;
主单卖:=IF(TODAY,"DDEDATA@BIGORDER"(2,2),bigorder(2,2))*VOL/100;
特单买:=IF(TODAY,"DDEDATA@BIGORDER"(1,3),bigorder(1,3))*VOL/100;
特单卖:=IF(TODAY,"DDEDATA@BIGORDER"(2,3),bigorder(2,3))*VOL/100;
大单买:=IF(TODAY,"DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(1,3),bigorder(1,2)-bigorder(1,3))*VOL/100;
大单卖:=IF(TODAY,"DDEDATA@BIGORDER"(2,2)-"DDEDATA@BIGORDER"(2,3),bigorder(2,2)-bigorder(2,3))*VOL/100;
中单买:=IF(TODAY,"DDEDATA@BIGORDER"(1,1)-"DDEDATA@BIGORDER"(1,2),bigorder(1,1)-bigorder(1,2))*VOL/100;
中单卖:=IF(TODAY,"DDEDATA@BIGORDER"(2,1)-"DDEDATA@BIGORDER"(2,2),bigorder(2,1)-bigorder(2,2))*VOL/100;
散单买:=IF(TODAY,1-"DDEDATA@BIGORDER"(1,1),1-bigorder(1,1))*VOL/100;
散单卖:=IF(TODAY,1-"DDEDATA@BIGORDER"(2,1),1-bigorder(2,1))*VOL/100;
主净:=主单买-主单卖;
特净:=特单买-特单卖;
大净:=大单买-大单卖;
中净:=中单买-中单卖;
散净:=散单买-散单卖;
主力5日净量:sum(主净, 5),color3d;
超大净量:sum(特净, N日),PRECIS2,COLOR0000FF,LINETHICK2;
大户净量:sum(大净, N日),PRECIS2,COLOR00FFff,LINETHICK2;
中户净量:sum(中净, N日),PRECIS2,COLORffFFFF,LINETHICK1;
散户净量:sum(散净, N日),PRECIS2,COLOR00FF00,LINETHICK1;
DRAWFLAGTEXT(c>0,超大净量,'超大净量L='+10000*超大净量/CAPITAL+' N日'+N日),COLOR0000FF;
DRAWFLAGTEXT(c>0,大户净量,'大户净量L'+10000*大户净量/CAPITAL),COLOR00ffFF;
DRAWFLAGTEXT(c>0,中户净量,'中户净量L'+10000*中户净量/CAPITAL),COLORFFFFFF;
DRAWFLAGTEXT(c>0,散户净量,'散户净量L'+10000*散户净量/CAPITAL),COLOR00ff00;
0,color333333,PRECIS0,layer7;
DRAWTEXTREL(0,30,' 单 仓 =万股 A=特单 B=大单 C=中单 D=小单 O=所有 仓=买入-卖出 L= */总成交量 '),COLORffffff;
主卖特大:=SELFDATA('主卖特大')/100;
主买特大:=SELFDATA('主买特大')/100;
主买大单:=SELFDATA('主买大单')/100;
主卖大单:=SELFDATA('主卖大单')/100;
主买中单:=SELFDATA('主买中单')/100;
主卖中单:=SELFDATA('主卖中单')/100;
主买小单:=SELFDATA('主买小单')/100;
主卖小单:=SELFDATA('主卖小单')/100;
A主动:=主买特大-主卖特大;
B主动:=主买大单-主卖大单;
C主动:=主买中单-主卖中单;
D主动:=主买小单-主卖小单;
{
ABCD主动:SUM(A主动+B主动+C主动+D主动,0),PRECIS0,COLORFFFFFF,LINETHICK0;
ABCD主动L:=10000*ABCD主动/CAPITAL;}
{DRAWFLAGTEXT(c>0,ABCD主动,'ABCD主动L='+ABCD主动L),PRECIS0,COLORFFFFFF;};
DRAWTEXT( BARSTATUS=2,超大净量 ,'超大净量' ),linethick2,ColorFF55FF;
DRAWTEXT( BARSTATUS=2,大户净量 ,'大户净量' ),linethick2,ColorFFFF55;
DRAWTEXT( BARSTATUS=2,中户净量 ,'中户净量' ),linethick2,Color5555FF;
DRAWTEXT( BARSTATUS=2,散户净量 ,'散户净量' ),linethick2,Color55FF55;
-------------------------------------------------
主动超赢
input:N日(20,1,100);
DRAWTEXTREL(0,30,' 单 仓 =万股 A=特单 B=大单 C=中单 D=小单 O=所有 仓=买入-卖出 L= */总成交量 '),COLORffffff;
主卖特大:=SELFDATA('主卖特大')/100;
主买特大:=SELFDATA('主买特大')/100;
主买大单:=SELFDATA('主买大单')/100;
主卖大单:=SELFDATA('主卖大单')/100;
主买中单:=SELFDATA('主买中单')/100;
主卖中单:=SELFDATA('主卖中单')/100;
主买小单:=SELFDATA('主买小单')/100;
主卖小单:=SELFDATA('主卖小单')/100;
特净:=主买特大-主卖特大;
大净:=主买大单-主卖大单;
主净:=特净+大净;
AB5日净:sum(主净, 5),color3d;
A主动:SUM(主买特大-主卖特大,N日),PRECIS0,COLOR0000FF,LINETHICK2;
B主动:SUM(主买大单-主卖大单,N日),PRECIS0,COLOR00FFFF,LINETHICK1;
C主动:SUM(主买中单-主卖中单,N日),PRECIS0,COLORFFFF00,LINETHICK1;
D主动:SUM(主买小单-主卖小单,N日),PRECIS0,COLOR00FF00,LINETHICK2;
DRAWFLAGTEXT(c>0,A主动,'A主动L='+10000*A主动/CAPITAL+' N日'+N日),COLOR0000FF;
DRAWFLAGTEXT(c>0,B主动,'B主动L'+10000*B主动/CAPITAL),COLOR00ffFF;
DRAWFLAGTEXT(c>0,C主动,'C主动L'+10000*C主动/CAPITAL),COLORFFFF00;
DRAWFLAGTEXT(c>0,D主动,'D主动L'+10000*D主动/CAPITAL),COLOR00ff00;
DRAWTEXT( BARSTATUS=2,A主动 ,'A主动' ),linethick2,ColorFF55FF;
DRAWTEXT( BARSTATUS=2,B主动 ,'B主动' ),linethick2,ColorFFFF55;
DRAWTEXT( BARSTATUS=2,C主动 ,'C主动' ),linethick2,Color5555FF;
DRAWTEXT( BARSTATUS=2,D主动 ,'D主动' ),linethick2,Color55FF55;
----------------------------------------------
资金超赢
input:N日(20,1,100);
TODAY:="ddx.ddx"=0;{判断是否有正版数据}
DRAWTEXTABS(5,20,IFS(TODAY,'雨阳数据','正版数据')),LINETHICK2,colorwhite;
主单买:=IF(TODAY,"DDEDATA@BIGORDER"(1,2),bigorder(1,2))*amount/10000;
主单卖:=IF(TODAY,"DDEDATA@BIGORDER"(2,2),bigorder(2,2))*amount/10000;
特单买:=IF(TODAY,"DDEDATA@BIGORDER"(1,3),bigorder(1,3))*amount/10000;
特单卖:=IF(TODAY,"DDEDATA@BIGORDER"(2,3),bigorder(2,3))*amount/10000;
大单买:=IF(TODAY,"DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(1,3),bigorder(1,2)-bigorder(1,3))*amount/10000;
大单卖:=IF(TODAY,"DDEDATA@BIGORDER"(2,2)-"DDEDATA@BIGORDER"(2,3),bigorder(2,2)-bigorder(2,3))*amount/10000;
中单买:=IF(TODAY,"DDEDATA@BIGORDER"(1,1)-"DDEDATA@BIGORDER"(1,2),bigorder(1,1)-bigorder(1,2))*amount/10000;
中单卖:=IF(TODAY,"DDEDATA@BIGORDER"(2,1)-"DDEDATA@BIGORDER"(2,2),bigorder(2,1)-bigorder(2,2))*amount/10000;
散单买:=IF(TODAY,1-"DDEDATA@BIGORDER"(1,1),1-bigorder(1,1))*amount/10000;
散单卖:=IF(TODAY,1-"DDEDATA@BIGORDER"(2,1),1-bigorder(2,1))*amount/10000;
主净:主单买-主单卖,color3d;
特净:=特单买-特单卖;
大净:=大单买-大单卖;
中净:=中单买-中单卖;
散净:=散单买-散单卖;
主力资金:sum(主净,N日),PRECIS2,COLOR00FFFF,LINETHICK2;
超大资金:sum(特净,N日),PRECIS2,COLOR0000FF,LINETHICK1;
大户资金:sum(大净,N日),PRECIS2,COLOR1e90ff,LINETHICK1;
中户资金:sum(中净,N日),PRECIS2,COLORff7f50,LINETHICK1;
散户资金:sum(散净,N日),PRECIS2,COLOR00FF00,LINETHICK1;
0,color333333,PRECIS0,layer7;
a1:='<*t=74C6*><*c=FFFFFF*><*p=95*>'+datestr(date)+'<*t=00FFFF*><*c=00FFFF*><*p=95*>'+ ' ★★★'+STKNAME+'('+STKLABEL+')'+{NUMTOSTRN(}N日{,0)}+ '日统计各户资金一览表 ★★★\n';
a2:='<*t=6DFFFF*><*c=66*><*p=95*>'+'主力资金买入: '+NUMTOSTRN(sum(主单买,N日),2)+'万元 卖出: -'+NUMTOSTRN(sum(主单卖,N日),2)+'万元'+'<*t=00ffFF*><*c=0*><*p=95*>'+' 净买入: '+NUMTOSTRN(主力资金,2)+'万元\n';
a3:='<*t=A1A1FF*><*c=66*><*p=95*>'+'超大资金买入: '+NUMTOSTRN(sum(特单买,N日),2)+'万元 卖出: -'+NUMTOSTRN(sum(特单卖,N日),2)+'万元'+'<*t=00ffFF*><*c=0*><*p=95*>'+' 净买入: '+NUMTOSTRN(超大资金,2)+'万元\n';
a4:='<*t=4EB3FF*><*c=66*><*p=95*>'+'大户资金买入: '+NUMTOSTRN(sum(大单买,N日),2)+'万元 卖出: -'+NUMTOSTRN(sum(大单卖,N日),2)+'万元'+'<*c=0000FF*><*c=0*><*p=95*>'+' 净买入: '+NUMTOSTRN(大户资金,2)+'万元\n';
a5:='<*t=FAB887*><*c=66*><*p=95*>'+'中户资金买入: '+NUMTOSTRN(sum(中单买,N日),2)+'万元 卖出: -'+NUMTOSTRN(sum(中单卖,N日),2)+'万元'+'<*c=0000FF*><*c=0*><*p=95*>'+' 净买入: '+NUMTOSTRN(中户资金,2)+'万元\n';
a6:='<*t=8DFF8D*><*c=66*><*p=95*>'+'散户资金买入: '+NUMTOSTRN(sum(散单买,N日),2)+'万元 卖出: -'+NUMTOSTRN(sum(散单卖,N日),2)+'万元'+'<*c=0000FF*><*c=0*><*p=95*>'+' 净买入: '+NUMTOSTRN(散户资金,2)+'万元';
DRAWFLAGTEXT(c>0,HIGH,a1+a2+a3+a4+a5+a6);
DRAWTEXT( BARSTATUS=2,主力资金 ,'主力资金' ),linethick1,ColorFF55FF;
DRAWTEXT( BARSTATUS=2,超大资金 ,'超大资金' ),linethick1,ColorFFFF55;
DRAWTEXT( BARSTATUS=2,大户资金 ,'大户资金' ),linethick1,Color5555FF;
DRAWTEXT( BARSTATUS=2,中户资金 ,'中户资金' ),linethick1,Color55FF55;
DRAWTEXT( BARSTATUS=2,散户资金 ,'散户资金' ),linethick1,ColorFF55FF;
----------------------------------------------------------





gd13305

回复

举报

QQ|

GMT+8, 2024-11-18 09:30

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