Trading robot · MT4 · MT5

Adjustable MA 3G

by EarnForex

This expert advisor for MetaTrader 4 and 5 executes trades based on crossovers of the 3rd Generation Moving Average indicator.

GitHub stars3
Forks1
Last update5 months ago17 Apr 2026
LicenceApache-2.0
Latest release1.055 months ago

Overview

Adjustable MA 3G utilizes two instances of the custom indicator with adjustable periods and sampling settings to identify trend shifts. The robot enters positions when the difference between the fast and slow averages exceeds a user-defined point threshold. Risk controls include fixed stop loss, take profit, and an optional trailing stop. It includes comprehensive time filters for scheduling and supports fixed lot sizing or margin-based money management. The README notes that the EA is primarily intended for research.

Details

Author

EarnForex on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5)

Strategy

Indicator crossover

Markets

Forex

Timeframes

Any timeframe

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Topics

expert-advisorforexforex-robotforex-tradingma-crossovermetatradermetatrader-4metatrader-5moving-averagemql4

Input parameters

Read from Adjustable_MA_3G.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
Period_1int30
Period_2int35
Period_Sampling_Fastint196
Period_Sampling_Slowint160
MA_Method_FastENUM_MA_METHODMODE_EMA
MA_Method_SlowENUM_MA_METHODMODE_EMA
MA_Applied_Price_FastENUM_APPLIED_PRICEPRICE_TYPICAL
MA_Applied_Price_SlowENUM_APPLIED_PRICEPRICE_TYPICAL
MinDiffint10Minimum difference between MAs in points
StopLossint1700Stop-loss in points
TakeProfitint600Take-profit in points
TrailingStopint0Trailing stop in points
Show all 34 inputs
NameTypeDefaultDescription
TrailingStopTriggerProfitint0TrailingStopTriggerProfit: Profit in points to start trailing. 0 = start immediately.
TradeDirectionENUM_TRADE_DIRECTIONTRADE_DIRECTION_BOTH
StartHourint0Start hour (Server), inclusive, 0-23
StartMinuteint0Start minute, 0-59
EndHourint23End hour (Server), inclusive, 0-23
EndMinuteint59End minute, 0-59
TradeOnMondaybooltrue
TradeOnTuesdaybooltrue
TradeOnWednesdaybooltrue
TradeOnThursdaybooltrue
TradeOnFridaybooltrue
TradeOnSaturdaybooltrue
TradeOnSundaybooltrue
CloseTradesOutsideTradingTimebooltrue
DoTrailingOutsideTradingTimebooltrue
Lotsdouble0.1
UseMMboolfalse
LotsPer10000double1LotsPer10000: Number of lots per every 10,000 of free margin.
Slippageint30
OrderCommentarystringAdjustable MA 3G
DisplayStatusCommentboolfalseDisplay comment-based status?
Magicint29472394

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone EarnForex/Adjustable-MA-3G from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
  3. 3Copy the filesCopy the .mq4 / .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

EA31337

by EA31337
1.3k stars

EA31337 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat

MT5 Trading robot Multi-strategyNewsTrend following
Updated 5 months ago GPL-3.0 GitHub repository of EA31337

EA31337 Libre

by EA31337
252 stars

EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario

MT5 Trading robot Multi-strategyTrend followingMean reversion
Updated 1 year ago GPL-3.0 GitHub repository of EA31337 Libre

EA Scalper XAUUSD

by francomascareloai
236 stars

EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di

MT5 Trading robot SMC / ICT / price actionIndicator crossoverScalping High risk
Updated 3 months ago Custom licence GitHub repository of EA Scalper XAUUSD

Ladino Bot

by landim32
203 stars

Ladino Bot is an open-source expert advisor for MetaTrader 5 that uses HiLo Activator indicators and moving average crossovers to identify trade entries. It features a triple-timeframe architecture, allowing users to align entries with higher-period trends. Risk controls include daily gain and loss caps, brokerage fee

MT5 Trading robot Indicator crossoverTrend following Archived
Updated 1 year ago GPL-3.0 GitHub repository of Ladino Bot

ADX Cross EA

by chaipat-ncm
143 stars

This MetaTrader 4 expert advisor functions as an automated trading robot using the Average Directional Index (ADX) to identify trend strength and direction. It executes trades based on ADX crossovers and specific level thresholds. The EA provides essential risk management tools, including stop loss, take profit, and a

MT4 Trading robot Indicator crossoverMartingaleTrend following High risk
Updated 2 years ago None stated GitHub repository of ADX Cross EA

Gold Trader EA

by mehdi-jahani
141 stars

Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform. It employs a fusion engine that combines up to 14 different technical analysis methods, including candlestick patterns, chart patterns, price action, and institutional levels. The system requires a user-defined n

MT5 Trading robot Multi-strategyTrend followingIndicator crossover
Updated 1 year ago None stated GitHub repository of Gold Trader EA

More trading robots

Need a broker for MT4/MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers