首页 > 专栏 > 机构专栏 > 机构白银>正文

顶底多空线指标公式(dmi趋向指标公式?)

机构白银
来源:中亿财经网 作者:gengxing 时间:2023-09-02 13:19:06
1. dmi趋向指标公式?股票走势的技术指标中,有趋势类、摆动类、能量类的指标,而DMI就是其中的一种经典的趋势指标,在实战中能够帮助投资者识别价格的趋势变化以及其中蕴含

1. dmi趋向指标公式?

股票走势的技术指标中,有趋势类、摆动类、能量类的指标,而DMI就是其中的一种经典的趋势指标,在实战中能够帮助投资者识别价格的趋势变化以及其中蕴含的买卖点位置,为了能够更加清晰的了解指标的应用技巧,我们从其源码公式进行学习。nYf中亿财经网财经门户

  首先我们来看一下具有顶底识别以及抄底逃顶作用的指标源码的编译:nYf中亿财经网财经门户

  【顶底DMI】nYf中亿财经网财经门户

  TR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);nYf中亿财经网财经门户

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

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

  DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);nYf中亿财经网财经门户

  DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);nYf中亿财经网财经门户

  PDI: DMP*100/TR;nYf中亿财经网财经门户

  MDI: DMM*100/TR;nYf中亿财经网财经门户

  ADX: EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);nYf中亿财经网财经门户

  ADXR:EMA(ADX,7);nYf中亿财经网财经门户

  抄底1:COUNT(PDI50,1) AND REF(ADX,1)>=REF(ADX,2) ANDnYf中亿财经网财经门户

  ADXnYf中亿财经网财经门户

  逃顶1:=COUNT(PDI>MDI,3)=3 AND REF(ADX>50,1) AND REF(ADX,1)>=REF(ADX,2) ANDnYf中亿财经网财经门户

  ADXnYf中亿财经网财经门户

  五十:50;nYf中亿财经网财经门户

  三十:30;nYf中亿财经网财经门户

  二十:20;nYf中亿财经网财经门户

  DRAWTEXT(抄底1,PDI,'抄底');nYf中亿财经网财经门户

  DRAWTEXT(逃顶1,ADX,'逃顶');nYf中亿财经网财经门户

顶底dminYf中亿财经网财经门户

  从源码和走势图形中我们可以看出,其中指标线包含有PDI、ndi、adx等走势,具体的操作用法,请点击DMI指标,在这里主要讲解的是其源码公式的编译,以及简单的走势分析。nYf中亿财经网财经门户

  其次,我们可以通过其源码公式的展示,寻找指标线中的买入点位置:nYf中亿财经网财经门户

  【dmi买点】nYf中亿财经网财经门户

  {参数n14,m6}nYf中亿财经网财经门户

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

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

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

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

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

  PDI: DMP*100/TR;nYf中亿财经网财经门户

  MDI: DMM*100/TR;nYf中亿财经网财经门户

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

  穿破短底:16;nYf中亿财经网财经门户

  线上发飙:30;nYf中亿财经网财经门户

  {2}预警:IF(ADX>90 AND PDI=0,30,0),COLORYELLOW,LINETHICK2;nYf中亿财经网财经门户

  买:IF(CROSS(PDI,MDI) AND (C >1.05*REF(C,1) OR REF(C,1)>1.05*REF(C,2)) AND (V>2*REF(V,1) OR REF(V,1)>2*REF(V,2))AND MA(V,5)>MA(V,60) ,20,0),COLORRED,LINETHICK2;nYf中亿财经网财经门户

  买2:IF(CROSS(PDI,MDI) AND COUNT(预警,10)>=1,10,0),COLORMAGENTA,LINETHICK3;nYf中亿财经网财经门户

  0;nYf中亿财经网财经门户

  {6}nYf中亿财经网财经门户

  RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;nYf中亿财经网财经门户

  K1:=SMA(RSV9,3,1);nYf中亿财经网财经门户

  DK1:=K1-REF(K1,1),COLORSTICK;nYf中亿财经网财经门户

  出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);nYf中亿财经网财经门户

