繁簡切換您正在訪問的是FX168財經網,本網站所提供的內容及信息均遵守中華人民共和國香港特別行政區當地法律法規。

FX168财经网>人物频道>帖子

【分享】ADX指标的基本用法

作者/Roby 2008-03-05 08:21 0 来源: FX168财经网人物频道
国外投资者经常使用ADX指标,国内用的反而比较少,不过我经常用到ADX指标判断盘整、振荡和单边趋势。尤其是在单边行情的判断上非常不错,可以较好的指引手上仓位的出单时机。
1.ADX指数是反映趋向变动的程度,而不是方向的本身。
2.进场与出场是采用+DI14与-DI14的穿越信号。

3.当极端点交易法则生效时,法则2将有例外。当DI发生穿越信号时,取当天的极端点做为止损点;换言之,多头头寸取当天的低价为止损点,空头头寸取当天的高价。在随后的几之内,如果止损点未被触及,即使DI再发生穿越信号也不需理会。

4.当ADX的位置高于两条DI而方向发生改变,这是趋势反转的早期信号,可以做部份的获利了结。最后的平仓信号是来自于DI穿越或极端点的止损被引发。当ADX改变方向时,如果+DI14高于-DI14,这代表趋势的变动是由上亦下,反之亦然。

5.如果ADX高于两条DI,而且读数明显偏高,这代表既有的趋势已经持续一段时间。这并不是建立新头寸的理想时机,因场信号很可能反复。换言之,ADX的读数偏高,相当于是超买/超卖,顺势的新交易头寸通常很难获利。

6.如果ADX同时低于两条DI,避免采用顺势交易的系统,因为市场中没有明显的趋势。

7.如果ADX的读数低于20~25,不论它与两条DI的相对位置如何,都避免采用顺势交易的系统,因为市场中没有明显的趋势。

这里只是一些基本的用法,之后有时间会给大家带来一些实战的结合讲解。
做野心男人,创千秋伟业

标签阅读: 黄金

分享到:
举报财经168客户端下载

全部回复

