首页 > 原创>正文

挺准抄底逃顶指标源码(dmi趋向指标公式?)

中亿财经网 gengxing 2023-09-11 11:57:07

1. dmi趋向指标公式?

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

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

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

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

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

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

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

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

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

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

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

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

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

  ADXjVR中亿财经网财经门户

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

  ADXjVR中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  买: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;jVR中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  走强: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;jVR中亿财经网财经门户

2. dmi趋向指标公式?

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

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

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

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

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

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

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

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

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

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

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

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

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

  ADXjVR中亿财经网财经门户

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

  ADXjVR中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  买: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;jVR中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  走强: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;jVR中亿财经网财经门户

3. 猎取主升浪专用指标?

【抄底逃顶达人指标源码】jVR中亿财经网财经门户

强弱分界线: 50, POINTDOT, LINETHICK2, COLORFFFF00;jVR中亿财经网财经门户

VAR2:=IF(MONTH<12,1,1);jVR中亿财经网财经门户

VAR3:=(2*CLOSE+HIGH+LOW)/4;jVR中亿财经网财经门户

VAR4:=LLV(LOW,34);jVR中亿财经网财经门户

VAR5:=HHV(HIGH,34);jVR中亿财经网财经门户

主力:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK4,COLORGREEN;jVR中亿财经网财经门户

散户:EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK2,COLORRED;jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,散户) AND 主力<22,20,'买入'),LINETHICK2,COLOR0099FF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,散户) AND 主力<22,25,1);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,30) AND 散户<主力,40,'上扬 '),LINETHICK2,COLOR00CCFF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,30) AND 散户<主力,35,1);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,65) AND 散户<主力,55,'冲顶 '),LINETHICK2,COLOR9933FF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,65) AND 散户<主力,70,2);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,75) AND 散户<主力,67,'小心回调'),LINETHICK2,COLOR009900;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,75) AND 散户<主力,80,2);jVR中亿财经网财经门户

DRAWTEXT(CROSS(散户,主力) AND 散户>75,80,'头部'),COLORYELLOW;jVR中亿财经网财经门户

DRAWICON(CROSS(散户,主力) AND 散户>75,85,2);jVR中亿财经网财经门户

买入脉冲:IF(CROSS(主力,散户) AND 主力<35,55,5),LINETHICK4,COLORRED;jVR中亿财经网财经门户

卖出脉冲:IF(CROSS(散户,主力) AND 散户>75,75,90),LINETHICK4,COLORGREEN;jVR中亿财经网财经门户

BB1:=WINNER(CLOSE)*100;jVR中亿财经网财经门户

4. 猎取主升浪专用指标?

【抄底逃顶达人指标源码】jVR中亿财经网财经门户

强弱分界线: 50, POINTDOT, LINETHICK2, COLORFFFF00;jVR中亿财经网财经门户

VAR2:=IF(MONTH<12,1,1);jVR中亿财经网财经门户

VAR3:=(2*CLOSE+HIGH+LOW)/4;jVR中亿财经网财经门户

VAR4:=LLV(LOW,34);jVR中亿财经网财经门户

VAR5:=HHV(HIGH,34);jVR中亿财经网财经门户

主力:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK4,COLORGREEN;jVR中亿财经网财经门户

散户:EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK2,COLORRED;jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,散户) AND 主力<22,20,'买入'),LINETHICK2,COLOR0099FF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,散户) AND 主力<22,25,1);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,30) AND 散户<主力,40,'上扬 '),LINETHICK2,COLOR00CCFF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,30) AND 散户<主力,35,1);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,65) AND 散户<主力,55,'冲顶 '),LINETHICK2,COLOR9933FF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,65) AND 散户<主力,70,2);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,75) AND 散户<主力,67,'小心回调'),LINETHICK2,COLOR009900;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,75) AND 散户<主力,80,2);jVR中亿财经网财经门户

DRAWTEXT(CROSS(散户,主力) AND 散户>75,80,'头部'),COLORYELLOW;jVR中亿财经网财经门户

DRAWICON(CROSS(散户,主力) AND 散户>75,85,2);jVR中亿财经网财经门户

买入脉冲:IF(CROSS(主力,散户) AND 主力<35,55,5),LINETHICK4,COLORRED;jVR中亿财经网财经门户

卖出脉冲:IF(CROSS(散户,主力) AND 散户>75,75,90),LINETHICK4,COLORGREEN;jVR中亿财经网财经门户

BB1:=WINNER(CLOSE)*100;jVR中亿财经网财经门户

