任何公式指标都不可能選出的股票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;
這個公式我用了很久了,的确非常不錯,現在分享給大家,希望能有幫助。
任何指标公式都不是萬能的,需要認真體會,都有錯誤的時候出現,希望大家好好體會,這真是一個不錯的指标!如果有不懂設置的朋友或者發現公式有誤,可以及時給我留言或去到李韓薇公衆号探讨,裡面還有更多相關技術文章是可以學習的,希望散戶們多多交流,一起進步。
有話要說...