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

天相子的博客

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

 
 
 

日志

 
 
关于我

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

网易考拉推荐

选股公式源码大全(三)  

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

  下载LOFTER 我的照片书  |

  仅供学习研究之用!!!

一){选股公式}
VAR1:=MA(CLOSE,34);
VAR2:=MA(VAR1*0.82,5);
VAR3:=CLOSE<VAR2;
VAR4:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100)<-0.4;
VAR4 AND VAR3;

二){选股公式}
X:=0.27*MA(C,3);
M:=0.57*REF(MA(C,50),1);
VMA:=X+M;
C<VMA*0.97 AND COUNT(H=L AND C=O AND C<REF(C,1),3)<=0;

三){选股公式}
VAR1:=CLOSE/MA(CLOSE,40)*100<78;
VAR2:=CLOSE/MA(CLOSE,60)*100<74;
VAR3:=HIGH>LOW*1.051;
VAR4:=VAR3 AND COUNT(VAR3,5)>1;
VAR4 AND (VAR1 OR VAR2) AND
MA(C,27)/CLOSE>1.169 AND MA(C,17)/CLOSE>1.158 AND
CLOSE<MA(C,120) AND MA(C,60)<MA(C,120) AND MA(C,60)>MA(C,30) AND "CCI">-210 ;

四){选股公式}
VAR1:=AMOUNT/VOL/100;
VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR3:=SUM(AMOUNT,13)/VAR1/100;
VAR4:=DMA(VAR2,VOL/VAR3);
VAR5:=(CLOSE-VAR4)/VAR4*100;
VAR6:=(INDEXC-LLV(INDEXL,9))/(HHV(INDEXH,9)-LLV(INDEXL,9))*100;
VAR7:=SMA(VAR6,3,1);
VAR8:=SMA(VAR7,3,1);
CROSS(VAR7,VAR8) AND VAR7<45 AND COUNT(VAR5<=-15,5)>=1 ;

五){选股公式}
VAR1:=OPEN<EMA(CLOSE,3) AND CLOSE=HIGH AND CLOSE/OPEN>=1.11 AND VOL/CAPITAL>=0.02 AND VOL/CAPITAL<=0.2;
VAR1 AND COUNT(VAR1,3)=1;

六){选股公式}
{涨势确立,N1=41,N3=29}
VAR1:=C/MA(C,3)>=1.05 AND C=HHV(C,3) AND MA(VOL,2)/MA(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) AND VOL>REF(VOL,1) AND C>REF(C,1);
VAR2:=REF(C,1);
VAR3:=SMA(MAX(C-VAR2,0),5,1)/SMA(ABS(C-VAR2),5,1)*100;
VAR4:=COUNT(VAR3<25,20)>=1;
VAR5:=(H-L)/H*100+(C-VAR2)/VAR2*100;
VAR6:=EMA(MA(VAR5,N1),6);
VAR7:=VAR6>LLV(VAR6,6)*1.02 AND REF(VAR6,1)<REF(LLV(VAR6,6),1)*1.02 AND LLV(VAR6,N1)=LLV(VAR6,6);
VAR8:=LLV(L,6)=LLV(LOW,N1) AND LLV(LOW,6)<HHV(L,N1)*(100-N3)/100;
VAR9:=H>L*1.033;
VAR8>0 AND VAR9;

七){选股公式}
VAR1:=CLOSE/MA(CLOSE,20)*100<80;
VAR2:=CLOSE/MA(CLOSE,40)*100<78;
VAR3:=CLOSE/MA(CLOSE,60)*100<72;
VAR4:=HIGH>LOW*1.051;
VAR5:=VAR4 AND COUNT(VAR4,5)>1;
绝地鹰王:VAR5 AND (VAR1 OR VAR2 OR VAR3);

八){选股公式}
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:="RSI";
VAR6:="MACD";
VAR7:=1;
A:=AMOUNT/(100*VOL);
VAR8:=100*(CLOSE-MA(A,26))/MA(A,26);
VAR9:=VAR8<-17.5 AND VAR8>-36 AND CLOSE*VAR7<10 AND CLOSE*VAR7/REF(CLOSE,1)>0.935 AND CROSS(VAR4,VAR2);
VAR10:VAR9/VAR7;

九){选股公式}
流通:=AMOUNT/VOL;
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
ZLL:=VOL/CAPITAL;
HSL1:=IF(ZLL>10,10,ZLL);
HSL:=(XVL/20)/1.15;
攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
资金流向:LLJX,COLOR0000FF;{LINETHICK0}
流量基线:GJJ,COLOR00FFFF;
买入:CROSS(资金流向,流量基线);

十){MACD金叉选股选股公式}
DIF:=EMA(CLOSE,5)-EMA(CLOSE,10);
DEA:=EMA(DIF,3),LINETHICK1;
XG:CROSS(DIF,DEA) AND DIF<0.3;

十一){选股公式}
VAR1:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;
VAR2:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR3:=SMA(VAR2,13,8);
VAR4:=SMA(VAR1,21,8);
VAR5:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;
趋势:CEILING(SMA(VAR3,13,8)),LINETHICK0,COLOR0000FF;
看底:IF((趋势-VAR4<(-65)),1,6),COLOR00FF00;
顶峰:IF((趋势-VAR4>85),95,100),COLORF0F000;
操盘线: 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),LINETHICK0,COLORBLUE;