dmi买点nYf中亿财经网财经门户

  依据其指标线的走势形态,在股价的K线走势图中能够清楚的表现出,投资者应该买入以及卖出的获利点位置,希望投资者能够从中做好应对的操作策略。nYf中亿财经网财经门户

  【dmi组合】nYf中亿财经网财经门户

  VAR1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;nYf中亿财经网财经门户

  牛:SMA(VAR1,7,1);nYf中亿财经网财经门户

  VAR2:=SMA(牛,5,1);nYf中亿财经网财经门户

  熊:IF(CROSS(牛,VAR2) AND CROSS(MA(C,5),MA(C,13) AND 牛>50),VAR2*2,VAR2);nYf中亿财经网财经门户

  DRAWBAND(牛,RGB(205,92,92),熊,RGB(28,134,238));nYf中亿财经网财经门户

  N:=14;M:=6;nYf中亿财经网财经门户

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

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

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

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

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

  PDI:DMP*100/TR COLORMAGENTA;nYf中亿财经网财经门户

  MDI:=DMM*100/TR COLORGREEN;nYf中亿财经网财经门户

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

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

  STICKLINE(ADX>=ADXR,ADX,ADXR,3,0),COLOR800040;nYf中亿财经网财经门户

  STICKLINE(ADXnYf中亿财经网财经门户

  关注:STICKLINE(BARSLAST(CROSS(MDI,PDI))<5 AND MDI>PDI AND ADXADXR*0.97,ADX,ADXR,2,0) COLORRED;nYf中亿财经网财经门户

  10;90;nYf中亿财经网财经门户

  FVAR1:=REF(CLOSE,2);nYf中亿财经网财经门户

  会员专用: SMA(MAX(CLOSE-FVAR1,0),7,1)/SMA(ABS(CLOSE-FVAR1),7,1)*100,COLORYELLOW;nYf中亿财经网财经门户

  {一、PDI>MDI且趋势向上;二、ADX;ADXR在PDI及MDI中间金叉 }nYf中亿财经网财经门户

  走强:DRAWTEXT(CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1) AND ADX>REF(ADX,1) AND BETWEEN(ADX,MDI,PDI) AND ADXR>REF(ADXR,1),ADXR*0.98,'走强'),COLORYELLOW;nYf中亿财经网财经门户

2. dmi趋向指标公式?

股票走势的技术指标中,有趋势类、摆动类、能量类的指标,而DMI就是其中的一种经典的趋势指标,在实战中能够帮助投资者识别价格的趋势变化以及其中蕴含的买卖点位置,为了能够更加清晰的了解指标的应用技巧,我们从其源码公式进行学习。nYf中亿财经网财经门户

  首先我们来看一下具有顶底识别以及抄底逃顶作用的指标源码的编译:nYf中亿财经网财经门户

  【顶底DMI】nYf中亿财经网财经门户

  TR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);nYf中亿财经网财经门户

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

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

  DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);nYf中亿财经网财经门户

  DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);nYf中亿财经网财经门户

  PDI: DMP*100/TR;nYf中亿财经网财经门户

  MDI: DMM*100/TR;nYf中亿财经网财经门户

  ADX: EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);nYf中亿财经网财经门户

  ADXR:EMA(ADX,7);nYf中亿财经网财经门户

  抄底1:COUNT(PDI50,1) AND REF(ADX,1)>=REF(ADX,2) ANDnYf中亿财经网财经门户

  ADXnYf中亿财经网财经门户

  逃顶1:=COUNT(PDI>MDI,3)=3 AND REF(ADX>50,1) AND REF(ADX,1)>=REF(ADX,2) ANDnYf中亿财经网财经门户

  ADXnYf中亿财经网财经门户

  五十:50;nYf中亿财经网财经门户

  三十:30;nYf中亿财经网财经门户

  二十:20;nYf中亿财经网财经门户

  DRAWTEXT(抄底1,PDI,'抄底');nYf中亿财经网财经门户

  DRAWTEXT(逃顶1,ADX,'逃顶');nYf中亿财经网财经门户

