通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信短线仙人指路指标公式

  

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);  

量能:IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRAW;  

趋势:IF(CAPITAL<1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW;  

VAR3:=(量能-趋势);  

VAR44:=SMA(RV,3,1);  

VAR55:=SMA(VAR44,3,1);  

STICKLINE(VAR3>0,20,10,5,1),COLOR0000FF;  

STICKLINE(VAR3<0,100,90,10,1),COLOR00FF00;  

DRAWICON(CROSS(VAR44,VAR55)ANDVAR55<30,2,1);  

DRAWICON(CROSS(VAR55,VAR44)ANDVAR55>30,97,2);  

DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50));  

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

DRAWTEXT(CROSS(VAR44,VAR55)ANDCROSS(KK,DD),10,'共振'),COLOR00FFFF;  

共振点:=(CROSS(VAR44,VAR55)ANDCROSS(KK,DD));  

STICKLINE(共振点>0,0,100,2,0),COLOR008888;  

STICKLINE(共振点>0,0,100,1.5,0),COLOR00AAAA;  

STICKLINE(共振点>0,0,100,0.8,0),COLOR00DDDD;  

STICKLINE(共振点>0,0,100,0.3,0),COLOR00FFFF;  

VAR1:=1;  

VAR2:=((((2*CLOSE)+HIGH)+LOW)/4);  

金叉进:20,COLORFF00FF,LINETHICK2;  

高死叉出:90,COLORBLUE,LINETHICK2;  

VAR4:=LLV(LOW,5);  

VAR5:=HHV(HIGH,4);  

C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF,LINETHICK2;  

C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETHICK2;  

条件:=CROSS(C1,C2)ANDC1<40;  

条件0:=CROSS(C2,C1)ANDC1>90;  

TJ1:=CROSS(C1,C2);  

TJ2:=CROSS(C2,C1);  

TJ3:=CROSS(C1,C2)ANDREF(C1,1)<20;  

TJ4:=CROSS(C2,C1)ANDREF(C1,1)>80;  

DRAWTEXT(FILTER((REF(条件,1)AND(REF(LOW,1)>LOWORTJ2))  

OR(REF(条件,2)AND(REF(LOW,2)>LLV(LOW,3)ORTJ2))  

OR(REF(条件,3)AND(REF(LOW,3)>LLV(LOW,4)ORTJ2)),4),70,'止'),COLORRED;  

{DRAWTEXT(FILTER((REF(条件,1)AND(REF(LOW,1)>LOWORTJ2))  

OR(REF(条件,2)AND(REF(LOW,2)>LLV(LOW,3)ORTJ2))  

OR(REF(条件,3)AND(REF(LOW,3)>LLV(LOW,4)ORTJ2)),4),60,'跌'),COLORRED;}  

DRAWTEXT(FILTER((REF(条件,1)AND(REF(LOW,1)>LOWORTJ2))OR  

(REF(条件,2)AND(REF(LOW,2)>LLV(LOW,3)ORTJ2))  

OR(REF(条件,3)AND(REF(LOW,3)>LLV(LOW,4)ORTJ2)),4),65,'买'),COLORRED;  

DRAWTEXT(条件,20,'买'),COLORRED;  

STICKLINE(条件,0,20,2,0),COLORRED;  

DRAWTEXT(条件0,85,'卖'),COLORBLUE;  

DRAWTEXT(CROSS(C1,75),70,'险区'),COLORGREEN;  

DRAWTEXT(TJ3,65,'安'),COLORRED;  

DRAWTEXT(TJ3,60,'买'),COLORRED;  

DRAWTEXT(TJ4,85,'逃顶'),COLORBLUE;  

STICKLINE(TJ4,100,80,2,0),COLORGREEN;  

GLL:=-5;P:=5;N:=40;  

JM:=IF(YEAR>=2003ANDMONTH>12,0,1);  

VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;  

VAR2:=SMA(VAR1,3,1);  

VAR3:=Sma(VAR2,3,1);  

VAR4:=3*VAR2-2*VAR3;  

VAR5:=LLV(LOW,5);  

VAR6:=HHV(HIGH,5);  

VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;  

VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);  

VAR9:=3*VAR7-2*VAR8;  

VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);  

VARB:=POW(MA(LOW,5),2)+MA(LOW,5);  

VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);  

VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;  

VARE:=SMA(VARD,3,1)*1.5-100;  

VARF:=SMA(VARE,3,1);  

VAR10:=3*VARE-2*VARF;  

VAR11:=(HIGH+LOW+CLOSE*2)/4;  

VAR12:=EMA(VAR11,13);  

