通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

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

  

E5:=EMA(C,5);E13:=EMA(C,13);  

DRAWBAND(E5,RGB(200,0,0),E13,RGB(0,200,0));  

DRAWKLINE(H,O,L,C);  

MA5:MA(C,5);  

MA10:MA(C,8),LINETHICK1,COLORYELLOW;  

MA30:MA(C,30),LINETHICK2,COLORGREEN;  

MA55:MA(C,55),LINETHICK3,COLORLIMAGENTA;  

盘整天数:=5;{盘整天数自己调,以5–7日为最佳}  

下探幅度:=5;  

上冲幅度:=25;  

涨停:=(C-REF(C,1))/REF(C,1)>0.09;{涨幅大于9个点}  

缩量:=HHV(VOL,盘整天数-2)<REF(VOL,盘整天数-1)ANDSUM(VOL,盘整天数)>2*SUM(VOL,盘整天数-2);  

七伤拳:=缩量ANDREF(涨停,盘整天数)ANDCOUNT(涨停,盘整天数+1)=1AND(HHV(H,盘整天数)-REF(C,盘整天数))/REF(C,盘整天数)*100<上冲幅度AND(LLV(L,盘整天数)-REF(C,盘整天数))/REF(C,盘整天数)*100>(下探幅度*-1);  

DRAWTEXT(七伤拳,LOW*0.98,'七伤拳'),COLORRED;  

阳涨幅:=3.5;  

阳倍量:=1.9;  

单阳收:=C;  

单阳开:=O;  

单阳:=单阳收>=REF(C,1)*(1+阳涨幅/100)ANDVOL>REF(VOL,1)*阳倍量;  

DRAWTEXT(CURRBARSCOUNT<100AND单阳,L*0.98,'阳'),COLOR00FFFF;  

高不破价:=REF(C,BARSLAST(单阳));  

低不破价:=REF(L,BARSLAST(单阳));  

单阳不破:=CURRBARSCOUNT<100ANDBARSLAST(单阳)<11AND(LLV(L,BARSLAST(单阳))>低不破价ORLLV(L,BARSLAST(单阳))=低不破价);  

STICKLINE(单阳不破,低不破价-低不破价*0.0005,低不破价,4,0),COLORGREEN;  

STICKLINE(单阳不破,高不破价,高不破价,4,0),COLORRED;  

STICKLINE(单阳,单阳开,单阳收,2,0),COLORYELLOW;  

DRAWTEXT(BARSLAST(单阳)=1AND单阳不破,低不破价*0.98,'1'),COLORGREEN;  

DRAWTEXT(BARSLAST(单阳)=2AND单阳不破,低不破价*0.98,'2'),COLORGREEN;  

DRAWTEXT(BARSLAST(单阳)=3AND单阳不破,低不破价*0.98,'3'),COLORGREEN;  

DRAWTEXT(BARSLAST(单阳)=4AND单阳不破,低不破价*0.98,'4'),COLORGREEN;  

DRAWTEXT(BARSLAST(单阳)=5AND单阳不破,低不破价*0.98,'5'),COLORGREEN;  

DRAWTEXT(BARSLAST(单阳)=6AND单阳不破,低不破价*0.98,'6'),COLORGREEN;  

DRAWTEXT(BARSLAST(单阳)=7AND单阳不破,低不破价*0.98,'7'),COLORGREEN;  

DRAWTEXT(BARSLAST(单阳)=8AND单阳不破,低不破价*0.98,'8'),COLORGREEN;  

DRAWTEXT(BARSLAST(单阳)=9AND单阳不破,低不破价*0.98,'9'),COLORGREEN;  

DRAWTEXT(BARSLAST(单阳)=10AND单阳不破,低不破价*0.98,'10'),COLORGREEN;  

A1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3;  

A2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/3;  

A3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIGH+LOW+CLOSE)/4,14)+EMA((OPEN+HIGH+LOW+CLOSE)/4,28))/3;  

