Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Expert Advisor | Adjustable Moving Average EA

MetaTrader Experts, Indicators, Scripts and Libraries

📈 Adjustable Moving Average EA for MT4


This Expert Advisor trades based on the crossover of two customizable moving averages. It's designed for traders who want full control over trade direction, entry logic, and risk settings.

⚙️ Input Parameters Explained:

  • FastPeriod: Period of the fast moving average.

  • SlowPeriod: Period of the slow moving average.

  • MAPriceType: Price used in MA calculation (e.g., Close, Open, High, Low).

  • SL_Points: Stop Loss in points. Set to 0 to disable.

  • TP_Points: Take Profit in points. Set to 0 to disable.

  • TrailStopPips: Enables a trailing stop after the trade is in profit.

  • EntryMode: Choose between Long-only, Short-only, or Both directions.

  • FixedLot: Lot size used for each trade.

  • MaxSlippage: Maximum allowed slippage in points.

  • TradeComment: Adds a comment to each trade for identification in history.

58250