顶底dminYf中亿财经网财经门户

  从源码和走势图形中我们可以看出,其中指标线包含有PDI、ndi、adx等走势,具体的操作用法,请点击DMI指标,在这里主要讲解的是其源码公式的编译,以及简单的走势分析。nYf中亿财经网财经门户

  其次,我们可以通过其源码公式的展示,寻找指标线中的买入点位置:nYf中亿财经网财经门户

  【dmi买点】nYf中亿财经网财经门户

  {参数n14,m6}nYf中亿财经网财经门户

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

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

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

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

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

  PDI: DMP*100/TR;nYf中亿财经网财经门户

  MDI: DMM*100/TR;nYf中亿财经网财经门户

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

  穿破短底:16;nYf中亿财经网财经门户

  线上发飙:30;nYf中亿财经网财经门户

  {2}预警:IF(ADX>90 AND PDI=0,30,0),COLORYELLOW,LINETHICK2;nYf中亿财经网财经门户

  买:IF(CROSS(PDI,MDI) AND (C >1.05*REF(C,1) OR REF(C,1)>1.05*REF(C,2)) AND (V>2*REF(V,1) OR REF(V,1)>2*REF(V,2))AND MA(V,5)>MA(V,60) ,20,0),COLORRED,LINETHICK2;nYf中亿财经网财经门户

  买2:IF(CROSS(PDI,MDI) AND COUNT(预警,10)>=1,10,0),COLORMAGENTA,LINETHICK3;nYf中亿财经网财经门户

  0;nYf中亿财经网财经门户

  {6}nYf中亿财经网财经门户

  RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;nYf中亿财经网财经门户

  K1:=SMA(RSV9,3,1);nYf中亿财经网财经门户

  DK1:=K1-REF(K1,1),COLORSTICK;nYf中亿财经网财经门户

  出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);nYf中亿财经网财经门户

dmi买点nYf中亿财经网财经门户

  依据其指标线的走势形态,在股价的K线走势图中能够清楚的表现出,投资者应该买入以及卖出的获利点位置,希望投资者能够从中做好应对的操作策略。nYf中亿财经网财经门户

  【dmi组合】nYf中亿财经网财经门户

  VAR1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;nYf中亿财经网财经门户

  牛:SMA(VAR1,7,1);nYf中亿财经网财经门户

  VAR2:=SMA(牛,5,1);nYf中亿财经网财经门户

  熊:IF(CROSS(牛,VAR2) AND CROSS(MA(C,5),MA(C,13) AND 牛>50),VAR2*2,VAR2);nYf中亿财经网财经门户

  DRAWBAND(牛,RGB(205,92,92),熊,RGB(28,134,238));nYf中亿财经网财经门户

  N:=14;M:=6;nYf中亿财经网财经门户

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

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

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

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

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

  PDI:DMP*100/TR COLORMAGENTA;nYf中亿财经网财经门户

  MDI:=DMM*100/TR COLORGREEN;nYf中亿财经网财经门户

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

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

  STICKLINE(ADX>=ADXR,ADX,ADXR,3,0),COLOR800040;nYf中亿财经网财经门户

  STICKLINE(ADXnYf中亿财经网财经门户

  关注:STICKLINE(BARSLAST(CROSS(MDI,PDI))<5 AND MDI>PDI AND ADXADXR*0.97,ADX,ADXR,2,0) COLORRED;nYf中亿财经网财经门户

  10;90;nYf中亿财经网财经门户

  FVAR1:=REF(CLOSE,2);nYf中亿财经网财经门户

  会员专用: SMA(MAX(CLOSE-FVAR1,0),7,1)/SMA(ABS(CLOSE-FVAR1),7,1)*100,COLORYELLOW;nYf中亿财经网财经门户

  {一、PDI>MDI且趋势向上;二、ADX;ADXR在PDI及MDI中间金叉 }nYf中亿财经网财经门户

  走强:DRAWTEXT(CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1) AND ADX>REF(ADX,1) AND BETWEEN(ADX,MDI,PDI) AND ADXR>REF(ADXR,1),ADXR*0.98,'走强'),COLORYELLOW;nYf中亿财经网财经门户

3. dmi趋向指标公式?