A4:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,9)+EMA((OPEN+HIGH+LOW+CLOSE)/4,18)+EMA((OPEN+HIGH+LOW+CLOSE)/4,36))/3;  

A5:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22)+EMA((OPEN+HIGH+LOW+CLOSE)/4,44))/3;  

A6:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,13)+EMA((OPEN+HIGH+LOW+CLOSE)/4,26)+EMA((OPEN+HIGH+LOW+CLOSE)/4,52))/3;  

A7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3;  

VAR1:=FORCAST(A1,6);  

VAR2:=FORCAST(A2,6);  

VAR3:=FORCAST(A3,6);  

VAR4:=FORCAST(A4,6);  

VAR5:=FORCAST(A5,6);  

VAR6:=FORCAST(A6,6);  

VAR7:=FORCAST(A7,6);  

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.91&&C>REF(C,1);  

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

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

AA3:=VOL<=REF(V,1)*0.59;  

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

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

STICKLINE(AA2,0,V,0.5,0),COLORBLUE;  

STICKLINE(AA3,0,V,0.5,0),COLORMAGENTA;  

MV1:MA(VOL,5),COLORYELLOW;  

MV2:MA(VOL,10),COLORMAGENTA;  

MV3:MA(VOL,60),COLORGREEN;  

IF(VAR1&gt;REF(VAR1,1),VAR1,DRAWNULL),POINTDOT,COLORFF00FF;  

IF(VAR1&lt;REF(VAR1,1),VAR1,DRAWNULL),POINTDOT,COLOR00FF00;  

IF(VAR2&gt;REF(VAR2,1),VAR2,DRAWNULL),POINTDOT,COLORFF00FF;  

IF(VAR2&lt;REF(VAR2,1),VAR2,DRAWNULL),POINTDOT,COLOR00FF00;  

IF(VAR3&gt;REF(VAR3,1),VAR3,DRAWNULL),POINTDOT,COLORFF00FF;  

IF(VAR3&lt;REF(VAR3,1),VAR3,DRAWNULL),POINTDOT,COLOR00FF00;  

IF(VAR4&gt;REF(VAR4,1),VAR4,DRAWNULL),POINTDOT,COLORFF00FF;  

IF(VAR4&lt;REF(VAR4,1),VAR4,DRAWNULL),POINTDOT,COLOR00FF00;  

IF(VAR5&gt;REF(VAR5,1),VAR5,DRAWNULL),POINTDOT,COLORFF00FF;  

IF(VAR5&lt;REF(VAR5,1),VAR5,DRAWNULL),POINTDOT,COLOR00FF00;  

IF(VAR6&gt;REF(VAR6,1),VAR6,DRAWNULL),POINTDOT,COLORFF00FF;  

IF(VAR6&lt;REF(VAR6,1),VAR6,DRAWNULL),POINTDOT,COLOR00FF00;  

IF(VAR7&gt;REF(VAR7,1),VAR7,DRAWNULL),LINETHICK2,COLORFF00FF;  

IF(VAR7&lt;REF(VAR7,1),VAR7,DRAWNULL),LINETHICK2,COLOR00FF00;  

TOWERC:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6);  

DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1));  

DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1));  

STICKLINE(TOWERC&gt;=REF(TOWERC,1),TOWERC,DIRECTIONMAX,4,0),COLOR0000FF;  

STICKLINE(TOWERC&lt;REF(TOWERC,1),TOWERC,DIRECTIONMIN,4,0),COLOR00FF00;;

image.png

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

输出XG:最低价<收盘价的30日简单移动平均 AND 收盘价>收盘价的30日简单移动平均

每日通达信公式解答:



  

编写条件:  

今日收阳线且今日5日均线在K线实体的2/3上方的选股公式。  

编写方法:  

AA:=(C-O);  

XG:C>OANDBETWEEN(MA(C,5),(AA*2/3+O),(AA+O));


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