Moving Average EA 2.0

Add to Cart

About the Moving Average

The Moving Average is the most used indicator and is by default included in Metatrader 4 and 5. A Simple Moving Average is calculated on the Average of the desired Close Prices of each candle. The Moving Average indicator has 4 different methods of calculation. Simple, Exponential, Smoothed and LinearWeighted. The default period setting is 14.

Trade logic of this forex robot

The Moving Average EA is a forex robot and uses one Moving Average to trade. If a candle crosses the Moving Average from below, the EA will enter a long position. Vice Versa for the short position.

MA Trend Filter

The Moving Average EA has the normal MA Trend Filter function included in all 3 version and has 3 additional settings. Activate this filter to get better entry signals.

Advanced MA Trend Filter Settings:

  • Price: Trades only if the current price is above/below the MA Trend Filter.
  • Signal MA: Trades only if the Signal Moving Average is above/below the MA Trend Filter.
  • Slope: Trades only if the slope of the MA Trend Filte in a  upwards/downwards direction.

Reverse On Opposite Signal

Since version 2.00, the PRO version has an Reverse On Opposite Signal function. If this function is active, the EA has a long position open and there is a short signal, the EA will close the long position and enter a short position.

Parameters for the Moving Average EA

Timeframe = The timeframe on which the EA should work regardless what timeframe your chart is set to.
Averaging period = Averaging period of the Moving Average (default is 80)
Shift = The indicator shift relative to the chart (default is 0)
Averaging method = The methods of the price series
Applied price = The price values , on which calculations will be performed

Versions overview

All versions have variable Magic Number, Take Profit, Stop Loss, Lot Size and Slippage.





  • Version

    MT4 Basic v2.00
    MT4 Advanced v2.00
    MT4 Pro v2.00

  • Changelog

    Aug 25, 2016

    Tweak: Re-written the strategy for more stability
    Update: The MA Filter is now available in all version
    Added: “Reverse On Oppsite Signal” (only pro version)
    Added: New “Additional MA Trend Filter settings” in all versions
    Removed: The “high/low” strategy in all versions
    Removed: “Trade max. once per bar” (for security reasons with this EA)

    Jan 13, 2016

    Minor updates and fixes in all MT4 versions

    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

    Feb 09, 2015

    Bug fixed when opening an order
    open/close and high/low option added

    Feb 07, 2015

    Initial release MT4 Basic and MT4 Advanced

42 thoughts on “Moving Average EA 2.0

  1. Can anyone help with the best set up for the MA expert trader.
    I have bought the professional pack.


    1. Hello Yannick

      I believe you will respond to all my questions, finally how can i delay trade execution for by 5 to 10 pips whenever the candle crosses the M.A?
      I need this input too…


  2. Hello Yannick,

    You said you plan to improve this E.A, is there an updated version now and what are the new modifications?


    1. I have made a big update on Aug 25, 2016. Please click on the changelog tab on the right side to see all changes.

      1. Hello Yannick,

        I have purchased the MA E.A pro but it is not executing trades at all.
        I have used the basic version of this E.A and I seem to like it because I was able to set it well but I just need the reverse strategy so I got the pro version to appreciate your work more.

        Please i need your support to set it up well.


  3. Hi Yannick, I get the expiration notice with the request to download the new version, but your web site does not show that there is a new version… I have the MT4 Pro v2.00 installed.

    1. The version code is still the same, but when you download the EA again, the license will be extended.

    1. I’ve already seen that the PRO version has trailing stop. If I buy EA I get the file in MQ4 format?
      Thank you.

  4. can this be used to automatically close out trades when price goes below or above moving average by 10 or 15 pips or is that something that would need to modify?

  5. Hi, Yannick.
    This EA, can open a position when the candle opens below and closes above the MA and opposite

  6. Hi,

    I have a question here.

    For the moving average 2.0 EA,
    Is that possible to run a logic like below:
    -Enter long ONLY if the candle close above MA.
    -Ignore if the candle close below the MA.


    1. The Pro version has a function called “Trade Direction”. This will allow you to trade only long signals.

  7. hi dear Yannick
    i downloaded basic version of this nice ea to test it and after that buy pro version. i want to use it for this method :

    1. Look at the MA X and prepare to trade once the price HIT / CROSSED the MA X.
    2. Enter LONG when next candle closed price is ABOVE the MA.
    3. Enter SHORT when next candle close price BELOW the MA.
    4. close current position with profit or loss , and open new position when new signal start. and continue…

    can i use this expert ? if yes how can i set it for this rule?
    please help

  8. Non riesco a scaricarlo, mi appare la scritta:
    An internal error has occurred, please try again or contact support.

  9. Hi, Can you please indicate when the crossover of MA’s will be done.
    I also trade on the crossover.

  10. Hi what mean slope of the MA Trend Filter? the upwards/downwards direction will automatic show or we need set value? if value, what is the value.

    1. If you activate this filter, the EA only open a long if the Moving Average Filter is going upwards.

  11. Hi Yannick, is it possible with the moving average ea to set it up so that, say the market is in a downward trend and I want it to entry a sell position when the moving average is touched?

    1. Yes, this Expert Advisor does not draw MAs to the chart. You have to attach the indicators manually.

  12. Hi Yannick, does the Basic Version exit trades the same way it does in the original version (before you added some features? Also what does ‘Trade Mode’ do? The Glossary doesn’t say anything about that feature. Lastly, I’m wondering if license expiration will somehow affect open trades?

    Thanks for your great work and for your freebies! 😉 I’ll be purchasing something later.

    1. The basic version does not have an exit strategy and will therefore only exit on SL or TP. TradeMode: Choose whether you want to enter a trade if the HighLow crosses the MA or if the CloseOpen crosses the MA. No, the EA will only check the license on initialization, means when MT starts, when you attach the EA to the chart or if you change timeframe.

  13. Hi,
    Is there any way to close position with cross? I mean, open on cross (like is doing now) and close on another cross?

Leave a Reply

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