任何公式指标都不可能选出的股票100%上涨,除非有未来函数。对预警的股票要结合自己的选股技术加以筛选,今天笔者将继续分享一些实用的通达信选股公式,喜欢的朋友可以收藏或者转发出去。
1、起爆点指标公式源码
{参数设置 N:0 50 5 M: 0 50 5} H1:=EMA(DCLOSE,5); A1:=LLV(DCLOSE,5); A2:=A1+1/CURRBARSCOUNT*N; A3:=IF(CURRBARSCOUNT<20 and="" a1="">REF(A1,1),CONST(REF(A2,10)),A1); A4:=MA(A3,10); A5:=H1+1/CURRBARSCOUNT*M; A6:=IF(CURRBARSCOUNT<20 and="" a1="">REF(A1,1),CONST(REF(A5,10)),A3); A7:MA(A6,10); L1:=LLV(L,10); DRAWBAND(A4,90,L1,RGB(35,135,35)); DRAWBAND(A7,90,A4,90); 敢死队操作线:MA(C,24),LINETHICK2,COLORLIMAGENTA; 操作线2:MA(C,26),LINETHICK1,COLORLICYAN; DRAWKLINE(HIGH,OPEN,LOW,CLOSE); 爆发点:=(DCLOSE-REF(C,1))/REF(C,1)*100; XG:=CROSS(爆发点,20) OR CROSS(爆发点,18); L3:IF(XG,O,L1*0.999),COLORYELLOW; STICKLINE(XG,L3,L3,100,0); DRAWTEXT(XG,L3,'起爆点'),COLORMAGENTA;
2、零轴上金叉指标公式
N:=20;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
V1:=C>REF(C,1)*1.04 AND C>0;
DIF>0 AND ABS(MACD)<0.01 and="" v="">MA(V,N) AND C>=REF(C,BARSLAST(V1)) ;
3、绝杀牛股主图
MA34:MA(C,34),NODRAW;
MA4:MA(CLOSE,M4),COLORBLUE,LINETHICK4,COLORGREEN,NODRAW;
M34:MA(CLOSE,34),COLORRED,LINETHICK2,NODRAW;
X:=BARSLAST(REF(CROSS(C,MA(C,120)),1)) AND CROSS(MA(C,20),MA(C,120));
DRAWTEXT(X,MA(C,120)-0.10,'【【牛股】】'),LINETHICK3,COLORWHITE;A:=BARSCOUNT(C);
抽:=HHV(H,200);
插:=LLV(L,200);
高潮:=(抽-插)/43;
B1:=L-高潮;
STICKLINE((A+0)/23=FLOOR((A+0)/22),B1,B1-2.5*高潮,3,0),COLORF00FF0;
DRAWTEXT((A+0)/23=FLOOR((A+0)/22),B1-1*高潮,'黑马起飞'),COLORWHITE,COLORYELLOW;
{顶底背离}
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(L* 0.98),'【底背离】'),COLORYELLOW;
{DRAWICON(CROSS(FF,MA15),(LOW * 0.99),7); };
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1
AND
EMA(X1,13)>REF(EMA(X1,8),1),10),
EMA8,'∠45上升'),COLORWHITE;
V5:=MA(VOL,5),NODRAW;
V10:=MA(VOL,10),NODRAW;
V20:=MA(VOL,20),NODRAW;
B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
分水岭:IF(MA(CLOSE,17)
PMA:=分水岭,NODRAW;
DD:=分水岭
IF(DD,分水岭,DRAWNULL),COLOR00FF00,LINETHICK1;
操作线:分水岭-(EMA(C,3)-分水岭),COLOR00FFFF,LINETHICK1;
S:=(PMA>操作线);
IF(S,分水岭,DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK1;
PM:MA(C,5),COLORFFFFCC,LINETHICK1,NODRAW,NODRAW;
IF(PM>REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK1;
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;
IF(PM
DRAWTEXT(CROSS(分水岭,操作线),分水岭-0.1,'三底背离');
A1:=BARSLAST(REF(CROSS('MACD.DIF','MACD.DEA'),1));
4、做中、长期,大波段的利器---黄金主图
使用方法:本指标适合抓大波段,买点为出现第一个黄金柱,卖点为出现第一个蓝色柱。
原则为M1上穿M2时即出现第一个黄金柱,则需要买入准备,待第二天如果形式向好,则以当天M1价买入;如果价格回档不大,则以当天M1、M2两线平均价买入;如果当天回档较大,则以M2价格买入。以后只要不有效跌破M2,即可持股,待有效跌破M2或是M1下穿M2,则需卖出,以当天M1、M2交叉价格出货或是第二天以M2价格清仓。如买入发现即出现卖点,则坚决清仓
选股公式:
{N:1,50,20; N1:1,20,7; N2:1,100,79}
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
M1:EMA(CLOSE,3);
M2:EMA(CLOSE,8);
M3:EMA(M2,13);
M4:EMA(M2,55);
持股区域:STICKLINE(A>B,A,B,2,0),COLORYELLOW;
持币区域:STICKLINE(A
5、缩量十字星选股
A1:=REF(V,1);
A2:=REF(V,2);
A3:=REF(V,3);
T1:=V
T2:=HIGH>OPEN AND HIGH>CLOSE AND LOW
MA13:=MA(C,13);
T3:=EXIST(MA13>REF(MA13,1),3) AND (C-MA13)/MA13<0.01 and="" (c-ma13)/ma13="">0;
T1 AND T2 AND T3;
6、顺水扬帆
VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
BBBB:= VAR3;
DDD:= VAR4;
VAR5:=CROSS(VAR3,VAR4) AND VAR3<>
VAR9:=CROSS(VAR4,VAR3) AND VAR3>80;
VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
SSS:=DD,COLOR0000FF,LINETHICK2,COLORGREEN;
GGG:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
N:=9;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
E:=(K+D)/2;
HHH:=(K+D)/2;
AAA:HHH>REF(HHH,1) AND SSS<>
7、筹码低位单峰密集
MJ:=8;
T:=100;
A1:=COST(85);
A2:=COST(15);
A3:=A1-A2;
A4:=(A1+A2)/2;
A5:=A3/A4*100 ;
B1:=HHV(HIGH,T);
B2:=LLV(LOW,T);
B3:=B1-B2; B4:=(A4-B2) 低位单峰密集:A5 AND B4;
8、突破前高选股公式
SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);
SR2:=FILTER(SR1,10);
SR3:=BACKSET(SR2,10+1);
HD:=FILTER(SR3,10);
前高:=REF(H,BARSLAST(HD));
突破前高:CROSS(C,前高);
9、敢死队抓牛公式
var1:=C/REF(C,2)>=1.085;
var2:=O=L AND H=C;
var3:=V
敢死队:var1 AND var2 AND var3 AND COUNT(var1 AND var2 AND var3,20)=1;
天妖:0.7*((C-O)/REF(C,1)>=0.08),colormagenta;
狙击手:0.4*((C-O)/REF(C,1)>=0.08),colorgreen;
10、实战用的换手率
换手:VOL/CAPITAL*100,NODRAW,COLORYELLOW;
STICKLINE(C>O,0,换手,3,1),COLORRED;
STICKLINE(O>C,0,换手,3,0),COLORCYAN;
STICKLINE(C=O,0,换手,3,1),COLORYELLOW;
STICKLINE(换手>=5,0,换手,0.5,0),COLORGRAY;
STICKLINE(换手>=10 AND C>O,0,换手,3,0),COLORLIMAGENTA;
STICKLINE(换手>=10 AND C
STICKLINE(换手>=10 AND C=O,0,换手,3,0),COLORYELLOW;
五日:MA(换手,5),COLORYELLOW;
十日:MA(换手,10),COLORMAGENTA;
三十日:MA(换手,30),COLORGREEN;
EE:=V>REF(HHV(V,20),1);
DRAWICON(EE,0,9);
DRAWICON(SUM(换手,10)>30,-0.1,1);
DRAWICON(SUM(换手,10)>80,-0.1,23);
11、短线操作较准的指标,阴线流入
VAR11AA:=EMA(CLOSE,30)-EMA(CLOSE,17);
VAR12AA:=EMA(VAR11AA,5);
九:=TROUGHBARS(3,10,1)<1 and="">
DRAWICON(九>0,8,1 );
DRAWTEXT(九,99,'九'),COLOR000000;
VAR2A:=(EMA(CLOSE,26)-EMA(CLOSE,52))/MA(CLOSE,60)*100;
VAR3A:=EMA(VAR2A,18);
VAR4A:=VAR2A<>
VAR5A:=VAR4A AND CROSS(VAR2A,VAR3A);
追2:=VAR5A;
追涨C:=IF(追2>0,0.8,0),STICK,COLORYELLOW,LINETHICK4 ;
XX:=EMA(CLOSE,30)-EMA(CLOSE,17);
YY:=EMA(XX,13);
短针2:=TROUGHBARS(3,5,1)<1 and=""> <>
阴:=IF(短针2>0,0.4,0),STICK,COLORF0F000,LINETHICK4;
DRAWICON(阴>0,8,1 );
DRAWTEXT(阴,85,'阴'),COLOR000000;
N1:=30;N2:=17;N3:=5;N4:=6;
VAR1X:=EMA(CLOSE,N1)-EMA(CLOSE,N2);
VAR2X:=EMA(VAR1X,N3);
剑:=CROSS(VAR1X,VAR2X) AND TROUGHBARS(3,7,1)<>
DRAWICON(剑>0,8,1 );
DRAWTEXT(剑,73,'剑'),COLOR000000;
阴剑: 九 OR 剑 OR 阴;
12、KDJ提前金叉选股公式
N:=5;M1:=5;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,M1,5);
J:=3*K-2*D;
VARB2:=(RSV/2+22)*1;
量:=EMA(VOL,13);
资金:=EMA(AMOUNT,13);
过滤:=((资金 /量) / 100);
提纯:=(((CLOSE -过滤) / 过滤) * 100);
黄金:=((提纯 < (0))="" and="">
低买:=IF(黄金 AND RSV<>
高卖:=IF(黄金 AND RSV>VARB2,80,120);
上涨分界:=25;
选股:(CROSS(上涨分界,低买));
13、低位涨停
适合涨幅小或者低位底部,未有过大放量,阳盛阴衰,量价配合较好,参考决策。
XG:REF(V,3)>=REF(V,4)*1.9 AND REF(C,3)>REF(O,4) AND LLV(C,3)>REF(C,3) AND COUNT(C>=O,4)=4 AND (MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(C,3) OR (C+REF(C,1)+REF(C,2))/3>=REF(C,3)) AND ((REF(V,2)>REF(V,1) AND V <>
14、私募内线选股公式
M21:=MA(C,21); M55:=MA(C,55); A0:=M21>REF(M21,1) AND M55>REF(M55,1); A1:=COUNT(V>REF(V,1),2)>=2; A3:=KDJ.K>KDJ.D; A4:=MACD.DIF>0; A5:=CCI.CCI>100; A6:=C>BOLL.BOLL; {ST:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);} S2:=DYNAINFO(4)>0; A0 AND A1 AND A3 AND A4 AND A5 AND A6 AND S2;
这个公式我用了很久了,的确非常不错,现在分享给大家,希望能有帮助。
任何指标公式都不是万能的,需要认真体会,都有错误的时候出现,希望大家好好体会,这真是一个不错的指标!如果有不懂设置的朋友或者发现公式有误,可以及时给我留言或去到李韩薇公众号探讨,里面还有更多相关技术文章是可以学习的,希望散户们多多交流,一起进步。
有话要说...