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

发布时间 : 星期四 文章大智慧主力进出线指标源码代码与计算方法及优化算法更新完毕开始阅读d40c9dc2bb4cf7ec4afed040

{主力进出 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; \这个文件就包含了全部自选板块。平时复制一个,重装软件时拷贝一下即可。 ===================================================

感谢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,

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

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,

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

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

JE10X15,ZZD,IF(TEMP1M>=1 and TEMP1M5<1 and CLOSE>=15,ZD,

IF(TEMP1M<1 and CLOSE<10,ZZZD,IF(TEMP1M<1 and JE10X15,ZZD,IF(TEMP1M<1 and CLOSE>=15,ZD,0))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

));

DDX:AAA*VOL/CAPITAL*100,COLOR3D; DDX1:EMA(AAA*VOL/CAPITAL*100,VAR0)*VAR0;

DDX2:MA(DDX1,P2); DDX3:MA(DDX1,P3);

DDX连增:last(DDX>REF(DDX,1)),linethick0; DDX多头:last(DDX1>DDX2 and DDX1>DDX3 and

DDX2>DDX3),linethick0,ColorFFFF10;

连红:LAST(AAA>0),PRECIS0,color0000FF,linethick0; 连绿:LAST(AAA<0),PRECIS0,color00FF00,linethick0; 十日红:COUNT(AAA>0,10),PRECIS0,colorFFFFFF,linethick0;

DRAWFLAGTEXT(十日红>=2,0,'十日红'+NUMTOSTRN(十日红,0)+'天'), COLORYELLOW; DRAWFLAGTEXT(连红>=2,0,' 连红'+NUMTOSTRN(连红,0)+'天'), COLORYELLOW;

DRAWTEXTABS(0,0,'大单动向'),COLORYELLOW;

RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:=SMA(RSV,2,1);D:=SMA(K,2,1);