通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

大盘预判指标公式 

IF(INDEXCREF(INDEXC,1),INDEXC,0)NODRAW,COLORRED;

IF(INDEXCREF(INDEXC,1),INDEXC,0)NODRAW,COLORGREEN;

X:=INDEXC;

Y:=INDEXO;

Z:=INDEXL;

I:=INDEXH;

STICKLINE(YX,X,I,0.000001,0),COLORRED;

STICKLINE(YX,Y,Z,0.000001,0),COLORRED;

STICKLINE(YX,X,Y,2.5,1),COLORRED;

STICKLINE(YX,Y,I,0.000001,0),COLORCYAN;

STICKLINE(YX,X,Z,0.000001,0),COLORCYAN;

STICKLINE(YX,Y,X,2.5,0),COLORCYAN;

M5:MA(INDEXC,5),LINETHICK1,COLORWHITE ;

M10:MA(INDEXC,10)LINETHICK1,COLORYELLOW;

Z:=MA(C,120);

VAR3:=(MA(H,5)-Z)/Z;

VAR4:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);

D1:DRAWTEXT(CROSS(95,VAR4) AND VAR30.3,1.01*HIGH ,'★S'),COLORRED;

D2:DRAWTEXT( CROSS(93,VAR4) AND HHV(H,30)/LLV(L,30)1.1 AND REF(Z,1)/Z0.997 ,1.01*HIGH ,'★S'),COLORGREEN;

D3:DRAWTEXT(CLOSEZ AND ZREF(Z,1) AND REF(VAR4,1)90 AND VAR4REF(VAR4,1) AND REF(VAR4,1)REF(VAR4,2) ,1.01*HIGH,'★S'),COLORBLUE;

LOWV:=LLV(LOW,6);

HIGHV:=HHV(HIGH,6);

RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,2);

K:EMA(RSV,3);

D:MA(K,3);

DRAWBAND(K,RGB(200,10,10),D,RGB(10,200,10));

20,POINTDOT,COLORCYAN;

50,COLORRED,POINTDOT;

80,POINTDOT,COLORWHITE;

IF(KD,K,DRAWNULL),COLORYELLOW,LINETHICK1;

IF(KD,K,DRAWNULL),COLORCYAN,LINETHICK1;

LC:=REF(CLOSE,1);

RSI5:=((SMA(MAX((CLOSE – LC),0),5,1) / SMA(ABS((CLOSE – LC)),5,1)) * 100);

TR1:=SUM(MAX(MAX((HIGH – LOW),ABS((HIGH – REF(CLOSE,1)))),ABS((LOW – REF(CLOSE,1)))),10);

HD:=(HIGH – REF(HIGH,1));

LD:=(REF(LOW,1) – LOW);

DMP:=SUM(IF(((HD  0) AND (HD  LD)),HD,0),10);

DMM:=SUM(IF(((LD  0) AND (LD  HD)),LD,0),10);

PDI:=((DMP * 100) / TR1);

MDI:=((DMM * 100) / TR1);

ADX:=MA(((ABS((MDI – PDI)) / (MDI + PDI)) * 100),5);

AV:=(RSI5 + ADX);

DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);

WR10:=((100 * (HHV(HIGH,10) – CLOSE)) / (HHV(HIGH,10) – LLV(LOW,10)));

NEWVOL:=(RSI5 – WR10);

阶段底部:=(AV + NEWVOL);

趋势线:=LLV(阶段底部,1),COLORWHITE,LINETHICK0;

STICKLINE((阶段底部  0),20,25,1,0),LINETHICK6,COLORYELLOW;

STICKLINE(CROSS(阶段底部,0),20,30,1,0),LINETHICK6,COLORRED;

STICKLINE((趋势线 230 ),90,85,1,0),LINETHICK6,COLORGREEN;

image.png

预测大盘最准确的指标

N:= 9; M1:= 3; M2:=3;

STICKLINE(80,95,0,99,0),COLORCC66CC;

STICKLINE(80,100,95,99,0),COLOR3399CC;

STICKLINE(80,0,5,99,0),COLOR3399CC;

80,LINETHICK2,COLOR3399CC;

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

K:=SMA(RSV,M1,1);

D:=SMA(K,M2,1);

DPYJX:=(K+D)/2;

趋势:=EMA(SLOPE(C,21)*20+C,36);

M6:=MA(C,6);

M18:=MA(C,18);

