您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:邹应良 实战操盘2之十个实用选股公式源码

邹应良 实战操盘2之十个实用选股公式源码


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2013-04-20 09:36:00
公式简介:

1.攻击选股:用本公式所选出来的个股正处于放量上攻过程之中,日线系统和周线系统都很好
A1:=DYNAINFO(4)>1.01*ref(c,1);{高开1%以上}
A2:=DYNAINFO(7)>ma(c,10);{现价处于10日均线上方}
A3:=ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20);
A4:=DYNAINFO(14)>2/100 and L>1.01*ref(c,1);{涨幅大于2%且最低价上涨1%}
A5:=DYNAINFO(17)>2;
A6:=ma(c,5)>ref(ma(c,5),1);
A7:=ma(c,10)>ref(ma(c,10),1);
A8:=ma(c,20)>ref(ma(c,20),1);
A9:=KDJ.K>KDJ.D;
A10:=MA(C#WEEK,5)>REF(MA(C#WEEK,5),1);
A11:=MACD.DEA>REF(MACD.DEA,1);
A12:=MACD>REF(MACD,1)>0;
A13:=KDJ.K#WEEK>=KDJ.D#WEEK;{周KDJ的K值大于等于D值}
A14:=MACD.DIF#week>MACD.DEA#WEEK;
A15:=A1 AND A2 AND A3 AND A4;
A16:=A5 AND A6 AND A7 AND A8;
A17:=A9 AND A10 AND A11 AND A12;
A18:=A13 AND A14;
A15 AND A16 AND A17 AND A18;

2.平常选股
(1)大盘表现好时的选股:本选股公式用于平时选股,盘中选也可以。所选出来的股票强于大盘,处于上升趋势,日线系统和周线系统都比较好。还可以根据本方法选出的个股的多少来判断大盘接下来走强或走弱。比如,能选出的股票远少于100只,说明很多个股不具备上涨基础,大盘接下来走弱的概率较大。能选出的股票超过200只,哪说明大盘接下来走强的可能性较大。由于本方选出来的股票很多,需要进一步精选才能确定目标股。
A1:=DYNAINFO(14)>0.01;{涨幅大于1%}
A2:=C>ma(c,10);
A3:=ma(c,5)>ref(ma(c,5),1);
A4:=ma(c,10)>ref(ma(c,10),1);
A5:=ma(c,20)>ref(ma(c,20),1);
A6:=ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20);
A7:=MACD>0;
A8:=ma(vol,5)>ma(vol,10);
DPZD:=(indexc-ref(indexc,1))/ref(indexc,1);
GGZD:=(c-ref(c,1))/ref(c,1);
QRD:=GGZD-DPZD;
PH:=EMA(QRD,20);
A9=PH>0;
A10:=MA(C#WEEK,5)>REF(MA(C#WEEK),5),1);
A11:=MA(C#WEEK,5)>MA(C#WEEK,10);
A12:=KDJ.K#WEEK>=KDJ.D#WEEK;
A13:=A1 AND A2 AND A3 AND A4;
A14:=A5 AND A6 AND A7 AND A8;
A15:=A9 AND A10 AND A11 AND A12;
A13 AND A14 AND A15;
(2)大盘处于回调时的选股:本公式也用于平时选股,但多在大盘处于回调时使用。所选出来的股票也强于大盘,处于上升趋势,日线系统和周线系统都比较好。但这公式所选出业的股票当天并不一定是上涨的,处于回调之中,但趋势仍保持完好的个股也能选出。在大盘表现强劲时不用这个公式,是因为那时用该公式可能选出的股太多。但大盘处于回调时,用上面一个公式选出的个股明显减少,我们就加大了关注的范围。因为大盘回调时,我们最好是逢低买入,那些趋势保持完好,但调整中缩量的个股是我们此时关注的重点对象。但选出的股票仅用于关注,不宜马上买入,是否买入,还要结合更多的其他条件综合考虑。
A1:=C>MA(C,10);
A2:=ma(c,10)>ref(ma(c,10),1);
A3:=ma(c,20)>ref(ma(c,20),1);
A4:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20);
A5:=MACD>0;
B1:=C<REF(C,1);
B2:=240*VOL/FROMOPEN<REF(V,1);
B3:=240*VOL/FROMOPEN>1.1*REF(V,1);
A6:=IF(B1,B2,B3);
DPZD:=(indexc-ref(indexc,1))/ref(indexc,1);
GGZD:=(c-ref(c,1))/ref(c,1);
QRD:=GGZD-DPZD;
PH:=EMA(QRD,20);
A7:=PH>0;
A8:=MA(C#WEEK,5)>REF(MA(C#WEEK),5),1);
A9:=MA(C#WEEK,5)>MA(C#WEEK,10);
A10:=KDJ.K#WEEK>=KDJ.D#WEEK;
A11:=A1 AND A2 AND A3 AND A4;
A12:=A5 AND A6 AND A7 AND A8;
A9 AND A10 AND A11 AND A12;
3、冲涨停股:本选股公式用于盘中捕捉有涨停潜质的个股。量比较大,说明所选出来的个股当日交投比前几天大大活跃,这就意味着可能大涨或大跌。再从已有3%的涨幅上限制,说明股价已经选择了运行方向,就可以得出上涨概率比较大的结论。公式再一次从日线系和周线系统进行限制,保证了股价能大涨。最后,限制五个交易日最多只有一天出现股介大涨或大跌,说明筹码相对稳定,乖离率不大,保障了介入资金的安全性。
A1:=DYNAINFO(14)>0.01;{涨幅大于3%}
A2:=DYNAINFO(17)>2.5:{量比大于2.5}
A3:=DYNAINFO(7)>DYNAINFO(11);{现价处于分时均价线上方}
B:=240*VOL/FROMOPEN;{定义虑拟成交量}
A4:=B>1.25*REF(VOL,1);{虑拟成交量大于昨日成交量的1.25倍}
A5:=MA(C,5)>MA(C,10) AND C>MA(C,5);
A6:=MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1);
A7:=MACD>0;
A8:=MA(VOL,5)>MA(VOL,10);
A9:=COUNT((ABS(C-REF(C,1))/REF(C,1)<0.06),5)>=4;{过去5天内不超过一条大K线}
A10:=MA(C#WEEK,5)>REF(MA(C#WEEK,5),1);
A11:=MA(C#WEEK,5)>MA(C#WEEK,20);
A12:=MACD#WEEK>0;
A13:=A1 AND A2 AND A3 AND A4;
A14:=A5 AND A6 AND A7 AND A8;
A15:=A9 AND A10 AND A11 AND A12;
A13 AND A14 AND A15;
4、均线选股:本选股公式可以选出日线系统较好,形态漂亮,处于上升趋势的个股。由于公式还对乖离率进行了限制,所以股价与均线的乖离不会很大,适合盘中选到后就择机进行买入。本公式中N1、N2、N3的默认值都是经验值,需要在使用过程中根据实际情况进行调试。参数设置为INPUT:N1(8,2,100),N2(12,2,100),N3(20,2,100);

A1:=MA(C,10);
A2:=REF(MA(C,10),1);
A3:=A1/A2;
A4:=A3>1;
A5:=REF(MA(C,10),3);
A6:=REF(MA(C,10),4);
A7:=A5/A6;
A8:=A7>1;
A9:=REF(MA(C,10),6);
A10:=REF(MA(C,10),7);
A11:=A9/A10;
A12:=A11>1;
A13:=A3>A7 & A7>A11;
B1:=A4 AND A8 AND A13;
B2:=DYNAINFO(39)>0 AND DYNAINFO(7)>DYNAINFO(11);{市盈率>0 且现价>均价}
B3:=DYNAIFO(17)>1.2 AND DYNAIFO(14)>0.01;{量比>1.2且涨幅>1%}
B4:=MA(C,10)>MA(C,20);
B5:=C>MA(C,10);
B6:=MA(C,20)>REF(MA(C,20),1);
BIAS1:=100*(C-MA(C,5))/MA(C,5)<N1;
BIAS2:=100*(C-MA(C,10))/MA(C,10)<N2;
BIAS3:=100*(C-MA(C,20))/MA(C,20)<N3;
B7:=BIAS1 OR BIAS2 OR BIAS3;
B8:=B1 AND B2 AND B3 AND B4;
B9:=B5 AND B6 AND B7;
B8 AND B9;
5、周线选股:本选股公式主要对股票的周期系统进行限制,所选出的股票在周线图上处于上升趋势,适合于进行中长线投资.但由于我们的买点还得从日线上进行选择,所以对日线系统也进行了简单限制,日线系也才能较好选出。
A1:=MA(C,5)>MA(C,10);
A2:=MA(C,10)>MA(C,20);
A3:=MA(C,20)>REF(MA(C,20),1)
A4:=MACD>0;
A5:=100*(C-MA(C,20))/MA(C,20)<12;{乖离率不大}
A6:=MA(C#WEEK,5)>REF(MA(C#WEEK,5),1);
A7:=MA(C#WEEK,10)>REF(MA(C#WEEK,5),1);
A8:=MA(C#WEEK,20)>REF(MA(C#WEEK,20),1);
A9:=MA(C#WEEK,5)>MA(C#WEEK,10);
A10:=MACD#WEEK>0;
A11:=O#WWEK<C#WEEK AND C>MA(C#WEEK,5);
A12:=COUNT((ABS(C#WEEK-REF(C#WEEK,1))/REF(C#WEEK,1)<0.12,10)>=8;
A13:=A1 AND A2 AND A3 AND A4;
A14:=A5 AND A6 AND A7 AND A8;
A15:=A9 AND A10 AND A11 AND A12;
A13 AND A14 AND A15;
6、调整选股
(1)选出调整结束、买点出现的个股:本公式用于选出调整结束、买点出现的个股。但能选出的股票极少,而且每只调整结束的个股最多只能有一天选出的机会,一旦选到一只,就是一次大好机会。常用于大盘连结调整后的盘中选股。其中的参数N可以根据大盘调整的天数进行调整,一般N=4或5较为合适,调整天数大于参数N也能选出。
A1:=LAST((MA(V,5)<REF(MA(V,5),1)),N,1);{至昨日前连续缩量}
A2:=LAST((ABS(C-REF(C,1))/REF(C,1)<0.03,N,1){至昨日前均为小阴小阳K线}
B:=240*VOL/FROMOPEN;
A3:=B>1.25*REF(VOL,1) AND REF(VOL,1)/CAPITAL<0.05;
A4:=DYNAINFO(17)>2;{量比大于3}
A5:=DYNAINFO(7)>DYNAINFO(11);{现价处于分时均价线上方}
A6:=C>REF(H,1) AND C>MA(C,20);{当前股价在20日均线且大于昨日最高价}
A7:=MA(C,20)>REF(MA(C,20),1);
A8:=MA(C,20)>MA(C,60);
A9:=A1 AND A2 AND A3 AND A4;
A10:=A5 AND A6 AND A7 AND A8;
A9 AND A10;
(2)选出调整仍在继续的个股:本公式用于选出仍处于缩量调之中,但调速较为充分且形态尚未被破坏的个股。适合在大盘处于连续调整之中使用。所选出的个股不能马上买入,需要对其进行续续观察。公式中调整天数的参数不能太大(式中已直接用3代替了),因为调整天数大于这个参数的,照样能选出来。
A1:=LAST((MA(V,5)<REF(MA(V,5),1),3,0);
A2:=LAST((ABS(C-REF(C,1))/REF(C,1)<0.03),3,0);
A3:=C>MA(C,20);
A4:=MA(C,20)>REF(MA(C,20),1);
A5:=MACD#WEEK>0;
A6:=MA(C,5)#WEEK>MA(C,10)#WEEK;
A7:=A1 AND A2 AND A3 AND A4;
A5 AND A5 AND A6 AND A7;
7、平台突破:本公式用于选出当日突破长期整盘平台,且日线系统和周线系统都较好的个股。公式中对突破当日进行了较为严格的限定,要求是放量大阳线,保证突破的有效必。公式中,平如要求的K线条数用参数N代替,平台的最大振幅由参数M代替,便于我们根据不同要求进行调整。参数设置为INPUT:N(30,10,100),M(30,15,50);
ZF:=(HHV(H,N)-LLV(L,N))/LLV(L,N);{定义平台振幅}
CQ:=REF(ZF,1)<M/100;{限定平台振幅范围}
GL:=BARSCOUNT(C)>N;{过滤掉交易天数不足平台要求天数个股}
TP:=C>=REF(HHV(H,N),1);{当前价大于平台最高价}
A1:=CQ AND GL AND TP;
A2:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20);
A3:=MACD>0;
A4:=(C-REF(C,1))/REF(C,1)>6/100;{当日收大阳线}
A5:=DYNAINFO(17)>2;
B:=240*VOL/FROMOPEN;
A6:=B>1.25*REF(VOL,1);
A7:=MA(C#WEEK,5)>MA(C#WEEK,10);
A8:=MA(C#WEEK,10)>MA(C#WEEK,20);
A9:=MACD#WEEK>0;
A10:=A1 AND A2 AND A3 AND A4;
A11:=A5 AND A6 AND A7 AND A8;
A9 AND A10 AND A11;
8、最佳股:本公式综合了上面其他公式中的优点,对不同情况下的成交量作区别限制,能选出趋势向上,强于大盘,乖离率不大,而且日线系统和周线系统都较好的个股。公式中对所要求的乖离率数值用参数N1、N2、N3代替,便于调试,其参数设置为INPUT:N1(8,2,100),N2(12,2,100),N3(20,2,100);
A1:=DYNAINFO(14)>0.02;
B:=240*VOL/FROMOPEN;
B1:=DYNAINFO(17)>2;
B2:=B>1.2*REF(VOL,1);
B3:=LAST(VOL<REF(VOL,1),4,1);
B0:=IF(B3,B1,B2);
AA1:=MA(V,5);
AA2:=MA(V,10);
AA3:=AA1>AA2;
AA4:=MA(V,5)>REF(AA1,1);
AA5:=MA(V,10)>REF(AA2,1);
AA6:=AA3 AND AA4 AND AA5 AND B>REF(V,1);
A2:=B0 OR AA6;
A3:=DYNAINFO(7)>DYNAINFO(11);
JX1:=MA(C,5);
JX2:=MA(C,10);
JX3:=MA(C,20);
A4:JX1>JX2 AND JX2>JX3;
BJ1:=JX1>REF(JX1,1);
BJ2:=JX2>REF(JX2,1);
BJ3:=JX3>REF(JX3,1);
A5:=BJ1 AND BJ2 AND BJ3;
BIAS1:=100*(C-JX1)/JX1<N1;
BIAS2:=100*(C-JX2)/JX2<N2;
BIAS3:=100*(C-JX3)/JX2<N3;
A6:=BIAS1 AND BIAS2 AND BIAS3;
JXW1:=MA(C#WEEK,5);
JXW2:=MA(C#WEEK,10);
JXW3:=MA(C#WEEK,20);
A7:=JXW1>JXW2 AND JXW2>JXW3;
A8:=MACD>0;
A9:=MACD#WEEK>0;
A10:=O#WEEK<C#WEEK;
A11:=DYNAINFO(39)>0;
A12:=COUNT((ABS(C-REF(C,1))/REF(C,1)<0.06),5)>=4;
ZPZD:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
GGZD:=(C-REF(C,1))/REF(C,1);
QRD:=GGZD-DPZD;
PH:=EMA(QRD,20);
A13:=PH>0;
A14:=A1 AND A2 AND A3 AND A4;
A15:=A5 AND A6 AND A7 AND A8;
A16:=A9 AND A10 AND A11 AND A12;
A13 AND A14 AND A15 AND A16;

上述十个自编指标公式,都是经过多次测试通过了的,而且实际运行都能选出相应股票,用实践证明了它们的正确性。如果你也想使用它们,哪要小心输入。若是在输入后出现错误信息,哪你需要仔细检查你的输入是否正确。特别要注意,所有符号都要用英文输入,每句末尾都不要漏掉结束符“;”。


[url=http://www.goodgupiao.com/gupiaogongshi/27871.html][B]邹应良 实战操盘2之十个实用选股公式源码[/B][/url]