首页 > 问答热点>正文

通达信HD指标导入(dmi指标源码?)

中亿财经网 gengxing 2023-08-18 17:38:08

1. dmi指标源码?

DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。Ins中亿财经网财经门户

DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。Ins中亿财经网财经门户

dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。Ins中亿财经网财经门户

dmi指标公式源码Ins中亿财经网财经门户

TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);Ins中亿财经网财经门户

HD:=HIGH-ref(HIGH,1);Ins中亿财经网财经门户

LD:=ref(LOW,1)-LOW;Ins中亿财经网财经门户

DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);Ins中亿财经网财经门户

DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);Ins中亿财经网财经门户

PDI:=DMP*100/TR,COLORFFFFFF;Ins中亿财经网财经门户

DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;Ins中亿财经网财经门户

DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;Ins中亿财经网财经门户

MDI:=DMM*100/TR,COLOR00FFFF;Ins中亿财经网财经门户

ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;Ins中亿财经网财经门户

ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;Ins中亿财经网财经门户

DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;Ins中亿财经网财经门户

2. 通达信pdi是什么参数?

MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);Ins中亿财经网财经门户

HD :=HIGH-REF(HIGH,1);Ins中亿财经网财经门户

LD :=REF(LOW,1)-LOW;Ins中亿财经网财经门户

DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);Ins中亿财经网财经门户

DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);Ins中亿财经网财经门户

PDI: DMP*100/MTR,COLORRED;Ins中亿财经网财经门户

MDI: DMM*100/MTR,COLORGREEN;Ins中亿财经网财经门户

DRAWBAND(PDI,RGB(255,0,0),MDI,RGB(0,55,250));Ins中亿财经网财经门户

ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);Ins中亿财经网财经门户

ADXR:=EXPMEMA(ADX,6);Ins中亿财经网财经门户

STICKLINE(PDI,PDI,0,0.00001,0),COLORRED;Ins中亿财经网财经门户

20,DOTLINE;Ins中亿财经网财经门户

40,DOTLINE;Ins中亿财经网财经门户

{IF(PDI<REF(PDI,1),PDI,DRAWNULL),COLORCYAN;}Ins中亿财经网财经门户

STICKLINE(CROSS(20,PDI),PDI,0,0.0001,0),COLORGREEN;Ins中亿财经网财经门户

STICKLINE(CROSS(PDI,20),0,PDI,0.0001,0),COLORYELLOW;Ins中亿财经网财经门户

上穿: CROSS(PDI,MDI),COLORRED,NODRAW;Ins中亿财经网财经门户

下穿: CROSS(MDI,PDI),COLORCYAN,NODRAW;Ins中亿财经网财经门户

DRAWICON(上穿,PDI,25);Ins中亿财经网财经门户

DRAWICON(下穿,PDI,24);Ins中亿财经网财经门户

顶: PDI>40,COLORWHITE,NODRAW;Ins中亿财经网财经门户

底: MDI>40,COLORCYAN,NODRAW;Ins中亿财经网财经门户

STICKLINE(PDI>40,40,PDI,1,0),COLORWHITE;Ins中亿财经网财经门户

STICKLINE(MDI>40,0,PDI,1,0),COLORCYAN;Ins中亿财经网财经门户

3. 成交量压力线突破指标公式?

这是一个经典支撑和压力指标,通达信都有系统公式Ins中亿财经网财经门户

但我想增加一条下降压力线,也就是说压力线只选择向下,那位高手指点一下Ins中亿财经网财经门户

N:=时间跨度; {支压线设定长度,不同长度支压不同,这个参数要和搜股器一致}Ins中亿财经网财经门户

A1:=REF(H,N)=HHV(H,2*N+1);Ins中亿财经网财经门户

B1:=FILTER(A1,N);Ins中亿财经网财经门户

C1:=BACKSET(B1,N+1);Ins中亿财经网财经门户

D1:=FILTER(C1,N);{高点}Ins中亿财经网财经门户