0/140

  • 未填写

    我的是自己输入程序加上去的 可以用MT4中的MetaEditor编写
    下面把程序代码分享一下

    //+------------------------------------------------------------------+
    //|                                                          ADX.mq4 |
    //|                      Copyright ?2004, MetaQuotes Software Corp. |
    //|                                       http://www.metaquotes.net/ |
    //+------------------------------------------------------------------+
    #property copyright "Copyright ?2004, MetaQuotes Software Corp."
    #property link      "http://www.metaquotes.net/"

    #property indicator_separate_window
    #property indicator_buffers 3
    #property indicator_color1 LightSeaGreen
    #property indicator_color2 YellowGreen
    #property indicator_color3 Wheat
    //---- input parameters
    extern int ADXPeriod=14;
    //---- buffers
    double ADXBuffer[];
    double PlusDiBuffer[];
    double MinusDiBuffer[];
    double PlusSdiBuffer[];
    double MinusSdiBuffer[];
    double TempBuffer[];
    //+------------------------------------------------------------------+
    //| Custom indicator initialization function                         |
    //+------------------------------------------------------------------+
    int init()
      {
    //---- 3 additional buffers are used for counting.
       IndicatorBuffers(6);
    //---- indicator buffers
       SetIndexBuffer(0,ADXBuffer);
       SetIndexBuffer(1,PlusDiBuffer);
       SetIndexBuffer(2,MinusDiBuffer);
       SetIndexBuffer(3,PlusSdiBuffer);
       SetIndexBuffer(4,MinusSdiBuffer);
       SetIndexBuffer(5,TempBuffer);
    //---- name for DataWindow and indicator subwindow label
       IndicatorShortName("ADX("+ADXPeriod+")");
       SetIndexLabel(0,"ADX");
       SetIndexLabel(1,"+DI");
       SetIndexLabel(2,"-DI");
    //----
       SetIndexDrawBegin(0,ADXPeriod);
       SetIndexDrawBegin(1,ADXPeriod);
       SetIndexDrawBegin(2,ADXPeriod);
    //----
       return(0);
      }
    //+------------------------------------------------------------------+
    //| Average Directional Movement Index                               |
    //+------------------------------------------------------------------+
    int start()
      {
       double pdm,mdm,tr;
       double price_high,price_low;
       int    starti,i,counted_bars=IndicatorCounted();
    //----
       i=Bars-2;
       PlusSdiBuffer[i+1]=0;
       MinusSdiBuffer[i+1]=0;
       if(counted_bars>=i) i=Bars-counted_bars-1;
       starti=i;
    //----
       while(i>=0)
         {
          price_low=Low[i];
          price_high=High[i];
          //----
          pdm=price_high-High[i+1];
          mdm=Low[i+1]-price_low;
          if(pdm<0) pdm=0;  // +DM
          if(mdm<0) mdm=0;  // -DM
          if(pdm==mdm) { pdm=0; mdm=0; }
          else if(pdm           else if(mdm      //---- 恹麒耠屐 桉蜩眄 桧蝈疴嚯
          double num1=MathAbs(price_high-price_low);
          double num2=MathAbs(price_high-Close[i+1]);
          double num3=MathAbs(price_low-Close[i+1]);
          tr=MathMax(num1,num2);
          tr=MathMax(tr,num3);
          //---- counting plus/minus direction
          if(tr==0) { PlusSdiBuffer[i]=0; MinusSdiBuffer[i]=0; }
          else      { PlusSdiBuffer[i]=100.0*pdm/tr; MinusSdiBuffer[i]=100.0*mdm/tr; }
          //----
          i--;
         }
    //---- last counted bar will be recounted
       if(counted_bars>0) counted_bars--;
       int limit=Bars-counted_bars;
    //---- apply EMA to +DI
       for(i=0; i<=limit; i++)
          PlusDiBuffer[i]=iMAOnArray(PlusSdiBuffer,Bars,ADXPeriod,0,MODE_EMA,i);
    //---- apply EMA to -DI
       for(i=0; i<=limit; i++)
          MinusDiBuffer[i]=iMAOnArray(MinusSdiBuffer,Bars,ADXPeriod,0,MODE_EMA,i);
    //---- Directional Movement (DX)
       i=Bars-2;
       TempBuffer[i+1]=0;
       i=starti;
       while(i>=0)
         {
          double div=MathAbs(PlusDiBuffer[i]+MinusDiBuffer[i]);
          if(div==0.00) TempBuffer[i]=0;
          else TempBuffer[i]=100*(MathAbs(PlusDiBuffer[i]-MinusDiBuffer[i])/div);
          i--;
         }
    //---- ADX is exponential moving average on DX
       for(i=0; i      ADXBuffer[i]=iMAOnArray(TempBuffer,Bars,ADXPeriod,0,MODE_EMA,i);
    //----
       return(0);
      }
    //+------------------------------------------------------------------+


    做野心男人,创千秋伟业

    回复举报
  • 未填写

    ADX在mt4上的全称是多少

    回复举报
投稿 您想发表你的观点和看法?

更多人气分析师

  • 张亦巧

    人气2208文章4145粉丝45

    暂无个人简介信息

  • 张迎妤

    人气1904文章3305粉丝34

    个人专注于行情技术分析,消息面解读剖析,给予您第一时间方向...

  • 指导老师

    人气1864文章4423粉丝52

    暂无个人简介信息

  • 李冉晴

    人气2320文章3821粉丝34

    李冉晴,专业现贷实盘分析师。

  • 梁孟梵

    人气2184文章3177粉丝39

    qq:2294906466 了解群指导添加微信mfmacd

  • 王启蒙现货黄金

    人气320文章3491粉丝8

    本人做分析师以来,并专注于贵金属投资市场,尤其是在现货黄金...

  • 金泰铬J

    人气2328文章3925粉丝51

    投资问答解咨询金泰铬V/信tgtg67即可获取每日的实时资讯、行情...

  • 金算盘

    人气2696文章7761粉丝125

    高级分析师,混过名校,厮杀于股市和期货、证券市场多年,专注...

  • 金帝财神

    人气4760文章8329粉丝119

    本文由资深分析师金帝财神微信:934295330,指导黄金,白银,...

FX168财经

FX168财经学院

FX168财经

FX168北美