注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

天相子的博客

医、易、武、释、儒、道、诸子百家、哲学、宗教、学术、证券投资

 
 
 

日志

 
 
关于我

爱好:医、易、武、释、儒、道、诸子百家、哲学、宗教、学术、证券投资

网易考拉推荐

选股公式源码大全(五)  

2009-03-30 19:36:00|  分类: 我在股市 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

   仅供学习研究参考之用!!!

(1){选股公式}
DIFF8 := EMA(CLOSE,25) - EMA(CLOSE,65);
DEA8 := EMA(DIFF8,45);
MACD8 := 2*(DIFF8-DEA8);
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
MACD := 2*(DIFF-DEA);
DIFFs := EMA(CLOSE,5) - EMA(CLOSE,12);
DEAs := EMA(DIFFs,4);
cross(diff,dea) and macd8>0 and diffs>deas;

(2){选股公式}
VAR1:=MA((VOL-REF(VOL,1))/REF(VOL,1),5);
VAR2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
MY:=VAR2*(1+VAR1);
SHTMA:=MA(MY,5);
钱龙短线:CROSS(MY,SHTMA)AND(SHTMA<0);

(3){选股公式}
M:=150;
N:=20;
BU:=BARSLAST((CLOSE = HHV(CLOSE,N)));
SE:=BARSLAST((CLOSE = LLV(CLOSE,N)));
XG:CROSS(SE,BU);

(4){选股公式}
input:m(88,1,300),n1(6,1,100);
VAR1:=EMA(AMOUNT/VOL/100,3);
控盘成本:=EMA(VAR1,M);
低吸伏击:=EMA(VAR1,M)*0.85;
走势铁底:=低吸伏击*0.87;
VAR2:=LOW<=走势铁底 AND CLOSE>REF(CLOSE,1)*1.02;
笑脸:FILTER(VAR2,N1);

(5){选股公式}
XL3:=(c-Ema(c,21))/Ema(c,21)*100;
XL4:=cross(XL3,-20);{爆破}
爆破:XL4>0;

 

(6){选股公式}
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
YJD:=(EMA(CS,3)-50)*2;
xg:YJD<-80;

(7){选股公式}
傅吾豪均线:=EMA(C,18);
c>傅吾豪均线*1.004 and 傅吾豪均线>=ref(傅吾豪均线,1) and ref(c,1)/ref(c,10)<0.85;

(8){选股公式}
最新价:=C;
市盈率:=IF(FINANCE(33)>0,DYNAINFO(39),0)*0.35;
每股收益:=IF(FINANCE(33)>0.01,FINANCE(33)*0.65,0);
参考定价:=每股收益*市盈率*4;
XG:C<参考定价;

(9){选股公式}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;

(10){选股公式}
CLOSE<OPEN and ref(CLOSE,1)>ref(OPEN,1);

(11){选股公式}
VAR1:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));
VARD:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));
VARE:=((REF(VARD,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VARF:=((REF(VARE,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR10:=((REF(VARF,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR11:=((REF(VAR10,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR12:=((REF(VAR11,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR13:=((REF(VAR12,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR14:=((REF(VAR13,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR15:=((REF(VAR14,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR16:=((REF(VAR15,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR17:=((REF(VAR16,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR18:=((REF(VAR17,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
REF((((((((((((VARD OR VARE) OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18),1) AND VAR1;

(12){选股公式}
VarB:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*(-100);
VarC:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VarD:=SMA(VarC,3,2);
VarE:=SMA(VarD,3,2);
VarF:=SMA(VarE,5,1);
牛势再现:REF(VarB,1)>=16 AND REF(VarB,1)/VarB>=1.23 AND CROSS(VarE,VarF);

(13){选股公式}
input:m(88,1,300),n1(6,1,100);
VAR1:=EMA(AMOUNT/VOL/100,3);
控盘成本:=EMA(VAR1,M);
低吸伏击:=EMA(VAR1,M)*0.85;
走势铁底:=低吸伏击*0.87;
VAR2:=LOW<=走势铁底 AND CLOSE>REF(CLOSE,1)*1.02;
笑脸:FILTER(VAR2,N1);

(14){选股公式}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
加仓:CROSS(J,D);

(15){选股公式}
VAR1:=EMA(CLOSE,5);
卖:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
买:CROSS(VAR1,卖);

(16){选股公式}
VARA:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));
趋势线:=EMA(((VARA/10)+EMA(CLOSE,10)),3);
VARB:=(OPEN+HIGH+LOW)/3;
行情线:=EMA(VARB,4);
买进:CROSS(行情线,趋势线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线>趋势线);

(17){选股公式}
VAR91:=(EMA(C,5)-EMA(C,26))*100;
cross(VAR91,0);

(18){MACD指标低位金叉选股公式}
input:LONG(21),SHORT(13),M(7);
DIF:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA:=EMA(DIF,M);
MACD:=2*(DIF-DEA);
LONGCROSS(DIF,DEA,2) AND DIF<-0.1;

(19){选股公式}
B1:=REF(CLOSE,1);
B2:=REF(CLOSE,2);
B3:=REF(CLOSE,3);
B4:=REF(CLOSE,4);
CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);
B1=CMIN AND CLOSE>=B2 OR (B2=CMIN AND B1<=B3 OR B3=CMIN AND B1<=B2) AND B2<B4 AND CLOSE>=B1;

(20){选股公式}
VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR9:=SMA(VAR8,13,8);
风险:=CEILING(SMA(VAR9,13,8));
涨跌:=MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5);
绿线上穿红线:CROSS(风险,涨跌);

(21){选股公式}
Var1:=MA((HIGH+LOW+2*CLOSE)/4,5);
Var2:=EMA(Var1,10)-EMA(Var1,30);
Var3:=EMA(Var2,5);
Var4:=(Var2-Var3)*5;
Var5:=IF(Var4<=Var1,Var1,Var4);
动向:= FORCAST(FORCAST(Var5,10),10);
趋势:=IF( Var5>动向,Var5,Var1);
强势:=MA(Var1,5);
cross(趋势,强势);

(22){选股公式}
N :=10;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1);
VAR2:=8;
CROSS(VAR1,VAR2);

(23){卧槽马选股公式}
DIFF8 := EMA(CLOSE,25) - EMA(CLOSE,65);
DEA8 := EMA(DIFF8,45);
MACD8 := 2*(DIFF8-DEA8);
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
DIFFs := EMA(CLOSE,5) - EMA(CLOSE,12);
DEAs := EMA(DIFFs,4);
cross(diff,dea) and macd8>0 and diffs>deas;

(24){选股公式}
k1:=sum(CLOSE<OPEN,4)=4;
k1 and (sum(c>ma(c,5),4)=4 or sum(c>ma(c,10),4)=4) and sum(v<ref(v,1),4)=4;

(25){选股公式}
MA4:=EMA(CLOSE,10);
MA7:=EMA(CLOSE,30);
红三角:CROSS(MA4,MA7);

(26){选股公式}
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
ZSHTL:=SHCM/(ZLCM+SHCM)*100;
粉色立柱:REF(ZSHTL,1)>90 AND ZSHTL<90;

 

  评论这张
 
阅读(40)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017