【大智慧源码公式集锦】--【大智慧上源码引入方法】 (四)
一、大智慧上源码引入方法:
1. 把要导入的公式(源码)考下来,方法是用左键先把源码变蓝,之后点右键,点复制;
2. 进入大智慧------>特SE功能------>自编指标------>常用------>技术指标------>新建,在出现的公式编辑区的下面的空白处,把刚考的源码粘贴上,将公式名称复制后粘贴到公式名称栏------>确认------>退出。
3.如有参数的,如:N 1 100 15 之类,则需将这类数据填充到参数表中。
4.公式源码以外的内容,如:名称,说明以及参数等等,凡在{ }以外的,均要删除,或者用{ }将其括上。
5、在大智慧的底部显示栏中》》 公式名称即可看到刚刚导入的公式。
二、rar和exp格式指标文件文件的引入方法:
有一兄弟问偶:
大哥,请教个问题,你在公式区发的 金牌黑马(大智慧)我觉得很好,下载了,但是不知道怎么用在大智慧上,我是新手,麻烦你有时间的话,告诉我好吗?谢谢啦
偶是这样答复滴:
复制公式->打开大智慧->“功能”菜单->自编指标->新建->下面空白处点鼠标右键选“粘贴”->最上面“公式名称”输入“金牌黑马”->确认->打开随便一只个股的K线图->输入“jphm"回车(jphm是“金牌黑马”的拼音代码)->你会发现K线图变了->搞定!
上面是公式原码的使用方式,下面说说.EXP格式的使用方法,.EXP是大智慧的公式模块,只有大智慧才能使用,用法如 下:
打开大智慧->功能->自编指标->引入->选择你的EXP文件->全部选中->确定。如果是rar格式的文件,需要解压文件,解压到dzh——ind ——export,然后 打开大智慧->功能->自编指标->引入->选择你的EXP文件->全部选中->确定。
恭喜你,你已经学会了
引用:
大智慧公式集(超强收集,全部源码)
一、会员指标100万
Var1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
Var2:=HIGH-REF(HIGH,1);
Var3:=REF(LOW,1)-LOW;
Var4:=SUM(IF(Var2>0 AND Var2>Var3,Var2,0),25);
Var5:=SUM(IF(Var3>0 AND Var3>Var2,Var3,0),25);
Var6:=Var4*100/Var1;
Var7:=Var5*100/Var1;
Var8:=MA(ABS(Var7-Var6)/(Var7+Var6)*100,15);
Var9:=(Var8+REF(Var8,15))/2;
A:=(Var7>Var6 AND Var7>25 AND Var6<25);
B:ZIG(3,50/5)*100,colorwhite;
g:MA(B,2),coloryellow;
D:=CROSS(B,g)*1000,colorred;
W:=cross(g,B)*1000,colorblue;
E:=REF(INDEXC,1);
F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
Var10:=F AND F<8;
Var11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Var12:=SMA(Var11,3,1);
Var13:=SMA(Var12,3,1);
Var14:=Var13 AND Var13<20;
mm:=A AND D AND Var10 AND Var14 ;
DRAWTEXT(W=1000,b*1.05,'卖' ),COLOR00ff00;
DRAWTEXT(D=1000,b*1.05,'买'),COLORred;
二、屠龙刀
varA1:=amount/vol;
varA2:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5);
VarA111:="h000001$VOL"*"h000001$CLOSE";
VarA21:=EMA(VarA111,5)/EMA("h000001$VOL",5);
CYS:=("h000001$CLOSE"-VarA21)/VarA21*100;
A1:=varA1/100;
A2:=MA(A1,5);
A3:=MA(A1,20);
A4:=MA(A1,30);
B1:=A4>A2*1.09 AND A3>A2*1.06;
B2:=A2>A1*1.03 and a3>a1*1.13;
VarA32:=MA(CLOSE,27);{N=27}
VarA33:=(CLOSE-VarA32)/VarA32*100;
VarA34:=MA(VarA33,3);{M=3}
varA10:=cys<-2 and b2;
TLD:=varA2<6 and varA10 and VarA34<-15;
屠龙刀:TLD*20,COLORRED,STICK,linethick2;
升跌: VarA34;
VarA35:=BARSLAST(CROSS(-10,VarA34)=1);
VarA36:=BARSLAST(CROSS(VarA34,10)=1);
VarA37:=VarA34<-10 AND VarA35>3;
VarA38:=VarA34>10 AND VarA36>3;
C1: IF(VarA37,VarA34,0),colorwhite;
C2: C1, COLORSTICK;
C3: IF(VarA38,VarA34,0),colorwhite;
C4: C3, COLORSTICK;
抄底:IF(升跌>REF(升跌,1) AND VarA37 AND VarA34<-15,10,0),colorff00ff,linethick2;
DRAWICON(抄底>0,11,1);
j:=(ref(c,1)+ref(c,2)+ref(c,3)+ref(c,4)+ref(c,5))/5;
j1:=j<cost(10) and c/j>1.025 and (hhv(c,5)-llv(c,5))/llv(c,5)*100>7;
j2:= j1 and ref(c,5)/ref(c,1)>1.003 and ma(indexc,3)>=ref(ma(indexc,3),1);
filter(j2,10),colorred;
最
三、红买绿卖
{红买绿卖 n:1 100 9 m1:1 100 3 m2:1 100 3 m3:1 100 5}
RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
FASTK:=SMA(RSV,M1,1);
K:SMA(FASTK,M2,1);
D:SMA(K,M3,1),colorwhite;
A1:=LLV(low,999999);
A2:=HHV(high,999999);
A3:=100/(A2-A1);
80,pointdot,linethick2;
20,pointdot,linethick2;
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=VAR2/VAR1*100-70;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA(VAR3/VAR1*100,3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF(VAR9>100,VAR9-100,0);
VAR11:=HHV(HIGH,34);
VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);
VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);
VAR14:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF
(INDEXC,1))/INDEXC,8,1)*100-25;
VAR15:=MA(Var14,3);
VAR16:=REF(VAR15,1);
STICKLINE(VAR12-VAR13>0,VAR12,VAR13,8,0),COLORRED;
STICKLINE(VAR12-VAR13<0,VAR12,VAR13,8,0),COLORgreen;
生命线:=EMA(VAR13,5);
STICKLINE(cross(VAR13,VAR12) and VAR12>60,80,100,8,0),COLOR00ff00;
绿灯亮卖:0,color00ff00;
STICKLINE(cross(VAR12,VAR13) and VAR12>VAR13 and VAR12<18,20,0,8,0),COLORRED;
红灯亮买:0,colorred;
Var21:=INDEXC;
Var22:=MA(Var21,6);
Var23:=MA(Var21,24);
Var24:=MA(Var21,32);
Var25:=MA(Var21,62);
Var26:=MA(Var21,105);
Var27:=Var25<REF(Var25,1) AND Var26<REF(Var26,1) AND Var25<Var26*0.98;
Var28:=Var24>Var22*1.11 AND Var23>Var22*1.095;
Var29:=Var22>Var21*0.95;
抄底A:= Var27 AND Var28 AND Var29 AND CLOSE/COST(8)<=0.8 AND CLOSE<OPEN;
{抄底1:}STICKLINE(抄底A,40,60,1,1),colorff00ff;
抄底1:0,colorff00ff;
Var2A:=CLOSE/MA(CLOSE,40)*100<78;
Var2B:=CLOSE/MA(CLOSE,60)*100<74;
Var2C:=HIGH>LOW*1.051;
Var2D:=Var2C AND COUNT(Var2C,5)>1;
Var2E:=Var2D AND (Var2A OR Var2B);
Var2F:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
Var30:=(CLOSE-Var2F)/Var2F*100+30-(REF(HIGH,13)/CLOSE-1.35)*100;
Var31:=(CLOSE-REF(CLOSE,5))/CLOSE*100<-9;
Var32:=WINNER(CLOSE);
Var33:=EMA((INDEXC-MA(INDEXC,10))/INDEXC*100,14)<-4.9;
Var34:=(MA(VOL,5)-VOL)/CAPITAL*100<0.8;
Var35:=(VOL-MA(VOL,21))/VOL*100;
抄底B:= Var33 AND Var31 AND Var32<0.12 AND Var34 AND Var35>18;
{抄底2:}STICKLINE(抄底B,40,60,3,1),coloryellow;
抄底2:0,coloryellow;
Var36:=(REF(CLOSE,1)+REF(CLOSE,2)+REF(CLOSE,3)+REF(CLOSE,4)+REF(CLOSE,5))/5;
Var37:=(REF(CLOSE,2)+REF(CLOSE,3)+REF(CLOSE,4)+REF(CLOSE,5)+REF(CLOSE,6))/5;
Var38:=(REF(CLOSE,3)+REF(CLOSE,4)+REF(CLOSE,5)+REF(CLOSE,6)+REF(CLOSE,7))/5;
Var39:=(REF(CLOSE,4)+REF(CLOSE,5)+REF(CLOSE,6)+REF(CLOSE,7)+REF(CLOSE,8))/5;
Var3A:=(REF(CLOSE,5)+REF(CLOSE,6)+REF(CLOSE,7)+REF(CLOSE,8)+REF(CLOSE,9))/5;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
抄底C:=(Var36/CLOSE>1.112 OR Var37/CLOSE>1.123 OR Var38/CLOSE>1.135 OR Var39/CLOSE>1.145 OR Var3A/CLOSE>1.156) AND BIAS3<=-20 AND COST(25)/CLOSE>=1.5 AND CLOSE<OPEN;
{抄底3:}STICKLINE(抄底C,40,60,5,1),color0099ff;
抄底3:0,color0099ff;
Var3B:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;
抄底D:= FILTER(IF(CROSS(Var3B,-28),1,0),8);
{抄底4:}STICKLINE(CROSS(Var3B,-28),40,60,8,1),colorwhite;
抄底4:0,co |