Adjustable MA Expert Advisor for MT4/MT5 – Customizable Moving Average Crossover System

12/16/2022

The Adjustable MA Expert Advisor is a highly customizable Moving Average (MA) crossover trading system designed for MetaTrader 4 and MetaTrader 5. It provides traders with flexible control over a classic two–moving average crossover strategy, allowing detailed tuning to match different trading styles and market conditions.

This EA opens a position whenever a valid crossover between two moving averages occurs and automatically closes the trade at the next opposite crossover. Traders can customize nearly every aspect of the strategy, including MA periods, MA calculation methods, minimum crossover distance, stop-loss, take-profit, trailing stop, slippage, and money management rules.

The Adjustable MA EA is intended primarily as a research, optimization, and strategy-testing tool, rather than a ready-to-use black-box system. Performance depends heavily on parameter selection, symbol, timeframe, and market conditions.

Backtesting Performance
A long-term backtest of the Adjustable MA Expert Advisor was conducted with the default settings on the EUR/USD M5 chart, using a fixed trade size of 0.1 standard lots over a 6-year period.

The results were as follows:

  • Total Profit: approximately 12.2%
  • Maximum Drawdown: approximately 12.6%
  • Total Trades: 647
  • Winning Trades: 56.41%

These results indicate that, with default parameters, the strategy produces modest profitability with relatively high drawdown. For this reason, it is not recommended to use the EA on a live account without extensive optimization and forward testing.

Input Parameters
Main Settings

  • Period_1 (default: 20): Period of the first moving average
  • Period_2 (default: 22): Period of the second moving average
  • MA_Method (default: MODE_EMA): Type of moving average calculation
  • MinDiff (default: 3): Minimum distance between MAs required to confirm a crossover
  • StopLoss (default: 0): Stop-loss in pips (0 disables stop-loss)
  • TakeProfit (default: 0): Take-profit in pips (0 disables take-profit)
  • TrailingStop (default: 0): Trailing stop in pips (0 disables trailing stop)

Money Management

  • Lots (default: 0.1): Fixed trade size when money management is disabled
  • UseMM (default: false): Enables automatic position sizing based on free margin
  • LotsPer10000 (default: 1): Lots traded per $10,000 of free margin when UseMM is enabled

Miscellaneous

  • Slippage (default: 3): Maximum allowed slippage in pips
  • OrderCommentary (default: “Adjustable MA”): Comment attached to EA trades

Mini FAQ
What stop-loss and take-profit values are used by default?
By default, the EA uses a fixed stop-loss of 100 pips and a take-profit of 70 pips. The trailing stop feature is disabled by default.

How often does the EA trade?
On the EUR/USD M5 chart using the backtest settings, the EA trades approximately once per day on average.

Are non-default settings recommended?
Yes. A limited forward test on the AUD/USD M5 chart showed improved performance using the following adjusted parameters:

  • StopLoss: 30
  • TakeProfit: 50
  • TrailingStop: 20
  • Period_1: 50
  • Period_2: 10

These results suggest that the Adjustable MA EA can become profitable only with proper optimization and forward testing, and should not be considered a plug-and-play trading solution.

Adjustable MA | MT4
Adjustable MA | MT5

Password:forexsignalpro.net

Disclaimer: Always test the robot on a demo account before using real money. Trading involves risk.