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

天相子的博客

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

 
 
 

日志

 
 
关于我

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

网易考拉推荐

选股公式源码大全(二)  

2009-02-02 15:20:00|  分类: 我在股市 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

廿六){选股公式}
Var1:=1;
Var2:=1/WINNER(CLOSE);
Var3:=MA(CLOSE,13);
Var4:=100-ABS((CLOSE-Var3)/Var3*100);
Var5:=LLV(LOW,75);
Var6:=HHV(HIGH,75);
Var7:=(Var6-Var5)/100;
Var8:=SMA((CLOSE-Var5)/Var7,20,1);
Var9:=SMA((OPEN-Var5)/Var7,20,1);
VarA:=3*Var8-2*SMA(Var8,15,1);
主力:= (100-VarA)*Var1;
散户:= MA(WINNER(CLOSE*0.95)*100,3)*Var1;
新庄:= (100-IF(Var2>5,IF(Var2<100,Var2,Var4-10),0))*Var1;
aa:=主力>ref(主力,1) and 散户<0.3 and 新庄<ref(新庄,1) and 主力>100;
Var21:=LLV(LOW,36);
Var22:=HHV(HIGH,20);
游资:=EMA((CLOSE-Var21)/(Var22-Var21)*4,4)*25;
aaa:=cross(游资,ref(游资,1));
筹码:=WINNER(C)*100;
选:(ref(aa,1) or ref(aa,2) or aa) and aaa and 筹码<10;

廿七){选股公式}
ref(c,3)>ref(o,3) and ref(c,2)>ref(o,2) and ref(c,1)>ref(o,1)
and ref(c,3)/ref(c,3+1)<=1.04 and ref(c,2)/ref(c,3)<=1.04 and
ref(c,1)/ref(c,2)<=1.04 and c<o and ref(c,1)*0.95>=c and
ref(c,2)>ref(c,3) and ref(c,1)>ref(c,2) and ma(c,5)>ma(c,10)
and ma(c,10)>ref(ma(c,10),1) and ma(c,5)>ma(c,20)
and ma(c,20)>ref(ma(c,20),1);

廿八){选股公式}
k:="kdj.k"(9,3,3);
d:="kdj.d"(9,3,3);
v1:=cross(k,d) and d<16;{KD指标产生黄金交叉,K线上穿D线;D值要小于16}
bias24:=(c-ema(c,24))/ema(c,24)*100<-6;{BIAS指标设置为24日,要小于-6}
xg1:if(v1 and bias24,1,0);
廿九){选股公式}
R:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));{零延迟威廉线}
PERIODD:=10;
EMA1:=EMA(R,PERIODD);
EMA2:=EMA(EMA1,5);
DIFFERENCE:=EMA1-EMA2;
ZEROLAGEMA:=EMA1+DIFFERENCE;
PR:100-ABS(ZEROLAGEMA), COLORRED ,LINETHICK1;
MOVEAVG:MA(PR,5), COLORWHITE ,LINETHICK1;

K:=15;
FFILTER:=(K/100)*STD(PR-REF(PR,1),10);
XA:=IF(PR<REF(PR,1),PR,0);
XN:=BARSLAST(XA>0 );
AMALOW:=REF(PR,XN);
YA:=IF(PR>REF(PR,1),PR,0);
YN:=BARSLAST(YA>0) ;
AMAHIGH :=REF(PR,YN);
RR:=IF( AMAHIGH-PR>FFILTER,-1,0) ;
TT:=IF( PR- AMALOW>FFILTER,1,RR) ;

三十){买在底部选股公式}
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;
HHH:=BBB-LLV(BBB,27);
CCC:=LLV(BBB,27)-BBB;
QQ:(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK1;
SS:(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK1;
GG:MA(HHH,5),LINETHICK1,COLORGREEN;
MM:MA(CCC,5),LINETHICK1,COLORGREEN;
WW:IF(QQ<GG ,SS,MM),LINETHICK1, COLOR00FFFF;
EE:IF(SS<MM ,GG,QQ),COLORFFFFCC,LINETHICK1;
S:0,COLOR00FFFF;
买:if(EE-WW<5.6,200,0),COLORRED;

卅一){抄底选股公式}
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
bb:=REF((CLOSE<OPEN),1)AND CLOSE>OPEN;
cc:=(c/ref(c,18)-1)*100<-35;
cq:=SPLITBARS(0 )<15;
xg:IF((k>REF(k,1)AND REF(k,1)<REF(REF(k,1),1))AND k<20 AND bb AND ref(Cc,1)=1 and cq=0 ,20,0),colorred;

卅二){散户黄金选股公式}
a:=100*v/capital;
ee:=sumbars(a,2);
ff:=sumbars(a,98);
v1:=HHV(c,ee)/hhv(HHV(c,ee),13)*100;
v2:=HHV(c,ff)/hhv(HHV(c,ff),13)*100;
k1:=sma(v1,2,1);
k2:=sma(v2,2,1);
K3:=count(abs(c/ref(c,1)-1)*100>=6,30)>=25;
K4:=V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3);
xg:=(k1-k2);
bb:xg<(0-15) and (K4 OR K3);

