Skip to content

20-Period Moving Average Metatrader 4 Forex Robot

    The 20-Period Moving Average Metatrader 4 Forex Robot is an automated trading software or expert advisor that executes buy and sell market orders based on the popular 20-period moving average.

    The EA works on all time frames and for all major forex pairs, for instance EUR/USD, GBP/USD, USD/CAD, etc.

    It has a proprietary system that allows the user allocate Trailing Stop Loss and Take Profit.

    The EA’s profit factor is 1.47.

    What this robot does is that it primarily gauges the direction of the current trend, while engaging trade signals in an automated trading fashion (meaning the EA is responsible for all entry and exit roles, hence a hands-off for the users).

    You’re free to tinker with the EA’s input values as much as possible for a more personalized experience.

    Free Download

    Download the “1MA.mq4” MT4 robot

    Strategy Tester Report

    Find below the 20-Period Moving Average forex robot strategy tester report for the EUR/USD forex pair on the 4-Hour chart.

    Overall Performance

    The EA made a total profit of $2518.96 from a total of 314 trades. The largest winning trade generated $246.63 in profits, while the largest losing trade generated a loss of-$66.44.


    Bars in test: 8712 ticks modelled

    Initial deposit: $10000.00

    Total net profit: $246.63

    Total trades: 314

    Largest profit trade: $246.63

    Largest loss trade: -$66.44

    Consecutive wins: 3

    Consecutive losses: 1


    Download the “1MA.ex4” Metatrader 4 robot

    MT4 Forex Robot Characteristics

    Currency pairs: Any

    Platform: Metatrader 4

    Type: Expert advisor

    Input Parameters: Enable “no loss,” When to move break even, How much pips to move sl, Lots size, MaximumRisk, DecreaseFactor, TrailingStop, Stop Loss, MagicNumber, TakeProfit…

    Time frames: 1-Minute, 5-Minutes, 15-Minutes, 30-Minutes, 1-Hour, 4-Hours, 1-Day, 1-Week, 1-Month

    Type: MA


    Copy and paste the 1MA.mq4 into the MQL4 Experts folder of the Metatrader 4 trading platform.

    You can access this folder from the top menu as follows:

    File > Open Data Folder > MQL4 > Experts (paste here)

    Share this post!