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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 新年发选股公式,成功率适中,分布均匀


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-22 17:26:13
新年发选股公式,成功率适中,分布均匀介绍

新年发选股公式,成功率适中,分布均匀

新年这几天看到论坛都处都是高成功公式测试帖子,看了几天没有一个是我满意的(大多是有图没原码,向高人讨个来测试学习不得而终,郁闷),借新年心情不错,发一些来自网上,本人收藏的公式供各位朋友参考,有满意的告诉我一声,谢谢各位朋友!
公式名称:铁底 公式类型:买点公式
默认周期:日
默认参数:input:M(25,2,45);
a:=indexc/ma(indexc,58)<0.848 and c/ema(c,58)<0.81;
b:=barslast(a)+1;
d:=between(b,2,M) and c<ref(c,b);
count(a,2) or d;

{说明:如默认参数的测试结果不能满足要求,可降低M的取值,直至符合要求;
反之,可调高M,以提高信号次数。}

{秋风扫落叶}
Var1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
Var2:=REF(HIGH,10)/CLOSE>1.35;
Var3:=(COST(20)-CLOSE)/CLOSE>0.15;
Var4:=HIGH>LOW*1.051;
秋风扫落叶:=Var4 AND COUNT(Var4,5)>1;
KKDDJ来了:(((CLOSE-Var1)/Var1*100<-30) or Var2) and Var3 and 秋风扫落叶;

公式类型:高成功率
默认周期:日
默认参数input:N(22,1,30),N2(5,1,10),N3(3,1,5),N4(-30,-50,0);:
原码:
input:N(22,1,30),N2(5,1,10),N3(3,1,5),N4(-30,-50,0);
Var1:=IF(DATE>=1090608,0,1);
Var2:=CLOSE<0.98*REF(CLOSE,1);
Var3:=OPEN<REF(CLOSE,1);
Var4:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100*Var1;
Var5:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100*Var1;
Var6:=MA(COST(N)/LOW,N3);
Var7:=Var6>1.5 AND Var4>N2 AND Var5<N4;
Q: Var7 AND (COUNT(Var7,10) AND Var2 OR COUNT(Var7,20) AND Var3*Var1);


好公式不需要复杂的,

s01:=c/ma(c,40)<0.74;
s02:=(h-l)/ref(c,1)>0.05;
s03:=count(s02,5)>1;
s01 and s02 and s03;

公式名称:乖离选股
公式类型:买点公式 默认周期:日线

(CLOSE-REF(CLOSE,2))/REF(CLOSE,2)>=0.2 AND
(CLOSE-REF(CLOSE,2))/REF(CLOSE,2)<=0.27 AND
(CLOSE-REF(CLOSE,10))/REF(CLOSE,10)>=0.3 AND
CLOSE=HHV(HIGH,60) ;

公式名称:百年一遇
公式类型:买点公式
默认周期:日线


Var1:=(CLOSE-REF(CLOSE,24))/REF(CLOSE,24)*100;
CROSS(Var1,MA(Var1,12)) AND OPEN<CLOSE AND OPEN/REF(CLOSE,1)<=0.97 AND CLOSE/OPEN>=1.05 AND Var1<-25;

公式名称:神奇黑马
公式类型:买点公式
默认周期:日线


Var1:=INDEXC;
Var2:=MA(Var1,6);
Var3:=MA(Var1,24);
Var4:=MA(Var1,32);
Var5:=MA(Var1,62);
Var6:=MA(Var1,105);
Var7:=Var5<REF(Var5,1) AND Var6<REF(Var6,1) AND Var5<Var6*0.98;
Var8:=Var4>Var2*1.11 AND Var3>Var2*1.095;
Var9:=Var2>Var1*0.95;
VarA:=CLOSE/MA(CLOSE,48)*100<67;
VarB:=CLOSE/MA(CLOSE,50)*100<69;
VarC:=HIGH>LOW*1.078;
VarD:=VarC AND COUNT(VarC,4)>2;
VarD AND (VarA OR VarB) or Var7 AND Var8
AND Var9 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN)
AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1));


