通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信倍量突破选股指标公式


  

ab:=(HHV(MA(HIGH,13),13))*(1);  

ba:=(LLV(MA(HIGH,13),1))*(1);  

龙腾突破:(CLOSE>OPEN)AND(HIGH>ab)AND(OPEN<ab)AND((HIGH-REF(CLOSE,1))/(REF(CLOSE,1))>0.06);  

N:=14;  

LC:=REF(CLOSE,1);  

RSI:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;  

压:=DRAWLINE(RSI>=HHV(RSI,10),RSI,RSI<=LLV(RSI,3),HHV(RSI,3),1);  

Q:=5;  

AA:=REF(RSI,Q)=HHV(RSI,2*Q+1);  

BB:=FILTER(AA,Q);  

CC:=BACKSET(BB,Q+1);  

DD:=FILTER(CC,Q);  

AAA:=REF(RSI,Q)=LLV(RSI,2*Q+1);  

BBB:=FILTER(AAA,Q);  

CCC:=BACKSET(BBB,Q+1);  

DDD:=FILTER(CCC,Q);  

R11:=BACKSET(ISLASTBAR,BARSLAST(DD)+1);  

S11:=R11>REF(R11,1);  

压力:=DRAWLINE(DD,RSI,S11,RSI,1);  

RSI突破:CROSS(RSI,压)ANDCROSS(RSI,压力);  

VVOL:IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;  

STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;  

VOLUME:VOL,VOLSTICK;  

AA:=VOL>REF(V,1)*1.9;  

AA1:=VOL<REF(LLV(VOL,13),1);  

AA2:=VOL<REF(LLV(VOL,55),1);  

STICKLINE(AA,0,V,1,0),COLORYELLOW;  

STICKLINE(AA1,0,V,1,0),COLORGREEN;  

STICKLINE(AA2,0,V,1,0),COLORMAGENTA;  

TJ1:=COUNT(V>REF(V,1)*1.9,4)=1;  

TJ2:=COUNT(V<REF(V,1)ANDL>MIN(L,4)ANDL>REF(L,1),3)=3;  

TJ3:=TJ1ANDTJ2;  

STICKLINE(TJ3,0,V,1,0),COLORRED;  

MV2:MA(V,2);  

MV6:MA(V,6);  

MV20:MA(V,20);  

真阳或假阴:=C>OORC>REF(C,1);  

收阳:=REF(真阳或假阴,3);  

倍数:=1.9;  

倍量:VOL>=REF(V,1)*倍数AND(IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW;  

VOL1:=VOL*0.7;  

STICKLINE(倍量,0,20,1.5,0),COLORYELLOW;  

STICKLINE(倍量,0,35,0.5,0),COLORRED;  

倍量1:=REF(倍量,3);  

三日不破:=LLV(C,3)>=REF(L,3);  

倍量将军柱:倍量1AND三日不破AND收阳;  

CV:=CLOSE;  

BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;  

UPR:=BBIBOLL+6*STD(BBIBOLL,11);  

DWN:=BBIBOLL-6*STD(BBIBOLL,11);  

QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));  

XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));  

HSL:=(XVL/3)/1.15;  

攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));  

LLJX:=EMA(攻击,3);  

B1A:=IF(SUM(LLJX,1)>REF(MA(SUM(LLJX,1),1),1),SUM(LLJX,1),DRAWNULL);  

B2:=IF(SUM(LLJX,2)>REF(MA(SUM(LLJX,2),1),1),SUM(LLJX,2),DRAWNULL);  

B3:=IF(SUM(LLJX,3)>REF(MA(SUM(LLJX,3),1),1),SUM(LLJX,3),DRAWNULL);  

B4:=IF(SUM(LLJX,4)>REF(MA(SUM(LLJX,4),1),1),SUM(LLJX,4),DRAWNULL);  

B5:=IF(SUM(LLJX,5)>REF(MA(SUM(LLJX,5),1),1),SUM(LLJX,5),DRAWNULL);  

B6:=IF(SUM(LLJX,6)>REF(MA(SUM(LLJX,6),1),1),SUM(LLJX,6),DRAWNULL);  

B7:=IF(SUM(LLJX,7)>REF(MA(SUM(LLJX,7),1),1),SUM(LLJX,7),DRAWNULL);  

B8:=IF(SUM(LLJX,8)>REF(MA(SUM(LLJX,8),1),1),SUM(LLJX,8),DRAWNULL);  

B9:=IF(SUM(LLJX,9)>REF(MA(SUM(LLJX,9),1),1),SUM(LLJX,9),DRAWNULL);  

B10:=IF(SUM(LLJX,10)>REF(MA(SUM(LLJX,10),1),1),SUM(LLJX,10),DRAWNULL);  

XG:=B1AANDB2ANDB3ANDB4ANDB5ANDB6ANDB7ANDB8ANDB9  

ANDB10AND(CLOSE-OPEN)>=(UPR-BBIBOLL)ANDV/REF(V,1)>=1.9;  

DRAWICON(XG,-5,34);  

WR2:EMA(-(HHV(HIGH,89)-CLOSE)*10/(HHV(HIGH,89)-LLV(LOW,89))*10,5)+60,COLORBLUE,LINETHICK1;  

IF(WR2>REF(WR2,1),WR2,DRAWNULL),COLORYELLOW,LINETHICK1;  

IF(WR2>REF(WR2,1)ANDREF(WR2,1)<REF(WR2,2),WR2,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;  

A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);  

黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF;  

A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;  

A3:=EMA(C,5);  

A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;  

趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;  

A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;  

DRAWTEXT(FILTER(REF(黑马线,1)&gt;90ANDA2&lt;0,7),黑马线,'跑'),COLOR00FF00;  

DRAWTEXT(CROSS(A1,黑马线)AND黑马线&lt;A5,黑马线,'黑马');  

DRAWTEXT(CROSS(黑马线,A5)AND趋势线&lt;80,黑马线,'追涨');  

DRAWTEXT(CROSS(趋势线,0)AND黑马线&lt;40,5,'大黑马');  

底部:(A2&lt;-10ANDA2&gt;REF(A2,1))*25,COLORRED;  

DRAWICON(底部ANDA3&gt;REF(A3,1),25,4);  

机会来临:REF(IF((MA(C,5)-C)/C&gt;0.04AND(MA(C,10)-MA(C,5))/MA(C,5)&gt;0.04,30,0),1),COLORF00FF0;  

大势已去:IF(CROSS(黑马线,A1)AND黑马线&gt;70AND趋势线&gt;80,90,100),COLORFF0000;


image.png

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

ZT赋值:如果模糊匹配品种名称ORNAMELIKE('*ST'),返回收盘价=计算涨停价,否则返回如果模糊匹配品种代码OR(模糊匹配品种代码ANDDATE>=1200824),返回收盘价=计算涨停价,否则返回收盘价=计算涨停价

4日前的ZT AND 1日前的最近3日一直存在收阴线 AND 1日前的最近2日一直存在收盘价+开盘价的绝对值<1日前的收盘价+开盘价的绝对值 AND 开盘价>1日前的收盘价

每日通达信公式解答:

  

编写条件:  

MACD水下二次金叉,两金叉相隔10个交易日之内的选股公式。  

编写方法:  

AA:=CROSS(MACD.DIF,MACD.DEA)ANDMACD.DIF<0;  

XG:REF(BARSLAST(AA),1)<15ANDAA;

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