A2:=REF(L,N)=LLV(L,2*N+1);Ins中亿财经网财经门户

B2:=FILTER(A2,N);Ins中亿财经网财经门户

C2:=BACKSET(B2,N+1);Ins中亿财经网财经门户

D2:=FILTER(C2,N);{低点}Ins中亿财经网财经门户

E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}Ins中亿财经网财经门户

H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(C)=1;Ins中亿财经网财经门户

L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);Ins中亿财经网财经门户

X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));Ins中亿财经网财经门户

G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}Ins中亿财经网财经门户

L2:=LD OR BARSTATUS=2 OR BARSCOUNT(C)=1;Ins中亿财经网财经门户

X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));Ins中亿财经网财经门户

G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}Ins中亿财经网财经门户

R1:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1); Ins中亿财经网财经门户

S1:=R1>REF(R1,1); {前一高}Ins中亿财经网财经门户

T1:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1); Ins中亿财经网财经门户

U1:=T1>REF(T1,1); {前一低}Ins中亿财经网财经门户

R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); Ins中亿财经网财经门户

S2:=RIns中亿财经网财经门户

4. dmi指标源码?

DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。Ins中亿财经网财经门户

DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。Ins中亿财经网财经门户

dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。Ins中亿财经网财经门户

dmi指标公式源码Ins中亿财经网财经门户

TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);Ins中亿财经网财经门户

HD:=HIGH-ref(HIGH,1);Ins中亿财经网财经门户

LD:=ref(LOW,1)-LOW;Ins中亿财经网财经门户

DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);Ins中亿财经网财经门户

DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);Ins中亿财经网财经门户

PDI:=DMP*100/TR,COLORFFFFFF;Ins中亿财经网财经门户

DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;Ins中亿财经网财经门户

DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;Ins中亿财经网财经门户

MDI:=DMM*100/TR,COLOR00FFFF;Ins中亿财经网财经门户

ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;Ins中亿财经网财经门户

ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;Ins中亿财经网财经门户

DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;Ins中亿财经网财经门户

5. 成交量压力线突破指标公式?

这是一个经典支撑和压力指标,通达信都有系统公式Ins中亿财经网财经门户

但我想增加一条下降压力线,也就是说压力线只选择向下,那位高手指点一下Ins中亿财经网财经门户

N:=时间跨度; {支压线设定长度,不同长度支压不同,这个参数要和搜股器一致}Ins中亿财经网财经门户

A1:=REF(H,N)=HHV(H,2*N+1);Ins中亿财经网财经门户

B1:=FILTER(A1,N);Ins中亿财经网财经门户

C1:=BACKSET(B1,N+1);Ins中亿财经网财经门户

D1:=FILTER(C1,N);{高点}Ins中亿财经网财经门户

A2:=REF(L,N)=LLV(L,2*N+1);Ins中亿财经网财经门户

B2:=FILTER(A2,N);Ins中亿财经网财经门户

C2:=BACKSET(B2,N+1);Ins中亿财经网财经门户

D2:=FILTER(C2,N);{低点}Ins中亿财经网财经门户

E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}Ins中亿财经网财经门户

H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(C)=1;Ins中亿财经网财经门户

L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);Ins中亿财经网财经门户

X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));Ins中亿财经网财经门户

G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}Ins中亿财经网财经门户

L2:=LD OR BARSTATUS=2 OR BARSCOUNT(C)=1;Ins中亿财经网财经门户

X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));Ins中亿财经网财经门户

G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}Ins中亿财经网财经门户

R1:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1); Ins中亿财经网财经门户

S1:=R1>REF(R1,1); {前一高}Ins中亿财经网财经门户

T1:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1); Ins中亿财经网财经门户

U1:=T1>REF(T1,1); {前一低}Ins中亿财经网财经门户

R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); Ins中亿财经网财经门户

S2:=RIns中亿财经网财经门户

6. 通达信pdi是什么参数?

MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);Ins中亿财经网财经门户