公式名称:czm
公式类型:买点公式
默认周期:日线
A1:=C/REF(C,1)>1.04;
A2:=C/HHV(H,34)<0.7;
A3:=MAX(FORCAST(COST(24)/L,3),SMA(COST(24)/L,3,1))>1.39 ;
A4:=LOW=LLV(LOW,10) OR REF(LOW,1)=LLV(REF(LOW,1),30) OR REF(LOW,2)=LLV(REF(LOW,2),30);
买:A1 AND A2 AND A3 and A4;

公式名称:czm
公式类型:买点公式
默认周期:日线
Var1:=CLOSE/REF(CLOSE,1)>1.055;
Var2:=OPEN=LOW AND HIGH=CLOSE;
Var3:=VOL<MA(VOL,3) AND VOL<REF(VOL,3);
J1:=STRCMP(LowerSTR(STRLeft(STKName,2)),''st'')=0;
J2:=STRCMP(LowerSTR(STRLeft(STKName,2)),''pt'')=0;
J3:=STRCMP(LowerSTR(STRLeft(STKName,3)),''*st'')=0;
J4:=STRCMP(LowerSTR(STRLeft(STKName,3)),''*pt'')=0;
JJ:=J1 or J2 or J3 or J4;
去除PTST股:=88*(JJ=0);
Var1 AND Var2 AND Var3 AND COUNT(Var1 AND Var2 AND Var3,4)=1 and 去除PTST股;


公式名称:必涨
公式类型:买点公式
公式说明:
默认周期:日
默认参数:


a1:=c*1.2<ma(c,60);
a2:=c/ref(c,1)>1.03;
a1 and a2


公式名称:czm
公式类型:买点公式
默认周期:日线
C/REF(C,1)>1.038 AND V/REF(V,1)<0.33;

公式名称:czm
公式类型:买点公式
默认周期:日线
Var1m:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
Var2m:=(EMA(CLOSE, 3)-EMA(CLOSE, 8))*100;
庄:Var2m<12 AND Var1m>15,stick,ColorFFFFFF,linethick2;


抄底:if(SLOPE(CLOSE,30)/REF(CLOSE,30)<-0.01,-1.5,0);


公式名称:买入必涨
公式类型:买点公式
默认周期:日线
买入必涨:((((CLOSE / REF(CLOSE,1)) >= 1.07) AND ((HIGH / CLOSE) < 1.005)) AND ((MA (CLOSE,90) / CLOSE) >1.48));
 


 






公式名称:追涨
公式类型:买点公式
默认周期:日线
C/REF(C,1)>1.06 AND C=H AND V/REF(V,1)<1;
公式名称:轻松追涨
公式类型:买点公式
默认周期:日
默认参数:无

a:=c/ref(c,1)>=1.09;
b:=o=l and h=c;
d:=v < ma(v,5) and v < ref(v,1);
a and b and d and count(a and b and d,20)=1;

此式有一部分信号介入成本较高!


公式名称:金钱豹
公式类型:买点公式
默认周期:日
默认参数:涨跌幅N -30 -50 0
涨跌N3 5 1 10
量比N2 1 1 10
Var1:=IF(DATE>=1021231, 0, 1);
Var2:=(CLOSE-REF(OPEN, 29))/REF(OPEN, 29)*100;
Var3:=MA(CLOSE, 60);
Var4:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
Var5:=(CLOSE-Var3)/Var3*100;
Var6:=VOL/MA(VOL, 5)>量比N2;
A:(OPEN/REF(CLOSE, 1)>=0.980 AND Var5<涨跌幅N AND Var4>涨跌N3)*Var1;

公式名称:钱途无量
公式类型:买点公式
默认周期:日
默认参数:(无)

原码:
HLP:=WINNER(CLOSE)*100;
VAR1:=(WINNER(C*1.25)-WINNER(C))*100;
HLP<10 AND VAR1<20 AND C/REF(C,1)>1.05 AND V/REF(V,1)<1;

Var1:=EMA(WINNER(CLOSE)*70,3);
Var2:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
Var3:=CLOSE/MA(CLOSE,40)*100<76;
Var4:=CLOSE/MA(CLOSE,60)*100<74;
Var5:=HIGH>LOW*1.051;
Var6:=Var5 AND COUNT(Var5,5)>1;
may1:=Var6 AND (Var3 OR Var4) AND Var2<20 AND Var1<20
AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5;
may2:=if(ref(may1,1)or ref(may1,2) ,(close/ref(close,1)<0.95 or close/ref(close,2)<0.95 ),1);
may:may1 and may2;