卅三){选股公式}
Var2:=CLOSE*VOL;
Var3:=EMA((MA(Var2,3)/MA(VOL,3)+MA(Var2,5)/MA(VOL,5)+MA(Var2,13)/MA(VOL,13)+MA(Var2,21)/MA(VOL,21))/4,1);
Var4:=1*Var3;
Var5:=Var3*0.92;
Var6:=EMA(CLOSE,34);
Var7:=MA(Var6*1.12,5);
Var8:=MA(Var6*0.82,5);
Var9:=CLOSE<VAR8;
VarA:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100)<(-0.4);
VarA AND CLOSE<VAR8;

卅四){选股公式}
B1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE < REF(CLOSE,1),0-VOL,0)),0);
B2:=SUMBARS(VOL,CAPITAL);
B3:=IF(CLOSE>LLV(CLOSE,B2),1,-1)*IF(B1>LLV(B1,B2),1,-1);
B4:=IF(B3=-1,1,0);
B5:=COUNT(B4=1,8)>3;
B6:=SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100;
B7:=DMA((HIGH+LOW+CLOSE)/3,VOL/B6);
B8:=(CLOSE-B7)/B7*100<-17;
B9:=(CLOSE-MIN(REF(CLOSE,5)*0.830,REF(CLOSE,21)*0.720))/CLOSE<0.05;
股道:B8 AND B9 AND B5 ;

卅五){选股公式}
HSV:=IF(SUM(VOL/CAPITAL,20)<1,SUM(VOL/CAPITAL,20),0.998);
VAR1:=DMA(EMA(CLOSE,13),HSV);
QS:=(CLOSE-VAR1)/VAR1*100;
价量线:=sMA(QS,3,1);
价量线>REF(价量线,1) and CROSS(QS,价量线);

卅六){选股公式}
{布林上下乖离太大可能反弹}
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:=BBI+3*STD(BBI,10);
DWN:=BBI-3*STD(BBI,10);
var55:=(UPR-DWN)/UPR<0.03;
var56:=(UPR-DWN)/UPR>0.18;
var57:=(MA(CLOSE,60)-MA(CLOSE,5))/MA(CLOSE,60)>0.15;
可能反弹:var57 and var56 and CLOSE>OPEN;

卅七){大底选股公式}
VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
XG:(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5)),COLORYELLOW;

卅八){95%成功率选股公式}
VAR1G:=(((CLOSE / MA(CLOSE,40)) * 100) < 78);
VAR2G:=(((CLOSE / MA(CLOSE,60)) * 100) < 74);
VAR3G:=(HIGH > (LOW * 1.051));
VAR4G:=(VAR3G AND (COUNT(VAR3G,5) > 1));
AA:=IF((VAR4G AND (VAR1G OR VAR2G)),2,0);
BB:=c/ref(c,25)<=1.1;
CC:=(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15;
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
操盘线:=SMA(V3,2,1);
V5:=SMA(操盘线,2,1);
抄底:=IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)<REF(操盘线,2) AND 操盘线<23 ,1.5,0);
买就赢利:=BB and AA and CC and 抄底;
E9:=(C/MA(C,48))<0.75;
E10:=(C/MA(C,70))<0.70;
E11:=E9 AND E10;
E12:=V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3);
E13:=E11 AND ((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND E12;
xg:=Filter(E13,3);
Var1:=DMA(CLOSE,VOL/SUM(VOL,34));
Var2:=DMA(CLOSE,VOL/SUM(VOL,13));
Var3:=(CLOSE-Var1)/Var1*100;
Var4:=(CLOSE-Var2)/Var2*100;
XG2:=Var4<=-28 AND Var3<=-19;
(买就赢利 OR XG2 ) AND XG;
(注:如果在熊市选出股后,待6--8天再回前低点买)

卅九){选股公式}
A:=EMA(MA(CLOSE,2),1);
B:=EMA(MA(CLOSE,3),2);
Z:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
XG:=Z>75 AND CROSS(A,B);
ENTERLONG:XG;

四十){选股公式}
{金蛤蟆选股}
RSV:=(((CLOSE - LLV(LOW,6)) / (HHV(HIGH,6) - LLV(LOW,6))) * 100);
K:=(POW(SMA(RSV,2,1),5) / POW(10,8));
D:=(POW(SMA(RSV,2,1),5) / POW(10,10));
蛤:=((K+ D) / 2);
蟆:=(0 - 蛤);
J:=1;
选股:CROSS(蛤,J);

