教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 文库大全 > 资格考试 >

大智慧主力进出线指标源码代码与计算方法及优化算法

来源:网络收集 时间:2026-02-26
导读: { N:1,100,8;M:1,100,13:1,100,60;S:1,100,3} V1:=(C*2+H+L)/4*10; V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5; 主力开始出: IF(V4=0,V4,0),COLOR00FF00,LINETHICK2; 主力开始进: IF(V4=0,V4,0),COLORFF00FF,LINETHICK2; V5:=(HHV(INDEXH

{ N:1,100,8;M:1,100,13:1,100,60;S:1,100,3}

V1:=(C*2+H+L)/4*10;

V2:=EMA(V1,13)-EMA(V1,34);

V3:=EMA(V2,5);

V4:=2*(V2-V3)*5.5;

主力开始出: IF(V4<=0,V4,0),COLOR00FF00,LINETHICK2;

主力开始进: IF(V4>=0,V4,0),COLORFF00FF,LINETHICK2;

V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;

V6:=EMA(3*V5-2*SMA(V5,18,1),5);

V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;

V8:=(INDEXC*2+INDEXH+INDEXL)/4;

V9:=EMA(V8,13)-EMA(V8,34);

VA:=EMA(V9,3);

VB:=(V9-VA)/2; 大资金进场: IF(VB>=0,VB,0),COLORRED,LINETHICK2;

大资金撤走: IF(VB<=0,VB,0),COLORBLUE,LINETHICK2;

1. 把要导入的公式(源码)复制下来:方法是用左键先把源码变蓝,之后点右键,点复制;

2. 进入大智慧-->特色功能-->自编指标-->常用-->技术指标-->新建,在出现的公式编辑区的下面的空白处,把刚考的源码粘贴上,将公式名称复制后粘贴到公式名称栏-->确认-->退出;

3.如有参数的,如:N 1 100 15 之类,则需将这类数据填充到参数表中;

4.公式源码以外的内容,如:名称,说明以及参数等等,凡在{ }以外的,均要删除,或者用{ }将其括上;

5、在大智慧的底部显示栏中点击公式名称即可看到刚刚导入的公式。

===================================================

感谢dafadafadafa

重装大智慧后不再重装指标、重设自选板块的方法

1.不用重装指标的方法:

打开DZH文件夹里的IND文件,将GWIND.SEL(GwInd.sel)文件复制保存下来。重新安装DZH后再将这个文件覆盖到IND里面。

最后打开DZH,你会发现以前的指标都有了,这样就不用一个一个的导出了,是不是很方便呀。

2.不用重新设定自选板块的方法:

打开DZH文件夹里的CFG文件,找到了一个文件:dzh\cfg\netwrkic.bk2;

"netwrkic.bk2"这个文件就包含了全部自选板块。平时复制一个,重装软件时拷贝一下即可。 ===================================================

感谢spx2000

重装大智慧软件时需要备份目录

1.备份data目录 里面存放有历史K线和F10资料

2.备份ind目录 里面存放有自定义指标

3.备份zhdoc里面有信息地雷和财务数据

4.自选股cfg\netwrkic.bk2

5.个人理财\lcdb\目录下的所有文件

DDX优化

-大单动向

input:p1(30),p2(5),p3(10);

ZZZD:=BIGORDER(1,3)-BIGORDER(2,3);ZZD:=BIGORDER(1,2)-BIGORDER(2,2);ZD:=B

IGORDER(1,1)-BIGORDER(2,1);

VAR0:=MIN(COUNT(ORDER(2),0),P1);

TEMP:=CAPITAL*C;

TEMP5K:=TEMP/50000000000;

TEMP4K5:=TEMP/45000000000;

TEMP4K:=TEMP/40000000000;

TEMP3K5:=TEMP/35000000000;

TEMP3K:=TEMP/30000000000;

TEMP2K5:=TEMP/25000000000;

TEMP2K:=TEMP/20000000000;

TEMP1K5:=TEMP/15000000000;

TEMP1K2:=TEMP/12000000000;

TEMP1K:=TEMP/10000000000;

TEMP8M:=TEMP/8000000000;

TEMP6M:=TEMP/6000000000;

TEMP5M:=TEMP/5000000000;

TEMP4M:=TEMP/4000000000;

TEMP3M:=TEMP/3000000000;

TEMP2M5:=TEMP/2500000000;

TEMP2M:=TEMP/2000000000;

TEMP1M5:=TEMP/1500000000;

TEMP1M:=TEMP/1000000000;

JE10X15:=CLOSE>=10 and CLOSE<15;

AAA:=IF(TEMP5K>=1 and CLOSE<10,ZZZD,IF(TEMP5K>=1 and

JE10X15,ZZD,IF(TEMP5K>=1 and CLOSE>=15,ZD,

JE10X15,ZZD,IF(TEMP4K5>=1

and TEMP5K<1 and CLOSE>=15,ZD,

IF(TEMP4K>=1 and TEMP4K5<1 and CLOSE<10,ZZZD,IF(TEMP4K>=1 and TEMP4K5<1 and

JE10X15,ZZD,IF(TEMP4K>=1

and TEMP4K5<1 and CLOSE>=15,ZD,

IF(TEMP3K5>=1 and TEMP4K<1 and CLOSE<10,ZZZD,IF(TEMP3K5>=1 and TEMP4K<1 and

JE10X15,ZZD,IF(TEMP3K5>=1

and TEMP4K<1 and CLOSE>=15,ZD,

IF(TEMP3K>=1 and TEMP3K5<1 and CLOSE<10,ZZZD,IF(TEMP3K>=1 and TEMP3K5<1 and

JE10X15,ZZD,IF(TEMP3K>=1

and TEMP3K5<1 and CLOSE>=15,ZD,

IF(TEMP2K5>=1 and TEMP3K<1 and CLOSE<10,ZZZD,IF(TEMP2K5>=1 and TEMP3K<1 and

JE10X15,ZZD,IF(TEMP2K5>=1

and TEMP3K<1 and CLOSE>=15,ZD,

IF(TEMP2K>=1 and TEMP2K5<1 and CLOSE<10,ZZZD,IF(TEMP2K>=1 and TEMP2K5<1 and

JE10X15,ZZD,IF(TEMP2K>=1

and TEMP2K5<1 and CLOSE>=15,ZD,

IF(TEMP1K5>=1 and TEMP2K<1 and CLOSE<10,ZZZD,IF(TEMP1K5>=1 and TEMP2K<1 and

JE10X15,ZZD,IF(TEMP1K5>=1

and TEMP2K<1 and CLOSE>=15,ZD,

IF(TEMP1K2>=1 and TEMP1K5<1,ZZZD,IF(TEMP1K2>=1 and TEMP1K5<1 and

JE10X15,ZZD,IF(TEMP1K2>=1

and TEMP1K5<1 and CLOSE>=15,ZD,

IF(TEMP1K>=1 and TEMP1K2<1 and CLOSE<10,ZZZD,IF(TEMP1K>=1 and TEMP1K2<1 and

JE10X15,ZZD,IF(TEMP1K>=1

and TEMP1K2<1 and CLOSE>=15,ZD,

IF(TEMP8M>=1 and TEMP1K<1 and CLOSE<10,ZZZD,IF(TEMP8M>=1 and TEMP1K<1 and

JE10X15,ZZD,IF(TEMP8M>=1

and TEMP1K<1 and CLOSE>=15,ZD,

IF(TEMP6M>=1 and TEMP8M<1 and CLOSE<10,ZZZD,IF(TEMP6M>=1 and TEMP8M<1 and

JE10X15,ZZD,IF(TEMP6M>=1

and TEMP8M<1 and CLOSE>=15,ZD,

IF(TEMP5M>=1 and TEMP6M<1 and CLOSE<10,ZZZD,IF(TEMP5M>=1 and TEMP6M<1 and

JE10X15,ZZD,IF(TEMP5M>=1

and TEMP6M<1 and CLOSE>=15,ZD,

JE10X15,ZZD,IF(TEMP4M>=1

and TEMP5M<1 and CLOSE>=15,ZD,

IF(TEMP3M>=1 and TEMP4M<1 and CLOSE<10,ZZZD,IF(TEMP3M>=1 and TEMP4M<1 and

JE10X15,ZZD,IF(TEMP3M>=1

and TEMP4M<1 and CLOSE>=15,ZD,

IF(TEMP2M5>=1 and TEMP3M<1 and CLOSE<10,ZZZD,IF(TEMP2M5>=1 and TEMP3M<1 and

JE10X15,ZZD,IF(TEMP2M5>=1

and TEMP3M<1 and CLOSE>=15,ZD,

IF(TEMP2M>=1 and TEMP2M5<1 and CLOSE<10,ZZZD,IF(TEMP2M>=1 and TEMP2M5<1 and

JE10X15,ZZD,IF(TEMP2M>=1

and TEMP2M5<1 and CLOSE>=15,ZD,

IF(TEMP1M5>=1 and TEMP2M<1 and CLOSE<10,ZZZD,IF(TEMP1M5>=1 and TEMP2M<1 and

JE10X15,ZZD,IF(TEMP1M5>=1

and TEMP2M<1 and CLOSE>=15,ZD,

IF(TEMP1M>=1 and TEMP1M5<1 and CLOSE<10,ZZZD,IF(TEMP1M>=1 and TEMP1M5<1 and

…… 此处隐藏:3990字,全部文档内容请下载后查看。喜欢就下载吧 ……
大智慧主力进出线指标源码代码与计算方法及优化算法.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wenku/89980.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)