通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信抓涨停选股器指标公式

  

VAR1:=C/REF(C,1)>1.05ANDLOW<CLOSE;  

VAR2:=C/LLV(LOW,4)<1.15ANDCLOSE/LLV(LOW,4)>1.05;  

VAR3:=LLV(LOW,4)=LLV(LOW,10);  

LS:=C/REF(C,1)>1.090ANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));  

VAR4:=FILTER(LS,28);  

捉妖降龙:VAR1AND(VAR2ORVAR3)ANDVAR4ANDHSL>0.2;  

DYZT:C/REF(C,1)>1.090AND  

LLV((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100,5)<0AND  

(((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100-(CLOSE-MA(CLOSE,25))/MA(CLOSE,24)*100))>5  

ANDMA(C,5)<MA(C,60);  

A:=(3*C+L+O+H)/6;  

X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+  

14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)  

+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+  

REF(A,20))/210;  

S2:=SMA(C,3,1);  

S6:=SMA(C,5,1);  

DK:=2*(S2-S6);  

主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;  

短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;  

IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2;  

IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2;  

IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE;  

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);  

MA5:=MA(C,5);  

MA10:=MA(C,10);  

MA30:=MA(C,30);  

FA:=BARSLAST(CROSS(MA10,MA5))ANDCROSS(MA5,MA10);  

FB:=FAANDMA5>MA30ANDMA10>MA30ANDMA10>REF(MA10,1);  

DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;  

V1:=EMA(CLOSE,5);  

V2:=EMA(EMA(CLOSE,90)*1.01,10);  

DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;  

VAR1:=LLV(LOW,21);  

VAR2:=HHV(HIGH,21);  

AK1:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*100),5);  

AK:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*50),13);  

AB:=CROSS(AK1,AK);  

DRAWTEXT((AB=1),(LOW*0.99),'○牛窝'),COLORYELLOW;  

AA1:=AMOUNT/V;  

BB1:=L<AA1*0.9;  

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;  

DD1:=L<MA(C,5)*0.921;  

EE1:=V<MA(V,5)*1.5;  

老鼠仓:=BB1ANDCC1ANDDD1ANDEE1,LINETHICK0,COLOR0099FF;  

DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;  

VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);  

VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05)AND((HIGH)/(CLOSE)<1.01)AND(VAR3AA>0),91,0);  

DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF;  

DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;  

A1AA:=9;  

A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);  

DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;  

VAR6:=REF(C,1);  

VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;  

DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼逃顶'),COLORYELLOW;  

IF(REF(C,2)<REF(C,3)*0.98ANDREF(C,4)<REF(C,5)*0.98  

ANDREF(OPEN,3)<=REF(C,3)ANDREF(O,2)>REF(C,2)ANDREF(OPEN,4)>REF(C,4)  

ANDC<OANDREF(C,1)<REF(O,1)  

ANDREF(H,2)<REF(MA(C,10),2),1,0);  

XG:REF(V,3)>=REF(V,4)*1.9ANDREF(C,3)>REF(O,4)AND  

LLV(C,3)>REF(C,3)ANDCOUNT(C>=O,4)=4AND  

(MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(C,3)OR  

(C+REF(C,1)+REF(C,2))/3>=REF(C,3))AND((REF(V,2)>REF(V,1)AND  

V<REF(V,1))ORMAX(V,REF(V,1))<REF(V,2));  

CJL:=VOL/REF(MA(VOL,5),1);  

ZDY:=O/REF(C,1)<1.06;  

JD:=ATAN((MA(C,13)/REF(MA(C,13),1)-1)*100)*57.3;  

XG:CJL>2.5ANDZDYANDCROSS(JD,45);

image.png

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

ZT赋值:收盘价>=计算涨停价 AND 收盘价=最高价

输出XG:1日前的条件连续成立次数=2 AND 最高价>=计算涨停价 AND 收盘价<最高价

每日通达信公式解答:

  

编写要求:  

一个涨停板后单边下跌,下跌幅度在30天内不大于30%,振幅不大于60%的选股公式。  

解答:  

ZT:=C>=ZTPRICE(REF(C,1),0.1);  

累计跌幅:=SUM(C/REF(C,1)<0,30)<1.3;  

ZF:=(H-L)/REF(C,1)*100;  

振幅累和:=SUM(ZF,30)<=60;  

XG:REF(ZT,30)AND累计跌幅AND振幅累和<=60;


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