股票走势的技术指标中,有趋势类、摆动类、能量类的指标,而DMI就是其中的一种经典的趋势指标,在实战中能够帮助投资者识别价格的趋势变化以及其中蕴含的买卖点位置,为了能够更加清晰的了解指标的应用技巧,我们从其源码公式进行学习。nYf中亿财经网财经门户

  首先我们来看一下具有顶底识别以及抄底逃顶作用的指标源码的编译:nYf中亿财经网财经门户

  【顶底DMI】nYf中亿财经网财经门户

  TR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);nYf中亿财经网财经门户

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

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

  DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);nYf中亿财经网财经门户

  DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);nYf中亿财经网财经门户

  PDI: DMP*100/TR;nYf中亿财经网财经门户

  MDI: DMM*100/TR;nYf中亿财经网财经门户

  ADX: EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);nYf中亿财经网财经门户

  ADXR:EMA(ADX,7);nYf中亿财经网财经门户

  抄底1:COUNT(PDI50,1) AND REF(ADX,1)>=REF(ADX,2) ANDnYf中亿财经网财经门户

  ADXnYf中亿财经网财经门户

  逃顶1:=COUNT(PDI>MDI,3)=3 AND REF(ADX>50,1) AND REF(ADX,1)>=REF(ADX,2) ANDnYf中亿财经网财经门户

  ADXnYf中亿财经网财经门户

  五十:50;nYf中亿财经网财经门户

  三十:30;nYf中亿财经网财经门户

  二十:20;nYf中亿财经网财经门户

  DRAWTEXT(抄底1,PDI,'抄底');nYf中亿财经网财经门户

  DRAWTEXT(逃顶1,ADX,'逃顶');nYf中亿财经网财经门户

顶底dminYf中亿财经网财经门户

  从源码和走势图形中我们可以看出,其中指标线包含有PDI、ndi、adx等走势,具体的操作用法,请点击DMI指标,在这里主要讲解的是其源码公式的编译,以及简单的走势分析。nYf中亿财经网财经门户

  其次,我们可以通过其源码公式的展示,寻找指标线中的买入点位置:nYf中亿财经网财经门户

  【dmi买点】nYf中亿财经网财经门户

  {参数n14,m6}nYf中亿财经网财经门户

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

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

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

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

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

  PDI: DMP*100/TR;nYf中亿财经网财经门户

  MDI: DMM*100/TR;nYf中亿财经网财经门户

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

  穿破短底:16;nYf中亿财经网财经门户

  线上发飙:30;nYf中亿财经网财经门户

  {2}预警:IF(ADX>90 AND PDI=0,30,0),COLORYELLOW,LINETHICK2;nYf中亿财经网财经门户

  买:IF(CROSS(PDI,MDI) AND (C >1.05*REF(C,1) OR REF(C,1)>1.05*REF(C,2)) AND (V>2*REF(V,1) OR REF(V,1)>2*REF(V,2))AND MA(V,5)>MA(V,60) ,20,0),COLORRED,LINETHICK2;nYf中亿财经网财经门户

  买2:IF(CROSS(PDI,MDI) AND COUNT(预警,10)>=1,10,0),COLORMAGENTA,LINETHICK3;nYf中亿财经网财经门户

  0;nYf中亿财经网财经门户

  {6}nYf中亿财经网财经门户

  RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;nYf中亿财经网财经门户

  K1:=SMA(RSV9,3,1);nYf中亿财经网财经门户

  DK1:=K1-REF(K1,1),COLORSTICK;nYf中亿财经网财经门户

  出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);nYf中亿财经网财经门户

