通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信竞价抓涨停指标公式


  

('*ST'),C=ZTPRICE(REF(C,1),0.05),  

IF(CODELIKE('688')OR(CODELIKE('300')ANDDATE>=1200824),C=ZTPRICE(REF(C,1),0.2),  

C=ZTPRICE(REF(C,1),0.1)));  

REF(ZT,4)ANDREF(EVERY(C<O,3),1)ANDREF(EVERY(Abs(C+O)<REF(ABS(C+O),1),2),1)ANDO>REF(C,1);  

PW:=((vol*(CLOSE-OPEN))/(CLOSE+OPEN));PW1:=Ema(((VOL*(CLOSE-OPEN))/(CLOSE+OPEN)),38);  

ME:EMA(PW1,8),COLORstICK;ME1:MA(ME,3),COLORYELLOW;ME2:MA(ME,10),COLORMAGENTA;  

T:=IF((BARSCOUNT(C)>7),(100)*((ma(C,7))/(LLV(MA(C,7),7))-1),1);  

N:=IF((T>0.35),6,65);  

W:=((-((100)*(HHV(H,N)-C))/(HHV(HIGH,N)-LLV(L,N))));  

RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;  

RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;  

J0:=(HIGH+LOW)/2;  

QJ:=EMA(J0,3);  

J1:=IF(CLOSE>QJ,vol,0);  

J2:=IF(CLOSE<QJ,VOL,0);  

BB:=MA(SUM(J1-J2,22),3),COLOR00DDDD,NODRAW;  

DRAWGBK(C&gt;O,RGB(60,0,0),RGB(0,0,0),1,2,1);  

N:=5;  

P1:=80;  

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

VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;  

VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;  

VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3,POINTDOT;  

VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;  

VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3,POINTDOT;  

VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;  

JJ:=(HIGH+LOW+CLOSE)/3;  

QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);  

QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));  

QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));  

QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));  

QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));  

DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;  

V2:=SMA(IF(C&gt;=REF(C,1),DDX,-DDX/100),2,1);  

V5:=SMA(V2*120/FROMOPEN*5,2,1);  

V10:=SMA(V5,5,1);  

V20:=SMA(V10,5,1);  

DY:=CURRBARSCOUNT=1ANDC&lt;REF(C,1);  

DY2:=REF(V2,1)-DY;  

异动:=CROSS(V2,REF(V2,1)*1.2)ANDLONGCROSS(CLOSE,REF(C,1)*1.025,4)ANDV/REF(MA(V,5),1)&gt;2,COLORMAGENTA;  

抓牛:C&gt;OANDDY2&lt;0.02ANDMA(C,5)&gt;MA(C,60)ANDC/REF(C,1)&gt;=1.02ANDREF(MACD,1)&lt;MACD,COLORYELLOW,LINETHICK3;  

GD:=DY2&lt;REF(DY2,1)ANDREF(DY2,1)&lt;REF(DY2,2)ANDREF(DY2,2)&lt;REF(DY2,3)ANDC&gt;OANDVAR3&gt;VAR5ANDC/REF(C,1)&gt;=1.02;  

GD2:=DY2&lt;REF(DY2,1)ANDREF(DY2,1)&lt;REF(DY2,2)ANDREF(DY2,2)&lt;REF(DY2,3)ANDVAR3&gt;VAR5;  

DRAWTEXT(CROSS(V2,REF(V2,1)*1.2)ANDLONGCROSS(CLOSE,REF(C,1)*1.025,4)ANDDDX/REF(MA(DDX,5),1)&gt;2,0,'★'),COLORMAGENTA;  

MACD:="MACD.MACD",NODRAW;  

拐点:CROSS(C,VAR2)ANDCROSS(C,VAR6)ANDMACD&lt;0ANDREF(MACD,1)&lt;MACD,COLORMAGENTA,LINETHICK3;  

STICKLINE(抓牛=1,0,8,2,0),COLORYELLOW;  

DRAWTEXT(抓牛=1,5,'抓牛'),COLORYELLOW;  

STICKLINE(拐点=1,0,8,2,0),COLORMAGENTA;  

DRAWTEXT(拐点=1,4,'拐点'),COLORMAGENTA;  

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

A2:=IF((CLOSE&gt;OPEN),(A1*(HIGH-LOW)),(IF((CLOSE&lt;OPEN),(A1*((HIGH-OPEN)+(CLOSE-LOW))),(VOL/2))));  

A3:=IF((CLOSE&gt;OPEN),(A1*((HIGH-CLOSE)+(OPEN-LOW))),(IF((CLOSE&lt;OPEN),(A1*(HIGH-LOW)),(VOL/2))));  

A5:(((A2/(A2+A3))*10));  

累加:=21*BB+20*REF(BB,1)+19*REF(BB,2)+18*REF(BB,3)+17*REF(BB,4)  

+16*REF(BB,5)+15*REF(BB,6)+14*REF(BB,7)+13*REF(BB,8)+12*REF  

(BB,9)+11*REF(BB,10)+10*REF(BB,11)+9*REF(BB,12)+8*REF(BB,13)  

+7*REF(BB,14)+6*REF(BB,15)+5*REF(BB,16)+4*REF(BB,17)+3*REF  

(BB,18)+2*REF(BB,19)+REF(BB,20);  

WMA:=累加/(21+1)/21*2;  

CC:=WMA,COLOR008800,NODRAW;  

VAR3:=(BB-CC);VAR4:=SMA(RV,3,1);  

VAR5:=SMA(VAR4,3,1);  

KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;  

DD:=SMA(KK,3,1),COLOR00FFFF;  

天天涨停:crOSS(W,-2)ANDCROSS(VAR4,VAR5)ANDCROSS(KK,DD);  

image.png

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

最近3日一直存在收盘价>OANDL=开盘价

每日通达信公式解答:

  

选股公式源码  

m5:=MA(c,5);  

m10:=ma(c,10);  

m20:=ma(c,20);  

m30:=ma(c,30);  

a1:=o<m5ando<m10ando<m20ando<m30;  

a2:=c>m5andc>m10andc>m20andc>m30;  

c>oandc>ref(c,1)anda1anda2;  

选股公式翻译  

M5赋值:收盘价的5日简单移动平均  

M10赋值:收盘价的10日简单移动平均  

M20赋值:收盘价的20日简单移动平均  

M30赋值:收盘价的30日简单移动平均  

A1赋值:开盘价M5AND收盘价>M10AND收盘价>M20AND收盘价>M30  

收阳线AND收盘价>1日前的收盘价ANDA1ANDA2

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