Q4:=趋势REF(趋势,1) AND CROSS(M6,M18);

Q5:=M6M18 AND CROSS(趋势,REF(趋势,1));

Q6:=趋势REF(趋势,1) AND CROSS(M6,M18);

Q7:=Q4 OR Q5 OR Q6;

STICKLINE(Q7 AND DPYJX80,95,5,3,0),COLORRED;

STICKLINE(DPYJX95,5,80,1,0),COLORD19275;

STICKLINE(DPYJX95,5,80,0,0),COLORD19999;

STICKLINE(DPYJX95,95,93,2.5,0),COLOR00CCCC;

STICKLINE(DPYJX95,80,77,3.3,0),COLOR00CCCC;

STICKLINE(DPYJX95,93,80,1,0),COLOR00CCCC;

STICKLINE((DPYJX94.2 AND DPYJX95),5,80,1,0),COLOR00EEEE;

STICKLINE((DPYJX94.2 AND DPYJX95),5,80,0,0),COLORYELLOW;

STICKLINE((DPYJX94.2 AND DPYJX95),95,80,1,0),COLOR00CCCC;

STICKLINE((DPYJX94.2 AND DPYJX95),95,93,2.5,0),COLOR00CCCC;

STICKLINE((DPYJX94.2 AND DPYJX95),80,77,3.3,0),COLOR00CCCC;

DRAWICON(CROSS(DPYJX,14.08),15,1);

Q3:=DPYJX95;

DPYJ:(K+D)/2,COLOR555555,LINETHICK2;

DRAWICON(DPYJX95,78.2,14);

MAD5:=MA(INDEXC,5);

MAD21:=MA(INDEXC,21);

MAD60:=MA(INDEXC,60);

TT1:=IF(MAD21=MAD60,1,0);

TT2:=IF(MAD5=MAD21,1,0);

TT3:=IF(INDEXC=MAD5,1,0);

影响度:IF(TT1=1,IF(TT2=1,IF(TT3=1,8,7),IF(TT3=1,6,5)),IF(TT2=1,IF(TT3=1,4,3),IF(TT3=1,2,1)));

影响度5:MA(影响度,5);

影响度10: MA(影响度,10);

影响度20: MA(影响度,20);

影响度60:MA(影响度,60);

N:=9;M1:=3;M2:=3;

STICKLINE(80,95,0,99,0),COLORCC66CC;

STICKLINE(80,100,95,99,0),COLOR3399CC;

STICKLINE(80,0,5,99,0),COLOR3399CC;

80,LINETHICK2,COLOR3399CC;

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

K:=SMA(RSV,M1,1);

D:=SMA(K,M2,1);

DPYJX:=(K+D)/2;

趋势:=EMA(SLOPE(C,21)*20+C,36);

M6:=MA(C,6);

M18:=MA(C,18);

Q4:=趋势REF(趋势,1) AND CROSS(M6,M18);

Q5:=M6M18 AND CROSS(趋势,REF(趋势,1));

Q6:=趋势REF(趋势,1) AND CROSS(M6,M18);

Q7:=Q4 OR Q5 OR Q6;

STICKLINE(Q7 AND DPYJX80,95,5,3,0),COLORRED;

STICKLINE(DPYJX95,5,80,1,0),COLORD19275;

STICKLINE(DPYJX95,5,80,0,0),COLORD19999;

STICKLINE(DPYJX95,95,93,2.5,0),COLOR00CCCC;

STICKLINE(DPYJX95,80,77,3.3,0),COLOR00CCCC;

STICKLINE(DPYJX95,93,80,1,0),COLOR00CCCC;

STICKLINE((DPYJX94.2 AND DPYJX95),5,80,1,0),COLOR00EEEE;

STICKLINE((DPYJX94.2 AND DPYJX95),5,80,0,0),COLORYELLOW;

STICKLINE((DPYJX94.2 AND DPYJX95),95,80,1,0),COLOR00CCCC;

STICKLINE((DPYJX94.2 AND DPYJX95),95,93,2.5,0),COLOR00CCCC;

STICKLINE((DPYJX94.2 AND DPYJX95),80,77,3.3,0),COLOR00CCCC;

DRAWICON(CROSS(DPYJX,14.08),15,1);

Q3:=DPYJX95;

DPYJ:(K+D)/2,COLOR555555,LINETHICK2;

DRAWICON(DPYJX95,78.2,14);

image.png

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