dmi买点nYf中亿财经网财经门户

  依据其指标线的走势形态,在股价的K线走势图中能够清楚的表现出,投资者应该买入以及卖出的获利点位置,希望投资者能够从中做好应对的操作策略。nYf中亿财经网财经门户

  【dmi组合】nYf中亿财经网财经门户

  VAR1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;nYf中亿财经网财经门户

  牛:SMA(VAR1,7,1);nYf中亿财经网财经门户

  VAR2:=SMA(牛,5,1);nYf中亿财经网财经门户

  熊:IF(CROSS(牛,VAR2) AND CROSS(MA(C,5),MA(C,13) AND 牛>50),VAR2*2,VAR2);nYf中亿财经网财经门户

  DRAWBAND(牛,RGB(205,92,92),熊,RGB(28,134,238));nYf中亿财经网财经门户

  N:=14;M:=6;nYf中亿财经网财经门户

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

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

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

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

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

  PDI:DMP*100/TR COLORMAGENTA;nYf中亿财经网财经门户

  MDI:=DMM*100/TR COLORGREEN;nYf中亿财经网财经门户

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

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

  STICKLINE(ADX>=ADXR,ADX,ADXR,3,0),COLOR800040;nYf中亿财经网财经门户

  STICKLINE(ADXnYf中亿财经网财经门户

  关注:STICKLINE(BARSLAST(CROSS(MDI,PDI))<5 AND MDI>PDI AND ADXADXR*0.97,ADX,ADXR,2,0) COLORRED;nYf中亿财经网财经门户

  10;90;nYf中亿财经网财经门户

  FVAR1:=REF(CLOSE,2);nYf中亿财经网财经门户

  会员专用: SMA(MAX(CLOSE-FVAR1,0),7,1)/SMA(ABS(CLOSE-FVAR1),7,1)*100,COLORYELLOW;nYf中亿财经网财经门户

  {一、PDI>MDI且趋势向上;二、ADX;ADXR在PDI及MDI中间金叉 }nYf中亿财经网财经门户

  走强:DRAWTEXT(CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1) AND ADX>REF(ADX,1) AND BETWEEN(ADX,MDI,PDI) AND ADXR>REF(ADXR,1),ADXR*0.98,'走强'),COLORYELLOW;nYf中亿财经网财经门户

4. dmi趋向指标公式?

股票走势的技术指标中,有趋势类、摆动类、能量类的指标,而DMI就是其中的一种经典的趋势指标,在实战中能够帮助投资者识别价格的趋势变化以及其中蕴含的买卖点位置,为了能够更加清晰的了解指标的应用技巧,我们从其源码公式进行学习。nYf中亿财经网财经门户

  首先我们来看一下具有顶底识别以及抄底逃顶作用的指标源码的编译:nYf中亿财经网财经门户

  【顶底DMI】nYf中亿财经网财经门户

  TR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);nYf中亿财经网财经门户

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

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

  DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);nYf中亿财经网财经门户

  DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);nYf中亿财经网财经门户

  PDI: DMP*100/TR;nYf中亿财经网财经门户

  MDI: DMM*100/TR;nYf中亿财经网财经门户

  ADX: EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);nYf中亿财经网财经门户

  ADXR:EMA(ADX,7);nYf中亿财经网财经门户

  抄底1:COUNT(PDI50,1) AND REF(ADX,1)>=REF(ADX,2) ANDnYf中亿财经网财经门户

  ADXnYf中亿财经网财经门户

  逃顶1:=COUNT(PDI>MDI,3)=3 AND REF(ADX>50,1) AND REF(ADX,1)>=REF(ADX,2) ANDnYf中亿财经网财经门户

  ADXnYf中亿财经网财经门户

  五十:50;nYf中亿财经网财经门户

  三十:30;nYf中亿财经网财经门户

  二十:20;nYf中亿财经网财经门户

  DRAWTEXT(抄底1,PDI,'抄底');nYf中亿财经网财经门户

  DRAWTEXT(逃顶1,ADX,'逃顶');nYf中亿财经网财经门户

