通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

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

  

W1:=vol/REF(VOL,1)<=0.6;  

W2:=VOL/REF(VOL,2)<=0.35;  

W3:W1ANDW2ANDDYNAINFO(17)!=0;  

〖量〗:vol,NODRAW,VOLstICK;  

STICKLINE(V>=3*REF(V,1),V/3,V/3,3.9,0),COLORWHITE;  

STICKLINE(V>=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW;  

流通〖亿〗:CAPITAL/1000000,LINETHICK0;  

内外比:DYNAINFO(51),COLORYELLOW,NODRAW;  

单日量比:V/REF(V,1),COLORWHITE,NODRAW;  

五日量比:V/(REF(ma(V,5),1)/240*FROMOPEN),COLORYELLOW,NODRAW;  

5换:SUM(100*V/CAPITAL,5),LINETHICK0;  

10换:SUM(100*V/CAPITAL,10),LINETHICK0;  

20换:SUM(100*V/CAPITAL,20),LINETHICK0;  

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

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

Q2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;  

Q3:=SMA(Q2,9,1);  

Q4:=SMA(Q3,3,1);  

趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK3;  

趋势线:EMA(Q3,3),COLORRED,LINETHICK3;  

DRAWTEXT(CROSS(趋势线,长趋势)ANDREF(长趋势,1)>80,REF(长趋势,3),'顶'),COLORRED,LINETHICK5;  

DRAWICON(CROSS(趋势线,长趋势)ANDREF(长趋势,1)>80,50,5);  

M1:=5;M2:=10;M3:=20;  

〖量〗:vol,NODRAW,VOLstICK;  

STICKLINE(V>=3*REF(V,1),V/3,V/3,3.9,0),COLORWHITE;  

STICKLINE(V>=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW;  

流通〖亿〗:CAPITAL/1000000,LINETHICK0;  

内外比:DYNAINFO(51),COLORYELLOW,NODRAW;  

单日量比:V/REF(V,1),COLORWHITE,NODRAW;  

五日量比:V/(REF(ma(V,5),1)/240*FROMOPEN),COLORYELLOW,NODRAW;  

5换:SUM(100*V/CAPITAL,5),LINETHICK0;  

10换:SUM(100*V/CAPITAL,10),LINETHICK0;  

20换:SUM(100*V/CAPITAL,20),LINETHICK0;  

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

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

VOLUME:VOL,VOLSTICK;  

MAVOL1:MA(VOLUME,M1),COLORWHITE;  

MAVOL2:MA(VOLUME,M2),COLORYELLOW;  

MAVOL3:MA(VOLUME,M3),COLORRED;  

倍量:=VOL/REF(VOL,1)>2;  

STICKLINE(倍量ANDC>REF(C,1),0,〖量〗,1,0),COLORRED;  

STICKLINE(倍量ANDC<REF(C,1),0,〖量〗,1,0),COLORGREEN;  

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

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

AA3:=VOL<REF(LLV(VOL,100),1);  

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

STICKLINE(AA2,0,V,0.6,1),COLORYELLOW;  

STICKLINE(AA3,0,V,0.3,1)COLORWHITE;  

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

A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);  

RMA:=EMA(C,7);  

NMA:=EMA(C,19);  

UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0);  

DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0);  

买进:((LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8&lt;0,2)ANDCROSS(A8,MA(A8,2)))ANDREF(DOWN,1)&lt;REF(DOWN,2)ANDUP&gt;REF(DOWN,1))=0;  

逢低买:(REF(CROSS(趋势线,长趋势),82)AND趋势线&gt;1.3*长趋势)*30,LINETHICK3;  

DRAWTEXT(REF(CROSS(趋势线,长趋势),82)AND趋势线&gt;1.3*长趋势,长趋势,'逢低买'),LINETHICK1;  

买:(REF(CROSS(长趋势,趋势线),1)AND长趋势&gt;1.3*趋势线)*40,LINETHICK3;  

DRAWTEXT(REF(CROSS(长趋势,趋势线),1)AND长趋势&gt;1.3*趋势线,趋势线,'买'),COLORRED,LINETHICK1;  

金叉:CROSS(长趋势,趋势线)*50,LINETHICK3;  

DRAWTEXT(金叉,趋势线,'★金叉'),COLORRED;  

AA:=REF(C,1)&lt;REF(O,1);  

BB:=O&lt;REF(C,1);  

CC:=C&gt;O;  

DD:=V&lt;REF(V,1);  

XG:AAANDBBANDCCANDDD;

image.png

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

输出XG:时间(时分)<0931并且开盘价/收盘价的10日简单移动平均<1.03

每日通达信公式解答:

  

编写要求:  

条件选股公式:(1)昨日K线收阳,今日K线收阴;(2)今日开盘价大于昨日收盘价;(3)今日开盘价大于昨日开盘价;(4)今日收盘价小于昨日收盘价;(5)今日最高价大于昨日最高价;  

公式在线网解答:  

AA:=REF(C,1)>REF(O,1)ANDC<O;  

BB:=O>REF(C,1);  

CC:=O>REF(O,1);  

DD:=C<REF(C,1);  

EE:=H>REF(H,1);  

XG:AAANDBBANDCCANDDDANDEE;

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