Home » Expert Advisor » ADX EA (Average Directional Movement Index)

ADX EA (Average Directional Movement Index)

Get the ADX EA (Average Directional Movement Index)!

3.7/5203 ratings

About the ADX (Average Directional Movement Index)

The ADX Indicator (Average Directional Movement Index) was developed in 1978 by J. Welles Wilder and is a Moving Average based trend indicator. It is based on 3 lines: the ADX line, plusDI (+DI) and minusDI (-DI). It is included in Metatrader 4 and 5. The default setting is 14 for the ADX period.

Trade logic of this Expert Advisor

The ADX EA is a forex robot based on the ADX indicator. It includes 5 different entry strategies and in the Advanced and Pro version 3 additional exit strategies.

Entry Strategies

  • ADX Breaks Over Level
    trades if the ADX Main Line crosses above the Entry Level
  • ADX Breaks Under Level
    trades if the ADX Main Line crosses below the Entry Level
  • +DI/-DI Breaks Over Level
    trades if the +DI (-DI for short) crosses above the Entry Level
  • +DI/-DI Breaks Under Level
    trades if the +DI (-DI for short) crosses below the Entry Level
  • +DI/-DI Crosses
    trades if the +DI crosses the -DI from below (from above for short)

Entry Filters / Entry Settings

  • for Breakout Strategies
    • Entry Level
      Set the Breakout Level.
    • Use +DI/-DI Trend Filter
      Choose this filter to only open buy orders if the +DI is above the -DI (vice versa for short)
    • Min Price Difference Between +DI/-DI
      Set the minimum price difference between the +DI and -DI Line in order to open a trade
  • for Cross Strategy
    • Min Level Of Main Line
      Define what the minimum price of the ADX Main line has to be,  to open a trade
    • Main Line Sloping Upwards
      Choose if you want the Main Line to be sloping upwards to open a trade
    • Confirm Cross On Breakout
      Trades also the Breakouts after a cross

Exit Strategies (only Advanced & Pro versions)

  • ADX Breaks Exit Level
    Closes the trade if the Main Line crosses the Exit Level
  • +DI/-DI Breaks Exit Level
    Closes the trade if the +DI Line crosses the Exit Level (-DI for short)
  • +DI/-DI Crosses
    Closes the trade on a crossover of the +DI and -DI lines

Versions overview

Functions Basic Advanced Pro
5 Entry Strategies
Entry Filters
Money Management
Trade on new Bar
Inverse Strategy
3 Exit Strategies
Trailing Stop
Break Even
Spread Filter
MA Trend Filter
Candle Trail
ATR Trail
Day/Time Filter
Reverse on Opposite Signal
Trade Direction

Starter Bundle

The ADX EA (Average Directional Movement Index) is included in the EA Starter Bundle.

More about the ADX EA (Average Directional Movement Index)

  • You can install the ADX EA (Average Directional Movement Index) on limitless demo and live accounts.
  • Note that this Metatrader Expert Advisor does not draw any indicator on the chart.
  • You do not understand all the functions? Take a look at our function glossary.
  • This EA is not pre-optimized. Please read the article about optimization first.
  • The license of every Expert Advisor you download is time limited, but you can re-download newer versions any time in your purchase history.
  • MT4 Basic v2.02
  • MT4 Advanced v2.02
  • MT4 Pro v2.03
  • Dez 13, 2017

  • Fixed: Problem with trading sessions of some brokers
  • Aug 28, 2017

  • Fixed: Martingale function in Pro version
  • Sep 15, 2016

  • Fixed: In some cases the “Send Alert On Trade” function did not work correctly
  • Sep 7, 2016

  • Update: Re-written the complete EA
  • Added: The EA has now 5 entry strategies
  • Added: The EA has now 3 exit strategies (only advanced and pro version)
  • Added: “Reverse On Opposite Signal” (only pro version)
  • Removed: “Trade max. once per bar”
  • Jan 13, 2016

  • Minor updates and fixes in all MT4 versions
  • Nov 1, 2015

  • Bugfix: MA Trend Filter for MT4 Advanced and MT4 Pro version
  • Bugfix: Day/Time Filter in the range strategy (MT4 Pro)
  • Oct 30, 2015

  • Added MA Trend Filter for MT4 Advanced and MT4 Pro version
  • Sep 24, 2015

  • Initial release MT4 Pro
  • Apr 11, 2015

  • Some improvements in all MT4 versions
  • Added “Max once per Bar” function to all MT4 Advanced and Pro versions
  • Mar 01, 2015

  • Initial release MT4 Basic and MT4 Advanced

Need a good Forex Broker for your trading tools?