HD :=HIGH-REF(HIGH,1);Ins中亿财经网财经门户

LD :=REF(LOW,1)-LOW;Ins中亿财经网财经门户

DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);Ins中亿财经网财经门户

DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);Ins中亿财经网财经门户

PDI: DMP*100/MTR,COLORRED;Ins中亿财经网财经门户

MDI: DMM*100/MTR,COLORGREEN;Ins中亿财经网财经门户

DRAWBAND(PDI,RGB(255,0,0),MDI,RGB(0,55,250));Ins中亿财经网财经门户

ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);Ins中亿财经网财经门户

ADXR:=EXPMEMA(ADX,6);Ins中亿财经网财经门户

STICKLINE(PDI,PDI,0,0.00001,0),COLORRED;Ins中亿财经网财经门户

20,DOTLINE;Ins中亿财经网财经门户

40,DOTLINE;Ins中亿财经网财经门户

{IF(PDI<REF(PDI,1),PDI,DRAWNULL),COLORCYAN;}Ins中亿财经网财经门户

STICKLINE(CROSS(20,PDI),PDI,0,0.0001,0),COLORGREEN;Ins中亿财经网财经门户

STICKLINE(CROSS(PDI,20),0,PDI,0.0001,0),COLORYELLOW;Ins中亿财经网财经门户

上穿: CROSS(PDI,MDI),COLORRED,NODRAW;Ins中亿财经网财经门户

下穿: CROSS(MDI,PDI),COLORCYAN,NODRAW;Ins中亿财经网财经门户

DRAWICON(上穿,PDI,25);Ins中亿财经网财经门户

DRAWICON(下穿,PDI,24);Ins中亿财经网财经门户

顶: PDI>40,COLORWHITE,NODRAW;Ins中亿财经网财经门户

底: MDI>40,COLORCYAN,NODRAW;Ins中亿财经网财经门户

STICKLINE(PDI>40,40,PDI,1,0),COLORWHITE;Ins中亿财经网财经门户

STICKLINE(MDI>40,0,PDI,1,0),COLORCYAN;Ins中亿财经网财经门户

7. dmi指标源码?

DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。Ins中亿财经网财经门户

DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。Ins中亿财经网财经门户

dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。Ins中亿财经网财经门户

dmi指标公式源码Ins中亿财经网财经门户

TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);Ins中亿财经网财经门户

HD:=HIGH-ref(HIGH,1);Ins中亿财经网财经门户

LD:=ref(LOW,1)-LOW;Ins中亿财经网财经门户

DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);Ins中亿财经网财经门户

DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);Ins中亿财经网财经门户

PDI:=DMP*100/TR,COLORFFFFFF;Ins中亿财经网财经门户

DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;Ins中亿财经网财经门户

DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;Ins中亿财经网财经门户

MDI:=DMM*100/TR,COLOR00FFFF;Ins中亿财经网财经门户

ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;Ins中亿财经网财经门户

ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;Ins中亿财经网财经门户

DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;Ins中亿财经网财经门户

8. 成交量压力线突破指标公式?

这是一个经典支撑和压力指标,通达信都有系统公式Ins中亿财经网财经门户

但我想增加一条下降压力线,也就是说压力线只选择向下,那位高手指点一下Ins中亿财经网财经门户

N:=时间跨度; {支压线设定长度,不同长度支压不同,这个参数要和搜股器一致}Ins中亿财经网财经门户

A1:=REF(H,N)=HHV(H,2*N+1);Ins中亿财经网财经门户

B1:=FILTER(A1,N);Ins中亿财经网财经门户

C1:=BACKSET(B1,N+1);Ins中亿财经网财经门户

D1:=FILTER(C1,N);{高点}Ins中亿财经网财经门户

A2:=REF(L,N)=LLV(L,2*N+1);Ins中亿财经网财经门户

B2:=FILTER(A2,N);Ins中亿财经网财经门户

