通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信涨停标记指标公式

  

W1:=C=HHV(C,20);  

W2:=BARSLAST(W1);  

W3:=IF(W2>0,REF(C,W2),REF(C,W2));  

W4:=CROSS(C,REF(W3,1));  

A:MA(CLOSE,26);  

UP:A+2*STD(CLOSE,26);  

LOWER:A-2*STD(CLOSE,26);  

DRAWICON(W4ANDCOUNT(W4,5)=1,LOW,3);  

涨停:=IF((C-REF(C,1))*100/REF(C,1)>=9.90,1,0);  

XG:EVERY(涨停,3);  

STICKLINE(XG,70,0,0.2,0),COLORGREEN;  

VOLUME:VOL,VOLSTICK;  

LG:TOPRANGE(VOL),NODRAW,COLOR00FF00;  

LD:LOWRANGE(VOL),NODRAW,COLOR0000FF;  

TJ:=C<OANDAMOUNT/V/100>REF(C,1);  

STICKLINE(TJ,VOL,0,-1,0),COLOR8080FF;  

百日地量:=VOL<REF(LLV(VOL,100),1);  

DRAWTEXT(百日地量,V,'1'),NOFRAME,DRAWABOVE,colorliblue;  

缩量二一:=VOL/REF(VOL,1)<0.5ANDNOT(百日地量);  

DRAWTEXT(缩量二一,V,'2'),NOFRAME,DRAWABOVE,colorliblue;  

缩量三一:=VOL/REF(VOL,1)<0.67ANDNOT(缩量二一)ANDNOT(百日地量);  

DRAWTEXT(缩量三一,V,'3'),NOFRAME,DRAWABOVE,colorliblue;  

G100:TOPRANGE(VOL)>100,NODRAW;  

STICKLINE(G100,V,V*0.95,-1,0),COLOR0000FF;  

D20:LOWRANGE(VOL)>20,NODRAW;  

STICKLINE(D20,0,V*0.2,-1,0),COLOR0000FF;  

D100:=LOWRANGE(VOL)>99,NODRAW;  

STICKLINE(D100,0,V,-1,0),colorblack;  

FS:=V/4>REF(V,1),NODRAW;  

STICKLINE(FS,V,V*0.98,-1,0),colorblack;  

价腰:(L+H)/2,NODRAW,colorblue;  

实腰:(O+C)/2,NODRAW,colorblue;  

价上31:MAX(H,L)-(H-L)/3,NODRAW,colormagenta;  

价下31:MIN(H,L)+(H-L)/3,NODRAW,colormagenta;  

实上31:MAX(O,C)-ABS(O-C)/3,NODRAW,COLORFF0000;  

实下31:MIN(O,C)+ABS(O-C)/3,NODRAW,COLORFF0000;  

VB:V/REF(V,1),NODRAW,colorred;  

HH:MA(C,3)-REF(C,3),NODRAW,COLOR808080;  

VH:REF(C,2)*3-REF(C,1)-C;  

量比:DYNAINFO(17),NODRAW,colorred;  

低开3点:=REF(C,1)*0.97>O;  

DRAWTEXT(低开3点,V*1.02,'*');  

MV1:MA(VOL,5);  

MV2:MA(VOL,40);  

MV3:MA(VOL,135);  

MA5:MA(C,5);MA10:MA(C,10);MA20:MA(C,20);MA55:MA(C,55);DRAWICON(CURRBARSCOUNT=5,H*1.03,35);DRAWICON(CURRBARSCOUNT=10,H*1.03,35);DRAWICON(CURRBARSCOUNT=20,H*1.03,35);DRAWICON(CURRBARSCOUNT=55,H*1.03,35);  

ZT:=C/REF(C,1)>1.095ANDC=H;  

TJ1:=COUNT(ZT,2)>0ANDO>REF(C,1);  

TJ2:=REF(C,1)>=REF(HHV(H,60),1);  

TJ3:=COUNT(C=H,2)>0ANDO>REF(C,1);  

XG:=(TJ1ORTJ3)ANDTJ2;  

STICKLINE(ZT,C*0.995,C,3,0),COLORYELLOW;  

STICKLINE(ZT,C*0.995,O,1,0),COLORYELLOW;  

DRAWICON(TJ1,L*0.99,1);  

DRAWICON(TJ2,L*0.98,7);  

STICKLINE(C=H,C*0.995,C,3,0),COLORMAGENTA;  

DRAWICON(XG,L*0.97,38);  

前高:IF(CURRBARSCOUNT<=60,CONST(REF(HHV(H,60),1)),DRAWNULL),DOTLINE;  

高开:(O-REF(C,1))/REF(C,1)*100,NODRAW;

image.png

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

ZT赋值:如果模糊匹配品种名称ORNAMELIKE('*ST'),返回收盘价/1日前的收盘价>0.495,否则返回如果(模糊匹配品种代码ORCODELIKE('300'))ANDDATE>=1200824,返回收盘价>1日前的收盘价>1.195,否则返回收盘价/1日前的收盘价>1.095

1日前的最高价=ZT并且收盘价<最高价并且开盘价/1日前的收盘价>1.05

每日通达信公式解答:

  

编写条件:  

涨停板经过3日调整,今日开盘跳空高开大于6%的选股公式。  

编写方法:  

ZT:=C/REF(C,1)>1.095ANDC=H;  

T:=BARSLAST(ZT);  

XG:EXIST(ZT,T+1)ANDO/REF(C,1)>1.06ANDT=3;

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