5. 猎取主升浪专用指标?

【抄底逃顶达人指标源码】jVR中亿财经网财经门户

强弱分界线: 50, POINTDOT, LINETHICK2, COLORFFFF00;jVR中亿财经网财经门户

VAR2:=IF(MONTH<12,1,1);jVR中亿财经网财经门户

VAR3:=(2*CLOSE+HIGH+LOW)/4;jVR中亿财经网财经门户

VAR4:=LLV(LOW,34);jVR中亿财经网财经门户

VAR5:=HHV(HIGH,34);jVR中亿财经网财经门户

主力:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK4,COLORGREEN;jVR中亿财经网财经门户

散户:EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK2,COLORRED;jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,散户) AND 主力<22,20,'买入'),LINETHICK2,COLOR0099FF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,散户) AND 主力<22,25,1);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,30) AND 散户<主力,40,'上扬 '),LINETHICK2,COLOR00CCFF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,30) AND 散户<主力,35,1);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,65) AND 散户<主力,55,'冲顶 '),LINETHICK2,COLOR9933FF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,65) AND 散户<主力,70,2);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,75) AND 散户<主力,67,'小心回调'),LINETHICK2,COLOR009900;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,75) AND 散户<主力,80,2);jVR中亿财经网财经门户

DRAWTEXT(CROSS(散户,主力) AND 散户>75,80,'头部'),COLORYELLOW;jVR中亿财经网财经门户

DRAWICON(CROSS(散户,主力) AND 散户>75,85,2);jVR中亿财经网财经门户

买入脉冲:IF(CROSS(主力,散户) AND 主力<35,55,5),LINETHICK4,COLORRED;jVR中亿财经网财经门户

卖出脉冲:IF(CROSS(散户,主力) AND 散户>75,75,90),LINETHICK4,COLORGREEN;jVR中亿财经网财经门户

BB1:=WINNER(CLOSE)*100;jVR中亿财经网财经门户

6. dmi趋向指标公式?

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

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

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

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

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

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

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

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

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

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

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

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

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

  ADXjVR中亿财经网财经门户

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

  ADXjVR中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  买: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;jVR中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  走强: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;jVR中亿财经网财经门户

7. 猎取主升浪专用指标?

【抄底逃顶达人指标源码】jVR中亿财经网财经门户

强弱分界线: 50, POINTDOT, LINETHICK2, COLORFFFF00;jVR中亿财经网财经门户

VAR2:=IF(MONTH<12,1,1);jVR中亿财经网财经门户

VAR3:=(2*CLOSE+HIGH+LOW)/4;jVR中亿财经网财经门户

VAR4:=LLV(LOW,34);jVR中亿财经网财经门户

VAR5:=HHV(HIGH,34);jVR中亿财经网财经门户

主力:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK4,COLORGREEN;jVR中亿财经网财经门户

散户:EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK2,COLORRED;jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,散户) AND 主力<22,20,'买入'),LINETHICK2,COLOR0099FF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,散户) AND 主力<22,25,1);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,30) AND 散户<主力,40,'上扬 '),LINETHICK2,COLOR00CCFF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,30) AND 散户<主力,35,1);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,65) AND 散户<主力,55,'冲顶 '),LINETHICK2,COLOR9933FF;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,65) AND 散户<主力,70,2);jVR中亿财经网财经门户

DRAWTEXT(CROSS(主力,75) AND 散户<主力,67,'小心回调'),LINETHICK2,COLOR009900;jVR中亿财经网财经门户

DRAWICON(CROSS(主力,75) AND 散户<主力,80,2);jVR中亿财经网财经门户

DRAWTEXT(CROSS(散户,主力) AND 散户>75,80,'头部'),COLORYELLOW;jVR中亿财经网财经门户

DRAWICON(CROSS(散户,主力) AND 散户>75,85,2);jVR中亿财经网财经门户

买入脉冲:IF(CROSS(主力,散户) AND 主力<35,55,5),LINETHICK4,COLORRED;jVR中亿财经网财经门户

卖出脉冲:IF(CROSS(散户,主力) AND 散户>75,75,90),LINETHICK4,COLORGREEN;jVR中亿财经网财经门户

BB1:=WINNER(CLOSE)*100;jVR中亿财经网财经门户

8. dmi趋向指标公式?

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

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

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

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

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

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

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

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

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

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

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

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

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

  ADXjVR中亿财经网财经门户

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

  ADXjVR中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  买: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;jVR中亿财经网财经门户

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  走强: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;jVR中亿财经网财经门户