顶底dminYf中亿财经网财经门户

  从源码和走势图形中我们可以看出,其中指标线包含有PDI、ndi、adx等走势,具体的操作用法,请点击DMI指标,在这里主要讲解的是其源码公式的编译,以及简单的走势分析。nYf中亿财经网财经门户

  其次,我们可以通过其源码公式的展示,寻找指标线中的买入点位置:nYf中亿财经网财经门户

  【dmi买点】nYf中亿财经网财经门户

  {参数n14,m6}nYf中亿财经网财经门户

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

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

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

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

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

  PDI: DMP*100/TR;nYf中亿财经网财经门户

  MDI: DMM*100/TR;nYf中亿财经网财经门户

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

  穿破短底:16;nYf中亿财经网财经门户

  线上发飙:30;nYf中亿财经网财经门户

  {2}预警:IF(ADX>90 AND PDI=0,30,0),COLORYELLOW,LINETHICK2;nYf中亿财经网财经门户

  买:IF(CROSS(PDI,MDI) AND (C >1.05*REF(C,1) OR REF(C,1)>1.05*REF(C,2)) AND (V>2*REF(V,1) OR REF(V,1)>2*REF(V,2))AND MA(V,5)>MA(V,60) ,20,0),COLORRED,LINETHICK2;nYf中亿财经网财经门户

  买2:IF(CROSS(PDI,MDI) AND COUNT(预警,10)>=1,10,0),COLORMAGENTA,LINETHICK3;nYf中亿财经网财经门户

  0;nYf中亿财经网财经门户

  {6}nYf中亿财经网财经门户

  RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;nYf中亿财经网财经门户

  K1:=SMA(RSV9,3,1);nYf中亿财经网财经门户

  DK1:=K1-REF(K1,1),COLORSTICK;nYf中亿财经网财经门户

  出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);nYf中亿财经网财经门户

dmi买点nYf中亿财经网财经门户

  依据其指标线的走势形态,在股价的K线走势图中能够清楚的表现出,投资者应该买入以及卖出的获利点位置,希望投资者能够从中做好应对的操作策略。nYf中亿财经网财经门户

  【dmi组合】nYf中亿财经网财经门户

  VAR1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;nYf中亿财经网财经门户

  牛:SMA(VAR1,7,1);nYf中亿财经网财经门户

  VAR2:=SMA(牛,5,1);nYf中亿财经网财经门户

  熊:IF(CROSS(牛,VAR2) AND CROSS(MA(C,5),MA(C,13) AND 牛>50),VAR2*2,VAR2);nYf中亿财经网财经门户

  DRAWBAND(牛,RGB(205,92,92),熊,RGB(28,134,238));nYf中亿财经网财经门户

  N:=14;M:=6;nYf中亿财经网财经门户

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

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

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

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

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

  PDI:DMP*100/TR COLORMAGENTA;nYf中亿财经网财经门户

  MDI:=DMM*100/TR COLORGREEN;nYf中亿财经网财经门户

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

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

  STICKLINE(ADX>=ADXR,ADX,ADXR,3,0),COLOR800040;nYf中亿财经网财经门户

  STICKLINE(ADXnYf中亿财经网财经门户

  关注:STICKLINE(BARSLAST(CROSS(MDI,PDI))<5 AND MDI>PDI AND ADXADXR*0.97,ADX,ADXR,2,0) COLORRED;nYf中亿财经网财经门户

  10;90;nYf中亿财经网财经门户

  FVAR1:=REF(CLOSE,2);nYf中亿财经网财经门户

  会员专用: SMA(MAX(CLOSE-FVAR1,0),7,1)/SMA(ABS(CLOSE-FVAR1),7,1)*100,COLORYELLOW;nYf中亿财经网财经门户

  {一、PDI>MDI且趋势向上;二、ADX;ADXR在PDI及MDI中间金叉 }nYf中亿财经网财经门户

  走强:DRAWTEXT(CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1) AND ADX>REF(ADX,1) AND BETWEEN(ADX,MDI,PDI) AND ADXR>REF(ADXR,1),ADXR*0.98,'走强'),COLORYELLOW;nYf中亿财经网财经门户

关键字:
1.中亿财经网(http://www.zhongyi9999.com/)遵循行业规范,任何转载的稿件都会明确标注作者和来源;
2.中亿财经网的原创文章,请转载时务必注明文章作者和"来源:中亿财经网",不尊重原创的行为或将追究责任;
3.作者投稿可能会经中亿财经网编辑修改或补充。
【免责声明】本文仅代表作者本人观点,与本网站无关。本网站对文中陈述、观点判断保持中立,不对所包含内容的准确性、可靠性或完整性提供任何明示或暗示的保证。请读者仅作参考,并请自行承担全部责任。