当前位置:→ 公式网 > 大智慧公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是金龙起舞选股公式源码(无源码的请下载附件导入)
“金龙起舞”可以做成两个选个公式,一个是所有信号(包括短线信号),短线信号较多,成功率不是很高。另一个是中长线信号,即“买进”和“抄底”信号,信号少但成功率很高。现将两个选股公式源码(去停牌股和ST股)送上。公式参数:N(20,1,111)N1(7,1,111)N2(69,1,111)
公式一:
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- S:=STRFIND(stkname,'S',1)>0;
- 停牌:=(DYNAINFO(4)=0);
- M3:= EMA(CLOSE,3);
- M8:=EMA(CLOSE,8);
- M13:=EMA(M8,13);
- M62:=eMA(M8,55);
- Var1:=EMA(M13,62);
- M81:=EMA(M62,81);
- M144:=EMA(Var1,144);
- M250:=EMA(Var1,250);
- Var2:=(CLOSE+HIGH+LOW)/3;
- Var3:=EMA(Var2,10);
- Var4:=REF(Var3,1);
- Var5:=(REF(HIGH,1)+REF(LOW,1))/2;
- Var6:=MA(CLOSE,N)+2*STD(CLOSE,N);
- Var7:=REF(CLOSE,1);
- Var8:=SMA(MAX(CLOSE-Var7,0),N1,1)/SMA(ABS(CLOSE-Var7),N1,1)*100;
- Var9:=CROSS(N2,Var8);
- Var10:=MA(CLOSE,80)-MA(CLOSE,10)/3;
- VarA:=FILTER(Var9,4);
- VarB:=(2*CLOSE+HIGH+LOW)/4;
- VarC:=LLV(LOW,34);
- VarD:=HHV(HIGH,34);
- VarE:=EMA((VarB-Var1)/(Var5-Var1)*100,7);
- VarF:=EMA(0.667*REF(VarE,1)+0.333*VarE,5);
- (((COUNT(CLOSE<REF(CLOSE,1),8)/8>0.6 AND VOL>=1.5*MA(VOL,5) AND COUNT(VarE>=VarF,3) AND REF(LOW,1)=LLV(LOW,120))
- or ((COUNT(CLOSE<REF(CLOSE,1),13)/13>0.6 AND COUNT(VarE>VarF,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4)
- AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1))
- or ((CLOSE<Var10 AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13))
- or (cross(var3,var4) or CROSS(m8,m13)))))) and not(停牌) and not(S);
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 公式二
- S:=STRFIND(stkname,'S',1)>0;
- 停牌:=(DYNAINFO(4)=0);
- M3:= EMA(CLOSE,3);
- M8:=EMA(CLOSE,8);
- M13:=EMA(M8,13);
- M62:=eMA(M8,55);
- Var1:=EMA(M13,62);
- M81:=EMA(M62,81);
- M144:=EMA(Var1,144);
- M250:=EMA(Var1,250);
- Var2:=(CLOSE+HIGH+LOW)/3;
- Var3:=EMA(Var2,10);
- Var4:=REF(Var3,1);
- Var5:=(REF(HIGH,1)+REF(LOW,1))/2;
- Var6:=MA(CLOSE,N)+2*STD(CLOSE,N);
- Var7:=REF(CLOSE,1);
- Var8:=SMA(MAX(CLOSE-Var7,0),N1,1)/SMA(ABS(CLOSE-Var7),N1,1)*100;
- Var9:=CROSS(N2,Var8);
- Var10:=MA(CLOSE,80)-MA(CLOSE,10)/3;
- VarA:=FILTER(Var9,4);
- VarB:=(2*CLOSE+HIGH+LOW)/4;
- VarC:=LLV(LOW,34);
- VarD:=HHV(HIGH,34);
- VarE:=EMA((VarB-Var1)/(Var5-Var1)*100,7);
- VarF:=EMA(0.667*REF(VarE,1)+0.333*VarE,5);
- (((COUNT(CLOSE<REF(CLOSE,1),8)/8>0.6 AND VOL>=1.5*MA(VOL,5) AND COUNT(VarE>=VarF,3) AND REF(LOW,1)=LLV(LOW,120))
- or ((COUNT(CLOSE<REF(CLOSE,1),13)/13>0.6 AND COUNT(VarE>VarF,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4)
- AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1))
- or ((CLOSE<Var10 AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13))
- )))) and not(停牌) and not(S);
要在通达信中用,去掉
S:=STRFIND(stkname,'S',1)>0;
停牌:=(DYNAINFO(4)=0);
and not(停牌) and not(S);
通达信中如果不想要停牌股和ST股在最前面插入
V1:=EXIST(C/REF(C,1)>1.06,60) AND DYNAINFO(7)>0;
在最后一行加 AND V1;
上一篇:安全买卖 下一篇:L2《分时超赢》模板公式