十二){选股公式}
{改编自系统自带指标EXPMA}
{用法说明:1、出现买入信号后,二至三天没有出现红柱则放弃操作。
           2、也可根据红柱持股,绿柱持币的操盘思路进行操作。}
MA1:EMA(CLOSE,5),COLORYELLOW;
MA2:EMA(CLOSE,21),COLORFF00FF;
STICKLINE(MA1>MA2,MA1,MA2,4,0),COLORRED;
STICKLINE(MA1<MA2,MA1,MA2,4,0),COLOR00FF00;
差值:ABS(MA1-MA2),COLORWHITE;
A:=(C-REF(C,1))/REF(C,1)*100;
买入:IF(MA1<MA2 AND CLOSE>OPEN AND BETWEEN(MA1,OPEN,CLOSE) AND BETWEEN(MA2,OPEN,CLOSE) AND A>=3 AND VOL>MA(VOL,5)/5,5,0),LINETHICK2,COLORRED;

十三){选股公式}
{n=13,m=13}
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
a1:=AMOUNT/VOL/1000;
b2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
d3:=SUM(AMOUNT,n)/a1/1000;
e4:=DMA(b2,VOL/d3);
v1:=((CLOSE-e4)/e4*1000+100);
V2:=POW(V1/RSI1,1)+6;
W4:=POW((COST(M)/C/1),6)*2;
CROSS(V2,W4);
ref(INDEXC,1)<ref(INDEXC,2) and ref(c,2)/ref(c,1)>1.05
and ref(c,1)<ref(o,1) and c>0 and o<=ref(c,1) and c>ref(o,1)
and ref(vol,1)<ref(vol,2);

十四){放量选股公式}
VAR199:=MA(CLOSE,80)-MA(CLOSE,10)/3;
vvvv:=CLOSE<VAR199 AND VOL/240>MA(VOL,5)/240 AND
CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3;
放量xg:if(vvvv,1,0),stick,color99ff99;

十五){选股公式}
{抄底信号出现太少,一但出现,哈哈发财吧!}
A:=DMA(EMA(CLOSE,24),SUM(VOL,9)/3/CAPITAL);
SW:=(CLOSE-A)/A*100;
b:=sw<-38 ;
A1:=DMA(EMA(CLOSE,22),SUM(VOL,9)/3/CAPITAL);
s:=(CLOSE-A1)/A1*100;
j:=ref(s,1)<-37 and s>ref(s,1) and ref(s,1)<ref(s,2) and
(ref(s,2)-ref(s,1))>1;
k:=b or j ;
k and count(k,10)=1;

十六){金矿买选股公式}
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,8) AND COUNT(DX<0,3) AND CROSS(DX,MA(DX,3)),1,0);
filter(买=1,8);

十七){选股公式}
n:=3;
var3:=(c-llv(l,18))/(hhv(h,18)-llv(l,18))*100;
var4:=sma(var3,9,1);
a2:=ema(var4,n);
b1:=(h+l+c)/3;
b2:=hhv(b1,15);
b3:=llv(b1,15);
b4:=b2-b3;
b5:=ma((b1-b3)/b4,2)*100;
均线:=ma(c,5);
cross(b5,a2)>0 and 均线-ref(均线,1)>0;

十八){逢低吸选股公式}
Var1:=1;
Var2:=(2*CLOSE+HIGH+LOW)/4;
Var3:=IF(YEAR>=2099 AND MONTH>2,0,1);
Var4:=LLV(LOW,5);
Var5:=HHV(HIGH,4);
散户:=EMA((Var2-Var4)/(Var5-Var4)*100,4)*Var3*Var1;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*Var3*Var1;
CROSS(散户,庄家) AND 散户<30;

十九){选股公式}
n:=9;
RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
TJ:= IF(RSV<5,0,RSV);
投机:= IF(TJ>95,100,TJ);
投机<10 or cross(投机,5);

二十){选股公式}
VAR2Q:=(MA(CLOSE,80)-MA(CLOSE,13)/3);
神奇线:= MA((CLOSE-VAR2Q)/VAR2Q,1);
XA:=EMA(神奇线,12)*0.7;
XB:=EMA(神奇线,3);
底部将成:=IF(LLV(XB-XA,12)>0,0,-30);
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD :=2*(DIFF-DEA);
底部将成<0 AND CROSS(MACD,0);

廿一){选股公式}
LS261:=EMA(CLOSE,2);
LS262:=EMA(CLOSE,150);
LS26:=LS261-LS262;
LS27:=EMA(LS26,100);
LS28:=2*(LS26-LS27);
LS29:=POW(LS28,3)*0.1+POW(LS28,1);
黑马线:=IF(LS28>0.1,LS29,0)*5;
量价线:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
cross(量价线,黑马线);

廿二){选股公式}
量:=v;
换手:=V/CAPITAL*100;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));
DLX:=(买盘-(-卖盘))/量*换手;
DLX1:=SUM(DLX,6);
DLX2:=ma(DLX1,5);
DLX3:=ma(DLX1,10);
cross(DLX1,DLX2) and DLX1<DLX3;

廿三){选股公式}
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
FILTER(CROSS(VAR2,MA(VAR3,6)),7);

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

廿五){金叉选股公式}
千:=2*HIGH-LOW/3;
千钧线:=EMA(千,14);
cross(千,千钧线);

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

历史上的今天

在LOFTER的更多文章

评论

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

页脚

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