原码如下:
A11:=MA(C,55);A12:=REF(A11,1);A13:=HHV(A11,7);A14:=HHV(A11,13);
A1:=IF(A11<A12 AND A13=A14,1,0);
A2:=IF(A11>1.0015*A12,1,0);
A41:=MA(C,12);A42:=REF(A41,1);A4:=IF(A41>1.003*A42,1,0);
A5:=IF(A2=1 OR A4=1,1,0);
RSV:=(C-LLV(L,3))/(HHV(H,3)-LLV(L,3))*100;
K:=SMA(RSV,2,1);
D:=SMA(K,2,1);
A31:=IF(MA(C,40)>MA(C,20) AND MA(C,20)>MA(C,10) AND
MA(C,10)>MA(C,5),1,0);A32:=COUNT(A31=1,7);A33:=COUNT(A31=1,21);
A3:=IF(A32=7,1,0);
a341:=ma(c,34);a342:=ref(a341,1);a34:=if(a341>1.0005*a342,1,0);
LC := REF(C,1);
BIAS0 := (C-MA(C,2))/MA(C,2)*100;
BIAS1 := (C-MA(C,3))/MA(C,3)*100;
BIAS2 := (C-MA(C,7))/MA(C,7)*100;bia:=bias1+bias2;
DR4:=COUNT(BIAS2<-7.8,10); DR5:=COUNT(BIAS1<-2.91,10);
DR6:=COUNT(BIAS1<-2.1,10);DR8:=COUNT(BIAS1<-4,10);
DR9:=IF(DR6>=4 AND DR8>=3,1,0);DR7:=IF(DR5>=4 OR DR6>=5 OR DR9=1,1,0);
HC:=HHV(C,10); HC3:=hhV(C,16); hc2:=hhv(c,7);
DYF:=IF(HC/c>1.19 or hc3/c>1.26 or hc2/c>1.17,3,0);
BUY1:=IF(A3=1 AND DYF=3 AND C<LC AND O>C,6,0);
BUY2:=IF(a1=0 and DR7=1 AND DYF=3 AND C<LC AND O>C and bias0<-1,9,0);
ZHBUY:=IF(BUY1=6 AND BUY2=9,1,0);
BUY3:=IF(ZHBUY=1 AND A1=0 and bias0<-(26/10) and v<3*ma(v,55) and v>0.3*ma(v,55),12,0);
yxhb:count(buy3,5)>0 and cross(k,d) and c>o;

公式名称:铁底
公式类型:买点公式
默认周期:日
默认参数:无
原码:
var1:=(indexc-MA(indexc,58))/MA(indexc,58)<-0.152;
var2:=(C-EMA(C,58))/EMA(C,58)<-0.19;
count(var2 and var1,2);

公式名称:耍无赖
参数:已固化
周期:日线
原码:自编
用法:出信号即买入
BIAS0:= (C-MA(C,2))/MA(C,2)*100;
BIAS1 := (C-MA(C,12))/MA(C,12)*100;
BIAS2 := (C-MA(C,26))/MA(C,26)*100;
BIAS3 := (C-MA(C,48))/MA(C,48)*100;
hxl:=v/capital*100;
d1:=INDEXC;
d2:=MA(d1,13);
dr2:=d2>1.050*d1;
E1:=(C-hhv(c,12))/hhv(c,12)*10;
E2:=(C-REF(c,26))/REF(c,26)*10;
e3:=ma(c,3);
sj1:=dr2;
sj2:=e2<-2.30;
sj3:=bias0<-2.7;
sj5:=sj1 and sj2 and sj3;
sj6:=cross(0.5,sj5);
js1:=cross(sj6,0.5);js2:=barslast(js1=1);
js3:=js2<=5 and c<ref(c,js2);
sj6 or js3;

公式名称:豪情万丈
公式类型:买点公式
公式说明:
默认周期:日线


A2:=(CLOSE-REF(OPEN,19))/REF(OPEN,19)*100;
A3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
A4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
A5:=LWINNER(100,CLOSE)*100;
A6:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
A7:=SMA(A6,3,1);
A8:=SMA(A7,3,1);
A9:=3*A7-2*A8;
AA:=COUNT(CROSS(A7,A8) AND A8<8 AND A3>8 AND A4<-30,20);
AB:AA OR AA AND A3<3;