四十一){快枪选股公式}
VAR1:=EMA(HHV(HIGH,500),21);
VAR2:=EMA(HHV(HIGH,250),21);
VAR3:=EMA(HHV(HIGH,90),21);
VAR4:=EMA(LLV(LOW,500),21);
VAR5:=EMA(LLV(LOW,250),21);
VAR6:=EMA(LLV(LOW,90),21);
VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);
VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21);
VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21);
VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);
VARB:=REF(LOW,1);
VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;
VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);
VARE:=LLV(LOW,30);
VARF:=HHV(VARD,30);
VAR10:=IF(MA(CLOSE,58),1,0);
快枪:EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10,COLORSTICK;
AA:=REF(快枪,2);
BB:=REF(快枪,1);
CC:=快枪;
T1:=CC<BB AND BB<AA;

四十二){追涨信号选股公式}
短趋势:((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-50)*1.032+50),COLORRED;
Var2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
Var3:=LLV(LOW,34);
Var4:=HHV(HIGH,34);
长趋势:EMA((Var2-Var3)/(Var4-Var3)*100,13),color00ff00;
判断底:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5;
Var5:=CROSS(短趋势,长趋势)AND 长趋势<25;
全仓买入:STICKLINE(短趋势<10 AND 判断底>0,0,30,6,1),COLORffee44;
STICKLINE(Var5,0,50,8,0) , COLORffff30;
DRAWICON(Var5 AND 判断底>0,60,1);
DRAWTEXT(COUNT(短趋势<10 AND 判断底>0,8) AND Var5,50,'砸锅卖铁买');
DRAWTEXT(CROSS(短趋势,长趋势)AND 长趋势>25 AND 长趋势>REF(长趋势,1),长趋势,'');
Var6:=CROSS(短趋势,长趋势)AND 长趋势<50;
DRAWTEXT( COUNT(短趋势<30 AND 判断底>0,5) AND Var6,30,'短线买');
DRAWTEXT(CROSS(短趋势,长趋势)AND 长趋势>25 AND 长趋势>REF(长趋势,1),长趋势,'追涨');

四十三){选股公式}
AA1:=(AMOUNT)/(VOL);
BB1:=(LOW<(AA1)*(0.9));
CC1:=(((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(100)>1.2);
DD1:=(LOW<(MA(CLOSE,5))*(0.921));
EE1:=(VOL<(MA(VOL,5))*(1.5));
FF1:=BB1 AND CC1 AND DD1 AND EE1;
FILTER(FF1,3) AND (DATE<=1080530);
二十天最低跌幅:=(HHV(CLOSE,20))/(LLV(CLOSE,20));
RSV:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);
K:=SMA(RSV,3,1);

四十四){散户黄金 选股公式}
a:=100*v/capital;
ee:=sumbars(a,2);
ff:=sumbars(a,98);
v1:=HHV(c,ee)/hhv(HHV(c,ee),13)*100;
v2:=HHV(c,ff)/hhv(HHV(c,ff),13)*100;
k1:=sma(v1,2,1);
k2:=sma(v2,2,1);
K3:=count(abs(c/ref(c,1)-1)*100>=6,30)>=25;
K4:=V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3);
xg:=(k1-k2);
bb:xg<(0-15) and (K4 OR K3);

四十五){选股公式}
DYNAINFO(22)>=2*DYNAINFO(23) and c>=ref(c,1) and c>o;

四十六){股价阳线上穿5\10均线的选股公式}
ref(c,1)<ref(ma(c,5),1) and ref(c,1)<ref(ma(c,10),1) and c>ma(c,5) and c>ma(c,10);

四十七){股价在5\10\日均线之上的选股公式}
c>ma(c,5) and c>ma(c,10);

四十八){准确买入选股公式}
P:=3;
LL:=13;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),P,1)/SMA(ABS(CLOSE-LC),P,1)*100;
买入:CROSS(RSI,LL);

四十九){底部买入选股公式}
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
LLV(DX,2)=LLV(DX,6) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));

五十){十九无敌选股公式}
XJYY:=(CLOSE-MA(CLOSE,42))/MA(CLOSE,42)*100;
十九无敌:CROSS(-28,XJYY) ;

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

历史上的今天

在LOFTER的更多文章

评论

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

页脚

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