通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

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

  

低位:=REF(KDJ.J<=20,1);  

价胜:=C>REF(MAX(C,O),1)*1.00;  

量胜:=V>REF(V,1);  

XG:低位AND价胜AND量胜;  

长阴:=C<O*0.952;  

二分之一:(MAX(C,O)+MIN(C,O))/2,NODRAW;  

三分之二:(MAX(C,O)-MIN(C,O))/3*2+MIN(C,O)NODRAW;  

三分之一:(MAX(C,O)-MIN(C,O))/3+MIN(C,O)NODRAW;  

STICKLINE(长阴,C,三分之二,3,0),COLOR00FFFF;  

A:=EVERY(BETWEEN(C/REF(C,1),1.03,1),3);  

B:=EVERY(BETWEEN(C/REF(C,1),1.03,1),4);  

D:=EVERY(BETWEEN(C/REF(C,1),1.03,1),5);  

E:=EVERY(BETWEEN(C/REF(C,1),1.03,1),6);  

F:=EVERY(BETWEEN(C/REF(C,1),1.03,1),7);STICKLINE(A,0,VOL,1,0),COLORLIRED;  

STICKLINE(B,0,VOL,1,0),COLORLIRED;  

STICKLINE(D,0,VOL,1,0),COLORLIRED;  

STICKLINE(E,0,VOL,1,0),COLORLIRED;  

STICKLINE(F,0,VOL,1,0),COLORLIRED;  

双向倍阳胜阴:REF(C,2)>REF(C,1)ANDREF(O,1)>REF(C,1)  

ANDC>REF(C,1)*1.05ANDV>REF(V,1)*1.5ANDNOT(DYNAINFO(4)=0);  

倍量:(VOL/REF(VOL,1)>2andCOUNT(CLOSE>OPEN,1))or(LOW>REF(HIGH,1)andCOUNT(OPEN>CLOSE,1)andVOL/REF(VOL,1)>2),STICK,COLORBLUE,linethick4;  

DRAWTEXT(倍量,0.75,'倍量'),COLORBLUE;  

百日地量:LLV(VOL,100)=VOL,STICK,COLORRED,LINETHICK4;  

DRAWTEXT(百日地量,0.5,'地量'),colorred;  

倍缩量:VOL/REF(VOL,1)<0.5,STICK,COLORFF00FF,linethick2;  

缩量涨:COUNT(C>REF(C,1),2)=2ANDCOUNT(VOL<REF(VOL,1),2)=2,COLORYELLOW,STICK,linethick2;  

黑太阳:IF(LOW>REF(HIGH,1)andCOUNT(OPEN>CLOSE,1),0.5,0),STICK,colorwhite,linethick4;  

DRAWTEXT(黑太阳,0.2,'黑太阳'),COLORwhite;  

红太阳:IF(LOW>REF(HIGH,1)andCOUNT(OPEN<CLOSE,1),0.5,0),STICK,colorred,linethick4;  

DRAWTEXT(红太阳,0.2,'红太阳'),COLORRED;  

VAR1:=IF(YEAR&gt;=3007ANDMONTH&gt;=1,0,1);  

VAR2:=MA(HHV(HIGH,500),21)*VAR1;  

VAR3:=MA(HHV(HIGH,240),21)*VAR1;  

VAR4:=MA(HHV(HIGH,90),21)*VAR1;  

VAR5:=MA(LLV(LOW,500),21)*VAR1;  

VAR6:=MA(LLV(LOW,240),21)*VAR1;  

VAR7:=MA(LLV(LOW,90),21)*VAR1;  

VAR8:=MA((VAR5*0.96+VAR6*0.96+VAR7*0.96+VAR2*0.558+VAR3*0.558+VAR4*0.558)/6,21)*VAR1;  

VAR9:=MA((VAR5*1.25+VAR6*1.23+VAR7*1.2+VAR2*0.55+VAR3*0.55+VAR4*0.65)/6,21)*VAR1;  

VARA:=MA((VAR5*1.3+VAR6*1.3+VAR7*1.3+VAR2*0.68+VAR3*0.68+VAR4*0.68)/6,21)*VAR1;  

VARB:=MA((VAR8*3+VAR9*2+VARA)/6*1.738,21)*VAR1;  

VARC:=IF(DATE&lt;=1341231,VARB,VARB*DAY)*VAR1;  

VARD:=LOW*VAR1;  

VARE:=REF(LOW,1)*VAR1;  

VARF:=SMA(ABS(VARD-VARE),3,1)/SMA(MAX(VARD-VARE,0),3,1)*1*VAR1;  

VAR10:=MA(IF(CLOSE*1.35&lt;=VARC,VARF*10,VARF/10),3)*VAR1;  

VAR11:=LLV(LOW,30)*VAR1;  

VAR12:=HHV(VAR10,30)*VAR1;  

VAR13:=3391231*VAR1;  

50,POINTDOT;  

买进0号:IF(DATE&lt;=VAR13,MA(IF(LOW&lt;=VAR11,(VAR10+VAR12*2)/2,0),3),1)/10*VAR1;  

选股:IF(REF(买进0号,1)&gt;REF(买进0号,2)ANDREF(买进0号,1)&gt;买进0号,买进0号,0);  

image.png

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

输出XG:最近2日一直存在收盘价>=收盘价的5日简单移动平均

每日通达信公式解答:


  

编写要求:  

30天以前出现过涨停的指标.  

公式在线网解答:  

涨停:=c>1.098*ref(c,1);  

count(涨停,30)>0;


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