公式名称:大底
公式类型:买点公式
公式说明:
默认周期:日线


{参数描述: N1(1,22,10)N2(1,15,10)N3(-50,0,-30)N4(1,10,8)}
Var2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
Var3:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
Var4:=VOL/MA(VOL,5);
Var5:=WINNER(CLOSE)*100;
Var6:=VOL/CAPITAL*100;
Var7:=LLVBARS(LOW,50);
Var8:=SUM(VOL,Var7);
Var9:=HHVBARS(HIGH,50);
VarA:=SUM(VOL,Var9);
VarB:=(CLOSE-REF(OPEN,Var9))/REF(OPEN,Var9)*100;
VarC:=VarA/CAPITAL*100;
VarD:=(CLOSE-REF(OPEN,Var7))/REF(OPEN,Var7)*100;
VarE:=Var8/CAPITAL*100;
VarF:=(HIGH+LOW+CLOSE)/3;
Var10:=(VarF-MA(VarF,14))/(0.015*AVEDEV(VarF,14));
Var11:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
Var12:=SMA(Var11,3,1);
Var13:=SMA(Var12,3,1);
Var14:=3*Var12-2*Var13;
Var15:=CLOSE< REF(CLOSE,1);
Var16:=OPEN< REF(CLOSE,1);
Var17:=(Var13< N2 AND Var3< N3 AND Var2>N4 AND Var10<-107);
Q:= Var17 OR COUNT(Var17,N1) AND Var15 OR COUNT(Var17,N1) AND Var16;
AAA:=FILTER(Q,20);
大底:IF(AAA,81,0);


公式名称:牛刀小试
公式类型:买点公式
公式说明:
默认周期:日线


par1:=(CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100<-23;
par2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),3,1)*100>16;
par3:=100*(HHV(HIGH,27)-CLOSE)/(HHV(HIGH,27)-LLV(LOW,27));
par1 AND par2 AND CROSS(par3,79) AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)<0.05 AND VOL>MA(VOL,23);


查看本帖全部评分记录
潇湘遐想 理想币 +2 谢谢分享 新年快乐 2011-2-9 07:54

发短消息 加为好友 个人主页 理想币3159 个 注册时间2008-2-23 引用 使用道具 举报 评分 回复 TOP
 

风兔灵


理想初一级同学

UID2240332 帖子1097 精华0 积分2177 理想币782 个 阅读权限30 在线时间418 小时 注册时间2010-8-4 最后登录2011-2-9 查看详细资料
3楼 只看该作者 大 中 小 发表于 2011-2-8 17:41
收藏了......


发短消息 加为好友 个人主页 理想币782 个 注册时间2010-8-4 引用 使用道具 举报 评分 回复 TOP
 

小小杨008


理想初三级同学

UID1295632 帖子2057 精华0 积分7260 理想币3159 个 阅读权限40 在线时间1520 小时 注册时间2008-2-23 最后登录2011-2-9 查看详细资料
4楼 只看该作者 大 中 小 发表于 2011-2-8 17:42
公式名称:001
公式类型:买点公式
默认周期:日线

(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100<-10 AND REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2);


公式名称:003
公式类型:买点公式
默认周期:日线

Var1:=(CLOSE-REF(CLOSE,24))/REF(CLOSE,24)*100;
CROSS(Var1,MA(Var1,12)) AND OPEN<CLOSE AND OPEN/REF(CLOSE,1)<=0.97 AND CLOSE/OPEN>=1.05 AND Var1<-25;


公式名称:黑马公式
公式类型:买点公式
默认周期:日线
ref(hhv(HIGH,60)=hhv(HIGH,96),0)
and ref(vol/CAPITAL,0)*100<1.16
and ref(CLOSE,0)/ref(CLOSE,1)>1.07
and ref(CROSS(hhv(HIGH,1),hhv(HIGH,96)),1)
and hhv(HIGH,1)/hhv(HIGH,96)=1;

式类型:005
公式类型:买点公式
默认周期:日线
Var1:=DMA(CLOSE,VOL/SUM(VOL,15));
Var2:=(CLOSE-Var1)/Var1*100;
Var3:=(WINNER(CLOSE*1.31)-WINNER(CLOSE))*103<10;
Var4:=Var2<-7;
Var3 AND Var4 AND CLOSE>REF(CLOSE,1);