VAR13:=stD(VAR11,13);  

VAR14:=(VAR11-VAR12)*100/VAR13;  

VAR15:=EMA(VAR14,5);  

VAR16:=EMA(VAR15,13);  

VAR17:=EMA(VAR15,13)+200-100;  

VAR18:=EMA(VAR17,10);  

VAR19:=3*VAR17-2*VAR18;  

VAR1A:=VAR2+VAR7+VARE+VAR17;  

VAR1B:=VAR3+VAR8+VARF+VAR18;  

VAR1C:=VAR4+VAR9+VAR10+VAR19;  

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

VAR1E:=AMOUNT/vol/100;  

VAR1F:=SUM(AMOUNT,5)/SUM(VOL,5)/100;  

VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));  

VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);  

VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;  

VAR23:=EMA(VAR22,24);  

VAR24:=STD(VAR22,24);  

VAR25:=(VAR22-VAR23)/VAR24*100;  

VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));  

VAR27:=EMA(VAR25,5);  

VAR28:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21));  

VAR29:=(VAR1F-MA(VAR1F,90))/(0.015*AVEDEV(VAR1F,90));  

VAR2A:=(({VAR29+VAR28+}VAR27+VAR26+VAR20)/3+165)/4;  

VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2+VAR21;  

VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;  

VAR2D:=EMA(VAR2C,13);{13}  

VAR2E:=(VAR2A+VAR2C)/2/1.1;  

DXM:=VAR2E*JM,COLORRED,LINETHICK1;  

DX1:EMA(DXM,1),COLORRED,LINETHICK1;  

DX2:EMA(DX1,P),COLORYELLOW,LINETHICK1;  

ZX:EMA((VAR2B+VAR2D)/2,2),COLORDDDDDD,LINETHICK2;  

生死线:EMA(ZX,N),COLORGREEN;  

STICKLINE(ZX-REF(ZX,1)>0,ZX,0,1,0),COLORDDDDDD,LINETHICK1,POINTDOT;  

STICKLINE(ZX-REF(ZX,1)<0,ZX,0,1,0),COLOR999955,POINTDOT;  

bias1W:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;  

BIAS2W:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;  

BIAS3W:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;  

MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;  

MN:=MA(MM,3),COLORCC0033,LINETHICK1;  

STICKLINE(ZX<0,ZX,0,1,0),COLORRED;  

DRAWICON(crOSS(生死线,DX1)ANDZX>30ANDDX1<ZX,120,2);  

STICKLINE(ZX<0,ZX,0,1,0),COLORRED;  

盘出:IF(MN<GLL,-15,-32)*JM,COLORGREEN,LINETHICK2;  

J:=CROSS(DX1,0)ANDCOUNT(MN<GLL,2)>=1ORCROSS(DX1,ZX)ANDCOUNT(MN<GLL,2)>=1;  

DRAWICON(J,-15,1);  

80,COLORWHITE,POINTDOT;  

100,COLORWHITE,POINTDOT;  

IF(CROSS(100,DX1)ORCROSS(80,DX1),85,120),COLORRED,LINETHICK2;  

image.png

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

输出XG:1日前的最高价=计算涨停价ANDC<最高价AND 开盘价>1日前的收盘价 AND (成交量(手)>1日前的成交量(手)*1.05 OR 收盘价*100*成交量(手)>2000000)

指标公式知识:

一种筛选优质股的方法

优质股票要从基本面和指标面两者同时满足才会列为优质股票;

基本面:主营收入逐年稳步增长;净利润逐年稳步增长;所属行业龙头。

指标面:市盈率低于20倍;市净率低于2倍;流通盘小。

从上面优质股票我们已经了解到优质股票可以从三大因素基本面和三大因素指标面筛选出来的优质股票,条件如下:

(1)流通股本尽量设置为3个亿以下的股票;

(2)营业利润最起码要高达5000万元;

(3)净利润最起码也要高达2000万元;

(4)营业收入也要高达10个亿以上;

(5)市盈率要低于20倍;

(6)市净率要低于2倍;

(7)上市公司处于行业务龙头;

设置好这些指标之后,选择把这些股票选股板块,最后点击执行选股,即可完成你所需要的优质股票;随后再度进一步的筛选。

每日通达信公式解答:

公式编写要求:

第一天涨停炸板,次日竞价高开,且成交量是昨天成交量的5%或者金额大于2000万。

公式编写方法:

XG:REF(H=ZTPRICE(REF(C,1),0.1) AND C<H,1)
AND O>REF(C,1) AND (V>REF(V,1)*1.05 OR C*100*V>2000000);

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