C2:=BACKSET(B2,N+1);Ins中亿财经网财经门户

D2:=FILTER(C2,N);{低点}Ins中亿财经网财经门户

E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}Ins中亿财经网财经门户

H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(C)=1;Ins中亿财经网财经门户

L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);Ins中亿财经网财经门户

X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));Ins中亿财经网财经门户

G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}Ins中亿财经网财经门户

L2:=LD OR BARSTATUS=2 OR BARSCOUNT(C)=1;Ins中亿财经网财经门户

X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));Ins中亿财经网财经门户

G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}Ins中亿财经网财经门户

R1:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1); Ins中亿财经网财经门户

S1:=R1>REF(R1,1); {前一高}Ins中亿财经网财经门户

T1:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1); Ins中亿财经网财经门户

U1:=T1>REF(T1,1); {前一低}Ins中亿财经网财经门户

R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); Ins中亿财经网财经门户

S2:=RIns中亿财经网财经门户

9. 通达信pdi是什么参数?

MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);Ins中亿财经网财经门户

HD :=HIGH-REF(HIGH,1);Ins中亿财经网财经门户

LD :=REF(LOW,1)-LOW;Ins中亿财经网财经门户

DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);Ins中亿财经网财经门户

DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);Ins中亿财经网财经门户

PDI: DMP*100/MTR,COLORRED;Ins中亿财经网财经门户

MDI: DMM*100/MTR,COLORGREEN;Ins中亿财经网财经门户

DRAWBAND(PDI,RGB(255,0,0),MDI,RGB(0,55,250));Ins中亿财经网财经门户

ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);Ins中亿财经网财经门户

ADXR:=EXPMEMA(ADX,6);Ins中亿财经网财经门户

STICKLINE(PDI,PDI,0,0.00001,0),COLORRED;Ins中亿财经网财经门户

20,DOTLINE;Ins中亿财经网财经门户

40,DOTLINE;Ins中亿财经网财经门户

{IF(PDI<REF(PDI,1),PDI,DRAWNULL),COLORCYAN;}Ins中亿财经网财经门户

STICKLINE(CROSS(20,PDI),PDI,0,0.0001,0),COLORGREEN;Ins中亿财经网财经门户

STICKLINE(CROSS(PDI,20),0,PDI,0.0001,0),COLORYELLOW;Ins中亿财经网财经门户

上穿: CROSS(PDI,MDI),COLORRED,NODRAW;Ins中亿财经网财经门户

下穿: CROSS(MDI,PDI),COLORCYAN,NODRAW;Ins中亿财经网财经门户

DRAWICON(上穿,PDI,25);Ins中亿财经网财经门户

DRAWICON(下穿,PDI,24);Ins中亿财经网财经门户

顶: PDI>40,COLORWHITE,NODRAW;Ins中亿财经网财经门户

底: MDI>40,COLORCYAN,NODRAW;Ins中亿财经网财经门户

STICKLINE(PDI>40,40,PDI,1,0),COLORWHITE;Ins中亿财经网财经门户

STICKLINE(MDI>40,0,PDI,1,0),COLORCYAN;Ins中亿财经网财经门户

10. 通达信pdi是什么参数?

MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);Ins中亿财经网财经门户

HD :=HIGH-REF(HIGH,1);Ins中亿财经网财经门户

LD :=REF(LOW,1)-LOW;Ins中亿财经网财经门户

DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);Ins中亿财经网财经门户

DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);Ins中亿财经网财经门户

PDI: DMP*100/MTR,COLORRED;Ins中亿财经网财经门户

MDI: DMM*100/MTR,COLORGREEN;Ins中亿财经网财经门户

DRAWBAND(PDI,RGB(255,0,0),MDI,RGB(0,55,250));Ins中亿财经网财经门户

ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);Ins中亿财经网财经门户

ADXR:=EXPMEMA(ADX,6);Ins中亿财经网财经门户

STICKLINE(PDI,PDI,0,0.00001,0),COLORRED;Ins中亿财经网财经门户

