邹应良 实站操盘2之十个实用选股公式源码
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)选出调整仍在继续的个股:本公式用于选出仍处于缩量调 |