通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信连续涨停预警指标公式

  

VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);  

VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);  

VAR3:=EMA(VAR2,10);  

VAR4:=LLV(LOW,33);  

VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);  

主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),colorred,NODRAW;  

STICKLINE(VAR5>REF(VAR5,1),0,-VAR5,3,-1),COLORFFFF00;  

洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),colorgreen,NODRAW;  

STICKLINE(VAR5<REF(VAR5,1),0,-VAR5,3,-1),COLORFF00FF;  

NMTM:=C-REF(C,1);  

ZLGJ:100*EMA(EMA(NMTM,5),5)/EMA(EMA(ABS(NMTM),5),5),colorred,LINETHICK1;  

MAZL:MA(ZLGJ,9),COLORFFCAC5,LINETHICK1,DOTLINE;  

STICKLINE(REF(ZLGJ,1)<=ZLGJ,ZLGJ,REF(ZLGJ,1),2,0),colorred;  

STICKLINE(REF(ZLGJ,1)>ZLGJ,ZLGJ,REF(ZLGJ,1),2,0),colorgreen;  

XG:(VAR5<REF(VAR5,1)ANDREF(NOT(VAR5<REF(VAR5,1)),1))AND(REF(ZLGJ,1)<=ZLGJ  

ANDREF(NOT(REF(ZLGJ,1)<=ZLGJ),1)),COLORFF00FF,NODRAW;  

DRAWICON(XG,0,34);  

连续小阳:=EVERY(CLOSE>OPEN,5)ANDEVERY(CLOSE/REF(CLOSE,1)<1.06,5);  

连续放量:=100*SUM(VOL,10)/CAPITAL>=15ANDMA(VOL,10)/REF(MA(VOL,10),10)>2;  

买点:连续小阳AND连续放量;  

涨停:=IF(CODELIKE('300'),C>REF(C,1)*1.1984,C>=ZTPRICE(REF(C,1),0.1))ANDC=H;连续大阳:=EVERY(H/L>IF(CODELIKE('300'),1.095,1.0555)ANDC>OANDV>=MIN(MA(V,5),MA(V,10))*IF(REF(EXIST(V>=HHV(V,100),6),1),0.558,0.85),3)ANDCOUNT(涨停,5)<=2ANDC>MA(C,10);{5天内存在连续3天放量大阳线}宽幅震荡:=COUNT(H/L>IF(CODELIKE('300'),1.095,1.0585)ANDC>OANDV>=MIN(MA(V,5),MA(V,10))*0.85,5)>=3ANDCOUNT(涨停,5)<=2ANDC>MA(C,10);{5天内有4天大震幅并且3天阳线}过滤条件:=NAMELIKE('ST')ORNAMELIKE('*')ORBARSCOUNT(V)<=25{次新}ORDYNAINFO(9)=0{总量=0,停牌}ORCODELIKE('68');堆量回调:(连续大阳OR宽幅震荡)AND过滤条件=0;  

R1:=150*WINNER(CLOSE*0.95);  

VAR3:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);  

VAR4:=(CLOSE-LLV(CLOSE,126))/(HHV(CLOSE,126)-LLV(CLOSE,126))*100;  

VAR5:=EMA(CLOSE,2)-EMA(CLOSE,120);  

VAR6:=EMA(VAR5,68);  

VAR7:=(VAR5+VAR6);  

敢死:=POW(VAR7,3)*0.1+POW(VAR7,1);  

核心:=MA(敢死,30);  

涨停:=1;  

警:=涨停*核心/5;  

Y:=MA(警,6);  

Y1:=警-Y;  

G:=C>=INTPART(REF(C,1)*1.08*100+0.5)/100;  

G1:=G*核心/5;  

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;  

K:=(SMA(RSV,3,1));  

D:=(SMA(K,3,1));  

KK:=INTPART(SMA(RSV,3,1));  

DD:=INTPART(SMA(K,3,1));  

N:=KK+DD;  

涨停信号:=ABS((10000*(C-REF(C,1))/REF(C,1)>995)*G1);  

选股:CROSS(N,100)OR涨停信号>0;  

量:=ref(c,ref(hhvbars(v,21),0))COLORGREEN,linethick0;m1:=ma(close,1)linethick0;a:=V>1*ref(V,1)and(c/ref(C,1)-1)*100>9.5andm1>=量,COLORRED;DRAWICON(cross(a,1),l*0.98,3)COLORWHITE,;DRAWTEXT(a,l*0.93,'涨停王'),LINETHICK1,coloryellow;

image.png

[源码注释]通达信公式动态翻译结果

输出XG:(收盘价/60日前的收盘价-1)*100>2

每日通达信公式解答:

  

A:=(C-LLV(C,10))/EMA((C-LLV(L,10)),5);  

B1:=MA(C,55)>REF(MA(C,55),1)ANDMA(C,20)>REF(MA(C,20),1);  

B:=COUNT(B1,10)=10;  

D1:=CAPITAL/1000000<10;{去除大盘股}  

D2:=NOT(NAMELIKE('S')ORNAMELIKE('*S'))ANDVOL>1;{去除ST和停牌}  

D:=D1ANDD2;  

E1:=KDJ.J<0;  

E:=COUNT(E1,5)>=1ANDKDJ.J>REF(KDJ.J,1);  

加仓:BANDREF(A,1)=0ANDA>0ANDL>MA(C,55)ANDC>OANDEANDD;  

选股公式翻译  

A赋值:(收盘价-10日内收盘价的最低值)/(收盘价-10日内最低价的最低值)的5日指数移动平均  

B1赋值:收盘价的55日简单移动平均>1日前的收盘价的55日简单移动平均AND收盘价的20日简单移动平均>1日前的收盘价的20日简单移动平均  

B赋值:统计10日中满足B1的天数=10  

D1赋值:当前流通股本(手)/1000000<10  

D2赋值:取反AND成交量(手)>1  

D赋值:D1ANDD2  

E1赋值:KDJ的J<0  

E赋值:统计5日中满足E1的天数>=1ANDKDJ的J>1日前的KDJ的J  

输出加仓:BAND1日前的A=0ANDA>0AND最低价>收盘价的55日简单移动平均AND收阳线ANDEANDD

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。