20,DOTLINE;Ins中亿财经网财经门户

40,DOTLINE;Ins中亿财经网财经门户

{IF(PDI<REF(PDI,1),PDI,DRAWNULL),COLORCYAN;}Ins中亿财经网财经门户

STICKLINE(CROSS(20,PDI),PDI,0,0.0001,0),COLORGREEN;Ins中亿财经网财经门户

STICKLINE(CROSS(PDI,20),0,PDI,0.0001,0),COLORYELLOW;Ins中亿财经网财经门户

上穿: CROSS(PDI,MDI),COLORRED,NODRAW;Ins中亿财经网财经门户

下穿: CROSS(MDI,PDI),COLORCYAN,NODRAW;Ins中亿财经网财经门户

DRAWICON(上穿,PDI,25);Ins中亿财经网财经门户

DRAWICON(下穿,PDI,24);Ins中亿财经网财经门户

顶: PDI>40,COLORWHITE,NODRAW;Ins中亿财经网财经门户

底: MDI>40,COLORCYAN,NODRAW;Ins中亿财经网财经门户

STICKLINE(PDI>40,40,PDI,1,0),COLORWHITE;Ins中亿财经网财经门户

STICKLINE(MDI>40,0,PDI,1,0),COLORCYAN;Ins中亿财经网财经门户

11. 成交量压力线突破指标公式?

这是一个经典支撑和压力指标,通达信都有系统公式Ins中亿财经网财经门户

但我想增加一条下降压力线,也就是说压力线只选择向下,那位高手指点一下Ins中亿财经网财经门户

N:=时间跨度; {支压线设定长度,不同长度支压不同,这个参数要和搜股器一致}Ins中亿财经网财经门户

A1:=REF(H,N)=HHV(H,2*N+1);Ins中亿财经网财经门户

B1:=FILTER(A1,N);Ins中亿财经网财经门户

C1:=BACKSET(B1,N+1);Ins中亿财经网财经门户

D1:=FILTER(C1,N);{高点}Ins中亿财经网财经门户

A2:=REF(L,N)=LLV(L,2*N+1);Ins中亿财经网财经门户

B2:=FILTER(A2,N);Ins中亿财经网财经门户

C2:=BACKSET(B2,N+1);Ins中亿财经网财经门户

D2:=FILTER(C2,N);{低点}Ins中亿财经网财经门户

E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}Ins中亿财经网财经门户

H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(C)=1;Ins中亿财经网财经门户

L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);Ins中亿财经网财经门户

X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));Ins中亿财经网财经门户

G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}Ins中亿财经网财经门户

L2:=LD OR BARSTATUS=2 OR BARSCOUNT(C)=1;Ins中亿财经网财经门户

X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));Ins中亿财经网财经门户

G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}Ins中亿财经网财经门户

R1:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1); Ins中亿财经网财经门户

S1:=R1>REF(R1,1); {前一高}Ins中亿财经网财经门户

T1:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1); Ins中亿财经网财经门户

U1:=T1>REF(T1,1); {前一低}Ins中亿财经网财经门户

R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); Ins中亿财经网财经门户

S2:=RIns中亿财经网财经门户

12. 高手改个DMI公式?

通达信的:N:=14;M:=6;MTR:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N)Ins中亿财经网财经门户

;HD := HIGH-REF(HIGH,1)Ins中亿财经网财经门户

;LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),N)Ins中亿财经网财经门户

;DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N)Ins中亿财经网财经门户

;PDI:=DMP*100/MTR;MDI:=DMM*100/MTR;ADX:=MA(ABS(MDI-PDI)/(MDI+PDI)*100,M)Ins中亿财经网财经门户

;ADXR:=(ADX+REF(ADX,M))/2;XG:PDI>ADX AND PDI>ADXR AND PDI>30 AND PDI>REF(PDI,1) AND MDI<15 AND MDI<REF(MDI,1) AND MDI<ADX AND MDI<ADXR AND CROSS(ADX,ADXR); 测试通过!提示:不能用通达信自带的DMI指标进行验证!希望能够帮助你!Ins中亿财经网财经门户

