本文分享的是实战中常运用到的一些选股小公式,不管你是一个爱好自己编写指标还是一个刚懵懂入市的新手,这些对你们来说都是精华的总结。
1、一阳上穿10,20,30日线,量能是前一天3倍。
xg:cross(c,ma(c,10))andcross(c,ma(c,20))andcross(c,ma(c,30))and
v>ref(v,1)*3;
2、股价上穿5周均线:
xg:cross(c,ma(c,5));
注意:选股时用周线
3、最低价小于前一日的最低价但收盘后为阳线。
xg:l<ref(l,1)andc>o;
4、大部分股票跌到43日均线时就会反弹,如果在43日均线附近买入,短线成功率占90%以上,即时选出还差几分钱就跌到43日均线的股票。
xg:abs(c-ma(c,43))/ma(c,43)<0.01;
5、选出周换手率小于10%的股票
sum(VOL/CAPITAL*100,5)<10;
6、连续2天收盘价跌破30日均线,就显示"卖出"信号
a1:count(c<ma(c,30),2)=2;
drawtext(a1,c,卖出),colorgreen;
7、连收两个十字星的选股公式
count(abs((c-o)/o<0.01),2)=2;
8、20天均线向上的股
xg:ma(c,20)>ref(ma(c,20),1);
9、条件:
①假设大前天创最近新高,要求这天涨幅是超过7%的大阳线,且创最近一个月的新高。
②那么前天,昨天,今天都收小K线,要求小K线实体
xg:ref(c,3)/ref(c,4)>1.07andref(c,3)=hhv(c,20)andcount(abs((c-ref
(c,1))/ref(c,1)<0.02,3)))=3;
10、近5日K线最高价和最低价格波动在10%以内,成交量是昨日2倍,收盘涨5%
XG:(HHV(C,5)-LLV(C,5))/LLV(C,5)<0.1ANDV>REF(V,1)*2ANDC/REF(C,1)
>1.05;
11、连续4天的收盘价格波动幅度在3%之内连续走平或向上
count(abs(c-ref(c,1)/ref(c,1))<0.03andc>ref(c,1),3)=3;
12、下影线长于上影线
(c-l)>(h-c);
13、涨停开盘跌停收盘选股
xg:h/ref(c,1)>1.1andref(c,1)/l>1.1;
14、编买入公式:
(1).将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。
(2).BIAS指标要小于-6,这只是确认该股超跌的初选条件。
(3).KD指标产生黄金交叉,K线上穿D线。
(4).KD交叉同时,KD指标中的D值要小于16。
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1),COLORWHITE;
D:=SMA(K,3,1),COLORYELLOW;
xg:BIAS3<-6andcross(k,d)andd<16;
15、二次金叉选股:
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
很多人说黑马可与不可求,但是股票没有绝对,讲究的是概率。如何增加概率就是见仁见智的问题了。
通达信黑马关注选股指标公式:
RSV:=(((CLOSE-LLV(LOW,29))/(HHV(HIGH,29)-LLV(LOW,29)))*100);
K:=MA(RSV,5);
D:=MA(K,2);
J:=((3*K)-(2*D));
黑马:IF((J<5),100,0),;
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);
黑马全套选股公式
黑马全套选股公式
倍量选股
REF(V,1)/REF(V,2)>2ANDLOW>REF(HIGH,1);
前天跳跌
REF(HIGH,1)<REF(LOW,2);
强式高开
A:=MA(CLOSE,26);
UP:=A+2*STD(CLOSE,26);
LOWER:=A-2*STD(CLOSE,26);
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
IF(W4ANDCOUNT(W4,5)=1,20,0)ANDO>REF(H,1)ANDCAPITAL/700000<7;
强式选股
YS:=(C-L)/(H-L)*100;
X:=HHV(H,5)-REF(O,5);
Y:=C-LLV(L,5);
Z:=(HHV(H,5)-LLV(L,5))*2;
BD:=(X+Y)/Z*100;
CROSS(YS,BD)ANDBD>REF(BD,1);
低位拐点
VAR1:=CLOSE/REF(LLV(LOW,35),5)<1;
必买:IF(TROUGHBARS(3,15,1)=0ANDHIGH>LOW+0.01,1,0);
埋伏修正
SHORT2.00200.0012.00
LONG2.00200.0026.00
MID2.00200.009.00
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短K:=SMA(RSV,3,1);
短D:=SMA(短K,3,1);
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
长K:=SMA(RSV1,5,1);
长D:=SMA(长K,10,1);
长K>长DORDIF>DEA;
MACD双金
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
T:=BARSLAST(REF(CROSS(DIFF,DEA),1));
DEA1:=REF(DEA,T);
DEA1<0ANDCROSS(DIFF,DEA)ANDDEA>DEA1ANDDEA<0ANDREF(L,T)>LLV(L,T)ANDHHV(DEA,T)<0;
K叉长K
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短K:=SMA(RSV,3,1),COLORWHITE;
短D:=SMA(短K,3,1),COLORYELLOW;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
长K:=SMA(RSV1,5,1),COLORRED;
长D:=SMA(长K,10,1),COLOR66CC33;
CROSS(长K,长D);
黑太阳涨停
A1:=REF(C,1)/REF(C,2)>1.098ANDREF(C,1)>REF(O,1);
A2:=L>REF(H,1)ANDC<OANDV>REF(V,1);
XG:A1ANDA2;
黑码选股
COUNT(O>=REF(H,1),1)=1ANDHHV(C,60)=CANDC/REF(C,1)>1.051;
昨天三角
N10.0099.001.00
VAR10:=IF(TROUGH(3,16,1)=0ANDHIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
买点1:=VAR10;
买点2:=(VAR11+VAR13+VAR15+VAR17);
REF(买点1OR买点2,N1);
筹线线选
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV1:=MA(OBV,10);
OBV>OBV1ANDOBV1>REF(OBV1,1);
小星体
阴实体:=REF(COUNT(H/REF(C,1)<1.03,5),1)>=3ANDREF(COUNT(H/REF(C,1)>0.97,5),1)<=3;
阴实体;
低量柱
AA:REF(V,0)=LLV(V,55);
扣停牌等
NOT(DYNAINFO(4)=0);
换手率
N0.01100.005.00
DYNAINFO(37)>=N/100;
突破
VVOL:=VOL*240/FROMOPEN;
盘虚万:=VVOL/10000;
量万:=VOL/10000;
HD:=FILTER(BACKSET(FILTER(REF(C,10)=HHV(C,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(C,10)=LLV(C,2*10+1),10),10+1),10);
波峰:=IF(BARSLAST(HD)<BARSLAST(LD)ANDNOT(HD),REF(C,BARSLAST(HD)),REF(C,BARSLAST(HD)));
突破波峰:=CROSS(C,波峰)AND盘虚万>MA(量万,25)ANDC/REF(C,1)>1.043;
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;
强势:=80;
弱势:=20;
涨幅:=C/REF(C,1)>=1.043;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
CROSS(J,强势)AND涨幅AND突破波峰;
突破走强
VVOL:=VOL*240/FROMOPEN;
盘虚万:=VVOL/10000;
量万:=VOL/10000;
HD:=FILTER(BACKSET(FILTER(REF(C,10)=HHV(C,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(C,10)=LLV(C,2*10+1),10),10+1),10);
波峰:=IF(BARSLAST(HD)<BARSLAST(LD)ANDNOT(HD),REF(C,BARSLAST(HD)),REF(C,BARSLAST(HD)));
突破波峰:=CROSS(C,波峰)AND盘虚万>MA(量万,25)ANDC/REF(C,1)>1.043;
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;
强势:=80;
弱势:=20;
涨幅:=C/REF(C,1)>=1.043;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
CROSS(J,强势)AND涨幅AND突破波峰;
买入信号
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
VARR1:=(SUM(H,8)-SUM(L,8))/2;
RSVC:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
白马:=SMA(RSVC,3,1);
DC:=SMA(白马,3,1),LINETHICK1;
短J:=3*白马-2*DC,COLORYELLOW,LINETHICK1;
短K:=SMA(RSV,3,1),COLORBLUE;
短D:=SMA(短K,3,1),COLORMAGENTA,LINETHICK1;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
长K:=SMA(RSV1,5,1),COLORRED,LINETHICK2;
长D:=SMA(长K,10,1),COLOR66CC33,LINETHICK1;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
强势区:=80,COLORYELLOW,LINETHICK1;
平衡:=50,COLORRED,LINETHICK1;
弱势区:=20,COLORGREEN,LINETHICK1;
主力线:=WINNER(C)*100,COLORRED,LINETHICK2;
HM:=SMA(RSV,3,1),COLORWHITE;
D1:=SMA(HM,3,1),COLORYELLOW;
K1:=SMA(RSV,10,1),COLORWHITE;
D:=SMA(K1,10,1),COLORRED;
TT:=3*HM-2*D1,COLORYELLOW;
压力线:=REF(HHV(HM,20),20),COLORYELLOW;
量能饱和:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100;
AA:=CROSS(短J,强势区)ANDCROSS(短J,平衡)ANDC>EXPMA(C,12)ANDC/REF(C,1)>1.04;
BB:=CROSS(短J,平衡)ANDCROSS(短J,20);
CC:=短J-REF(短J,1)>30ANDC/REF(C,1)>1.05;
DD:=CROSS(TT,HM)ANDTT>压力线AND短J>REF(短J,1)ANDDYNAINFO(7)/REF(C,1)>=1.045;
工作线:=EXPMA(CLOSE,12);
生命线:=EXPMA(CLOSE,50);
走出短线强势区:=CROSS(78,"KDJ.J")AND工作线>生命线AND"MACD.DIF">"MACD.DEA"ANDMA(C,5)>MA(C,30)AND长K/长D<=1.09;
抬头:="KDJ.J">REF("KDJ.J",1)ANDREF("KDJ.J",1)<REF("KDJ.J",2)
ANDREF("KDJ.J",1)>REF("KDJ.D",1)AND"MACD.MACD">0;
金叉:=CROSS("KDJ.J","KDJ.D")ANDMA(C,10)>MA(C,25)
ANDMA(C,25)>REF(MA(C,25),1)AND"MACD.MACD">0;
DRAWTEXT(DDOR量能饱和=100ANDCROSS(短J,82)ANDDYNAINFO(7)/REF(C,1)>=1.043ORCROSS(短J,82)
ANDEXPMA(CLOSE,12)>EXPMA(CLOSE,50)AND长K/长D>0.93AND(MACD-REF(MACD,1))>0AND长K/长D>REF(长K,1)/REF(长D,1)AND(长K/长D)/(REF(长K,2)/REF(长D,2))>=0.975ANDDYNAINFO(7)/REF(C,1)>=1.043,45,'买'),COLORRED;
低吸信号
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
VARR1:=(SUM(H,8)-SUM(L,8))/2;
RSVC:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
白马:=SMA(RSVC,3,1);
DC:=SMA(白马,3,1),LINETHICK1;
短J:=3*白马-2*DC,COLORYELLOW,LINETHICK1;
短K:=SMA(RSV,3,1),COLORBLUE;
短D:=SMA(短K,3,1),COLORMAGENTA,LINETHICK1;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
长K:=SMA(RSV1,5,1),COLORRED,LINETHICK2;
长D:=SMA(长K,10,1),COLOR66CC33,LINETHICK1;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
强势区:=80,COLORYELLOW,LINETHICK1;
平衡:=50,COLORRED,LINETHICK1;
主力线:=WINNER(C)*100,COLORRED,LINETHICK2;
HM:=SMA(RSV,3,1),COLORWHITE;
D1:=SMA(HM,3,1),COLORYELLOW;
K1:=SMA(RSV,10,1),COLORWHITE;
D:=SMA(K1,10,1),COLORRED;
TT:=3*HM-2*D1,COLORYELLOW;
压力线:=REF(HHV(HM,20),20),COLORYELLOW;
量能饱和:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100;
AA:=CROSS(短J,强势区)ANDCROSS(短J,平衡)ANDC>EXPMA(C,12)ANDC/REF(C,1)>1.04;
BB:=CROSS(短J,平衡)ANDCROSS(短J,20);
CC:=短J-REF(短J,1)>30ANDC/REF(C,1)>1.05;
DD:=CROSS(TT,HM)ANDTT>压力线AND短J>REF(短J,1)ANDDYNAINFO(7)/REF(C,1)>=1.045;
工作线:=EXPMA(CLOSE,12);
生命线:=EXPMA(CLOSE,50);
强势低吸:=工作线>生命线ANDCROSS("KDJ.J",20)AND长K>=长DAND长K/长D>REF(长K,1)/REF(长D,1)AND(长K/长D)/(REF(长K,2)/REF(长D,2))>=0.99;
抬头:="KDJ.J">REF("KDJ.J",1)ANDREF("KDJ.J",1)<REF("KDJ.J",2)
ANDREF("KDJ.J",1)>REF("KDJ.D",1)AND"MACD.MACD">0;
金叉:=CROSS("KDJ.J","KDJ.D")ANDMA(C,10)>MA(C,25)
ANDMA(C,25)>REF(MA(C,25),1)AND"MACD.MACD">0;
DRAWTEXT(强势低吸,15,'低吸'),COLORRED;
红箭头选股
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短K:=SMA(RSV,3,1),COLORWHITE;
短D:=SMA(短K,3,1),COLORYELLOW;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
长K:=SMA(RSV1,5,1),COLORRED;
长D:=SMA(长K,10,1),COLOR66CC33;
CROSS(MA(CLOSE,5),MA(CLOSE,24))ANDREF(COUNT(C/REF(C,1)<=1.04,1),0)>0AND长K>长DANDNOT(DYNAINFO(4)=0);
人头选股
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短K:=SMA(RSV,3,1),COLORWHITE;
短D:=SMA(短K,3,1),COLORYELLOW;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
长K:=SMA(RSV1,5,1),COLORRED;
长D:=SMA(长K,10,1),COLOR66CC33;
A1:=MA(CLOSE,10);
A2:=MA(CLOSE,20);
A3:=MA(CLOSE,30);
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV1:=MA(OBV,10);
A:=MA(CLOSE,26);
UP:=A+2*STD(CLOSE,26);
LOWER:=A-2*STD(CLOSE,26);
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
IF(W4ANDCOUNT(W4,5)=1,20,0)ANDOBV>OBV1ANDOBV1>REF(OBV1,1)AND长K/长D>1;
吻选股
A1:=MA(CLOSE,5);
A2:=MA(CLOSE,20);
A3:=MA(CLOSE,30);
A偏离度:=(CLOSE-HHV(HIGH,250))/HHV(HIGH,250)*100;
B偏离度:=(CLOSE-HHV(HIGH,120))/HHV(HIGH,120)*100;
C偏离度:=(LOW-MA(CLOSE,13))/MA(CLOSE,13)*100;
N日内13日线走向:=(MA(CLOSE,13)-REF(MA(CLOSE,13),5))/REF(MA(CLOSE,13),5)*100;
DRAWTEXT("KDJ.D">REF("KDJ.D",1)ANDA偏离度=B偏离度ANDCOUNT(A1>A2ANDA2>A3,2)=2AND"KDJ.J">20AND"MACD.MACD">0ANDC偏离度>-12
ANDB偏离度-REF(B偏离度,1)>1ANDN日内13日线走向-C偏离度<12ANDB偏离度>(C偏离度-1.3),-5,'买');