公式类型:006
公式类型:买点公式
默认周期:日线

Var1:=(MA(VOL,1) / MA(VOL,27));
Var2:=(VOL*100 / CAPITAL);
Var3:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);
Var4:=((((0.005 * Var3) - (0.007 * Var1)) - (0.0057 * Var2)) - 0.01);
Var5:=((((0.002 * Var3) - (0.013 * Var1)) + (0.0175 * Var2)) - 0.007);
((((0 - (10* Var4)) - Var5) + 0.321) < 0);

公式名称:抄底骑马公式
公式类型:买点公式
默认周期:日线

if(hhv(high/hhv(high,96),60)=1, CLOSE/ref(CLOSE,1)>1.08and vol/CAPITAL*100<1.16 and ref(high/hhv(high,96),1)=1and high/hhv(high,96)=1,llv(llv(low,60),12)=1.00
and ref(low/llv(low,12),1)>1.00<1.16);

名称:筹码底部
类型:买点
参数: N=27 ,N2=8,N3=-29,N4=14
周期:日

Var1:=(CLOSE-REF(OPEN, N))/REF(OPEN, N)*100;
Var2:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
Var3:=WINNER(CLOSE*1)*100;
Var4:=EMA(Var3, 4);
Var5:=CLOSE<0.980*REF(CLOSE, 1);
Var6:=OPEN<REF(CLOSE, 1);
Var7:=(Var2>Var4 AND Var1<N3 AND Var2>N2);
CM:Var7 OR (COUNT(Var7, N4) AND Var5 OR COUNT(Var7, N4) AND Var6);


去掉问题股和除权股:
dt:=ref(c,3)/c>1.28 ;
cq:=(ref(c,1)/c>1.11)*7;
xh:= hhv(dt,5)>0 or hhv(cq,30)>0;
cys13:="cys13.cys13";
not(xh) and cys13<-16 {秋风扫落叶}
Var1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
Var2:=REF(HIGH,10)/CLOSE>1.35;
Var3:=(COST(20)-CLOSE)/CLOSE>0.15;
Var4:=HIGH>LOW*1.051;
秋风扫落叶:=Var4 AND COUNT(Var4,5)>1;
KKDDJ来了:(((CLOSE-Var1)/Var1*100<-30) or Var2) and Var3 and 秋风扫落叶;

close/(ema(ema((c+l+h)/3,3),26)*0.9)<0.95 ;

底部神探
条件选股公式:底部神探 缺省周期:日线
INDEXC*1.07<HHV(INDEXC,10) AND COUNT(INDEXC<REF(INDEXC,1),10)>=6 AND COUNT(INDEXC<INDEXO,10)>=6 AND COUNT(INDEXL*1.02>INDEXC,3)=3 AND COUNT(INDEXC>INDEXO*1.01,3)=0 AND COUNT(INDEXC>INDEXO*1.02,5)=0 AND INDEXC<MA(INDEXC,60) AND CLOSE*1.35<HHV(CLOSE,20) AND CLOSE*1.45>HHV(CLOSE,20) OR INDEXC*1.07<HHV(INDEXC,7) AND COUNT(INDEXC<REF(INDEXC,1),7)>=5 AND COUNT(INDEXC<INDEXO,7)>=5 AND COUNT(INDEXL*1.02>INDEXC,3)=3 AND COUNT(INDEXC>INDEXO*1.01,3)=0 AND COUNT(INDEXC>INDEXO*1.02,5)=0 AND INDEXC<MA(INDEXC,60) AND (REF(CLOSE,7)-CLOSE)/CLOSE>(HHV(INDEXC,7)-INDEXC)/INDEXC AND CLOSE*1.3<HHV(CLOSE,20) AND CLOSE*1.45>HHV(CLOSE,20) AND COUNT(CLOSE>LOW,2)>=1 AND COUNT(VOL>MA(VOL,20)*3,10)<1 AND COUNT(CLOSE>OPEN*1.01,3)=0 AND COUNT(CLOSE>OPEN*1.02,5)=0;


 



gd12137

回复

举报

QQ|

GMT+8, 2024-11-18 10:57

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