13. 高手改个DMI公式?

通达信的:N:=14;M:=6;MTR:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N)Ins中亿财经网财经门户

;HD := HIGH-REF(HIGH,1)Ins中亿财经网财经门户

;LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),N)Ins中亿财经网财经门户

;DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N)Ins中亿财经网财经门户

;PDI:=DMP*100/MTR;MDI:=DMM*100/MTR;ADX:=MA(ABS(MDI-PDI)/(MDI+PDI)*100,M)Ins中亿财经网财经门户

;ADXR:=(ADX+REF(ADX,M))/2;XG:PDI>ADX AND PDI>ADXR AND PDI>30 AND PDI>REF(PDI,1) AND MDI<15 AND MDI<REF(MDI,1) AND MDI<ADX AND MDI<ADXR AND CROSS(ADX,ADXR); 测试通过!提示:不能用通达信自带的DMI指标进行验证!希望能够帮助你!Ins中亿财经网财经门户

14. dmi指标源码?

DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。Ins中亿财经网财经门户

DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。Ins中亿财经网财经门户

dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。Ins中亿财经网财经门户

dmi指标公式源码Ins中亿财经网财经门户

TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);Ins中亿财经网财经门户

HD:=HIGH-ref(HIGH,1);Ins中亿财经网财经门户

LD:=ref(LOW,1)-LOW;Ins中亿财经网财经门户

DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);Ins中亿财经网财经门户

DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);Ins中亿财经网财经门户

PDI:=DMP*100/TR,COLORFFFFFF;Ins中亿财经网财经门户

DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;Ins中亿财经网财经门户

DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;Ins中亿财经网财经门户

MDI:=DMM*100/TR,COLOR00FFFF;Ins中亿财经网财经门户

ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;Ins中亿财经网财经门户

ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;Ins中亿财经网财经门户

DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;Ins中亿财经网财经门户

15. 高手改个DMI公式?

通达信的:N:=14;M:=6;MTR:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N)Ins中亿财经网财经门户

;HD := HIGH-REF(HIGH,1)Ins中亿财经网财经门户

;LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),N)Ins中亿财经网财经门户

;DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N)Ins中亿财经网财经门户

;PDI:=DMP*100/MTR;MDI:=DMM*100/MTR;ADX:=MA(ABS(MDI-PDI)/(MDI+PDI)*100,M)Ins中亿财经网财经门户

;ADXR:=(ADX+REF(ADX,M))/2;XG:PDI>ADX AND PDI>ADXR AND PDI>30 AND PDI>REF(PDI,1) AND MDI<15 AND MDI<REF(MDI,1) AND MDI<ADX AND MDI<ADXR AND CROSS(ADX,ADXR); 测试通过!提示:不能用通达信自带的DMI指标进行验证!希望能够帮助你!Ins中亿财经网财经门户

16. 高手改个DMI公式?

通达信的:N:=14;M:=6;MTR:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N)Ins中亿财经网财经门户

;HD := HIGH-REF(HIGH,1)Ins中亿财经网财经门户

;LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),N)Ins中亿财经网财经门户

;DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N)Ins中亿财经网财经门户

;PDI:=DMP*100/MTR;MDI:=DMM*100/MTR;ADX:=MA(ABS(MDI-PDI)/(MDI+PDI)*100,M)Ins中亿财经网财经门户

;ADXR:=(ADX+REF(ADX,M))/2;XG:PDI>ADX AND PDI>ADXR AND PDI>30 AND PDI>REF(PDI,1) AND MDI<15 AND MDI<REF(MDI,1) AND MDI<ADX AND MDI<ADXR AND CROSS(ADX,ADXR); 测试通过!提示:不能用通达信自带的DMI指标进行验证!希望能够帮助你!Ins中亿财经网财经门户