38 thoughts on “ADX EA (Average Directional Movement Index)”

  1. pedro o says:

    does it open on current bar or new candle.

    1. Yannick says:

      You can choose between both. The parameter is “TradeOnNewBar”

  2. waleed madani says:

    Hi, Is there a complete manual for this ADX ea?


    1. Yannick says:

      Only on this page and the functions glossary.

  3. solmvkr says:

    Hi Yannick I would like to buy this EA buy I just want to check it can do one thing. Can I set the EA so that for example it will only buy when the d+ crosses 20 upwards then close that first trade and immediately open a sell when the d- crosses 20 upwards then when the d+ crosses 20 upwards it closes the immediately sell order and buys again etc etc? If so which version do I need? The one with the “Reverse on Opposite Signal”?


    1. Yannick says:

      Yes, exactly. This works with the Reverse on opposite signal function.

  4. smroos123 says:

    I have been trying multiple settings on the 4 hr chart and have only ever broke even or came out a little ahead over the course of two years of back testing, does anybody have recommended settings that are actually profitable and worth the time of using this EA??

    1. Yannick says:

      Maybe you’ll find some settings in the forum.

  5. Stephen Roos says:

    Hello, I’m looking for an ADX EA that will open and close trades simultaneously as the D+ and D- lines cross. I want it to only open trades when the lines cross nothing more, nothing less, does your EA do this and if so what version do I need to purchase?

    Example: D+ line crosses the D- line, a buy order is executed and will continue to stay open until the D- line crosses above the D+ line at which point it will close out the buy order and then execute a sell order and the cycle keeps repeating itself over and over. So only one trade will ever be open per currency pair.

    1. Yannick says:

      Yes, you can do this.

  6. mikhail says:

    hi yannick
    i already download free adx ea. then i want backtest the ea but cannot run. how to backtest this ea. tq.

    1. Yannick says:

      Please read the strategy tester guide:

  7. siglas says:

    Could I buy this EA for MT5. I only see the MT4 available in the web.

    1. Yannick says:

      Only the MT4 version is available for now.

      1. Siglas says:

        Alright, I will stay with MT4. But I cannot make work with SP500 or Silver for example, it seems to work just with FOREX. Is that right?

        1. Yannick says:

          It should work on all symbols. But you need to tweak the settings a lot for using it on CFDs. Try to increase all pip based values by 10 or 100.

  8. Patrick Höglmeier says:

    Hey Genius Yannick. I love your Eas and the way they works. I bought your ADX PRO EA and need little change in this EA. I need a Filter to wait for the entry for a time or points which i can define. Something like : Wait for Trading after Signal: For example 30 Minutes / 30 Pips against your direction…

    Is this possible? it is maybee also interessting for other EAs, because often when i get a Signal the Price first runs for a short time against my direction, and then i goes in my direction. I just need something to wait for the entry.

    I m sorry for my bad english. Please contact me if you want more information about my idea.

    Greetz from Germany

    1. Yannick says:

      Yes, something like this would be possible. Unfortunately, at the moment I do not make custom modifications.

  9. Noel Nobleza says:

    Hi Yannick,

    What is the Min price Difference of +DI/-DI in order to open a trade, is this the same as +DI/-DI level? Please advise.

    1. Yannick says:

      Yes, its the same as +DI/-Di levels.

  10. woodstock says:

    I purchased your Pro Ea….works great. I am running it multiple times on the same pair with different settings. There is no ‘Comment’ section in Inputs so I cant tell what trades are being placed on what EA settings in the Account History Tab. Can this be fixed?

    1. Yannick says:

      No, at the moment the only way to track the trades is by using the MagicNumber and 3part tools like MyFxBook of fxBlue.

  11. housing says:

    The ADX EA Pro does not have the MaxOpenOrders / MaxOpenTrades function…

    Please advise.

    1. Yannick says:

      No, the EA only has the function listed in the Function Overview table on the bottom of the page.

  12. jcbillion says:

    Hello Yannick, I’m very interested in purchasing the pro version of the ADX EA but I would like to know if specifically this exit strategy is available in the pro version

    Exit buy(long) trade when -DI line crosses exit level and Exit sell(short) trade when +DI line crosses exit level.

    This Exit strategy would work perfectly well with my intended trading system.

    Thanks for your anticipated reply

    1. Yannick says:

      The “+DI/-DI Breaks Exit Level” works the exact opposite way. You exit strategy would require a custom modification.

  13. Lizelle Strydom says:

    HI Yannick,
    How do we get the discount code?

    1. Yannick says:

      What discount code do you mean?

  14. nicola says:


  15. nur says:

    I downloaded the ADX EA for free, but I can not at all not even open. I was looking for programs on the net but none of them succeeded. What can you do.

    1. Yannick says:

      Try this manual.

  16. rafrosy says:

    su quale time frame ? Grazie

    1. Yannick says:

      You can use this EA on any timeframe. Maybe this topic will also help you.

  17. omar arafat says:

    i want to update the ADX2.0 Ea but i donot know? i try to do it

    1. Yannick says:

      Login to your account, download the new file and overwrite the old file on your computer.

  18. Miklos Madarasz says:

    I downloaded the ADX EA for free, but I can not at all not even open. I was looking for programs on the net but none of them succeeded. What can you do.

    1. Yannick says:

      Please use this manual to install your Expert Advisors.

  19. murtadha says:

    very good work

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.