This high-frequency trading robot implements latency arbitrage by comparing price feeds across two separate MetaTrader terminals. It requires a fast data source to serve as a reference and a slower broker where price delivery lags behind the market. The EA communicates between instances via a socket library to detect p
This MetaTrader expert advisor implements a classic moving average crossover strategy for both MT4 and MT5. It enters trades when a fast moving average crosses a slow moving average, requiring a user-defined minimum point difference to confirm the signal. The robot includes risk management features such as stop loss, t
This MetaTrader 4 expert advisor executes a regime-gated breakout strategy specifically optimized for XRP and ETH markets. It operates on the H4 timeframe, utilizing Bollinger Bands for entry signals coupled with ADX and ATR filters to identify high-volatility trend environments. The EA employs a one-shot entry approac
Conservative Scalper EA is a MetaTrader 4 robot designed for intraday scalping on major currency pairs such as EURUSD, GBPUSD, and USDJPY. It determines market bias on the M15 timeframe using dual Exponential Moving Averages and enters trades on the M5 chart based on RSI levels and candle breakouts. The system prioriti
This Expert Advisor for MetaTrader 4 utilizes automated trading logic reportedly assisted by AI models like GPT-4o and ATNet. It executes trades based on market analysis and includes built-in risk controls such as dynamic lot sizing, trailing stops, and a time filter to restrict activity to specific hours. The system a
This expert advisor for MetaTrader 4 and 5 executes trades based on crossovers of the 3rd Generation Moving Average indicator. It 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 slo
An automated trading system for MetaTrader 4 specifically designed for gold (XAUUSD) on the M5 timeframe. It features two core strategies: trend continuation and price pullbacks. The expert advisor utilizes a dual exponential moving average framework for direction and ATR for volatility filtering. Risk management is ha
AutoTrade EA is a scalping robot for MetaTrader 4 and 5 that utilizes a multi-indicator signal scoring system based on Exponential Moving Average crossovers and RSI levels. It employs an aggressive trade management strategy featuring a dynamic grid and a stepped martingale lot scaling system where position sizes increa
Edelweiss EA is an educational trading robot for MetaTrader 4 that utilizes a multi-indicator framework to generate buy and sell signals. It combines exponential moving averages, stochastic oscillators, the awesome oscillator, ADX, and Bollinger Bands to identify market entries. Trade management includes dynamic ATR-ba
MT4Trading robotIndicator crossoverMean reversionTrend following
Hosopi operates as an automated trading robot for the MetaTrader 4 and MetaTrader 5 platforms. It utilizes a modular architecture to handle trade execution and account protection, incorporating indicator-based entry logic and volatility filtering. The software includes a Funds Guard to prevent orders during insufficien
MQ Autonomous is a momentum breakout expert advisor for MetaTrader 4 and MetaTrader 5. It scans multiple assets simultaneously for significant daily price movements exceeding a specified percentage. Once a threshold is met, the system seeks entries based on price breaking recent highs or lows, supported by a volume ave
Mveuuh Gold is an automated MetaTrader 4 expert advisor designed specifically for trading XAUUSD. It utilizes a multi-layered trend filtering system based on three Exponential Moving Averages and the Average Directional Index to determine entry direction. The EA employs a grid-based pyramid strategy, opening additional
This algorithmic scalping robot for MetaTrader 4 and 5 uses a five-factor confluence engine to identify trade entries. It monitors RSI extremes, Bollinger Band breakouts, MACD momentum, EMA ribbons, and volume acceleration. The EA employs percentage-based risk management with a strict stop loss and a flexible take prof
This automated expert advisor for MetaTrader 4 and 5 trades forex using a multi-timeframe technical strategy. It identifies H1 trends with moving averages and Ichimoku clouds while timing M5 entries via MACD and RSI convergence. The system incorporates robust risk controls including equity-based lot sizing, daily loss
This MetaTrader 4 expert advisor is designed for XAUUSD scalping on the M1 timeframe. It switches logic based on market regimes: in trending markets, it follows the higher timeframe direction using EMA reversals and breakout entries, while in ranging markets, it executes trades based on liquidity sweeps at price extrem
MT4Trading robotScalpingSMC / ICT / price actionTrend following
This MetaTrader 4 expert advisor implements a mean-reversion strategy using Z-score analysis of VWAP log-returns. Instead of fixed parameters, the system dynamically calculates an optimal lookback window by comparing observed price volatility against theoretical random walk models. The EA enters trades when price retur
This MetaTrader 4 expert advisor implements a foundational trend-following strategy based on a 20-period Exponential Moving Average. It enters long positions when the market price trades above the average and short positions when it trades below. The code is designed as a template for users of the book Options Trading
MT4Trading robotIndicator crossoverTrend following
Puer Tigris is a MetaTrader 4 expert advisor that implements multiple entry strategies, primarily focusing on Bollinger Bands mean reversion. It features a martingale lot scaling system where position sizes are multiplied after a trade is closed, with a configurable limit on the number of recovery levels. The robot use
My Algo EA is a modular expert advisor developed for trading XAUUSD on the MetaTrader 4 platform. It utilizes a trend-following approach based on Exponential Moving Averages and the Average True Range indicator. The robot manages entries through a dedicated module that considers current market sessions, spread limits,
This automated trading system for MetaTrader 4 is specifically designed for Gold (XAUUSD) on the fifteen-minute timeframe. It identifies market direction using an Exponential Moving Average crossover on the hourly chart and executes trades on the M15 chart during pullbacks to short-term moving averages. Risk management
This MetaTrader 4 robot implements a grid-based hedging strategy triggered by inside bar price formations. It places multiple pending orders on both sides of a breakout and uses martingale lot scaling to increase position sizes for subsequent entries. The expert advisor is designed for the H4 and Daily timeframes, util
Liquidity Scalper is an automated expert advisor for XAUUSD (Gold) on MetaTrader 4 and 5. It executes trades based on institutional order flow and Smart Money Concepts, specifically targeting liquidity sweeps followed by market displacement. The system identifies order blocks and enters on either retests or momentum-ba
This expert advisor is designed specifically for trading gold on the MetaTrader 4 platform. It employs a hybrid strategy approach, allowing users to toggle between trend following using moving average crossovers, mean reversion via RSI and Stochastic divergence, and breakout patterns. Trade management includes automate
GM Remake is an automated trading robot for MetaTrader 4 that executes a multi-stage martingale strategy. It initiates trades based on price breakout logic and manages drawdowns by layering additional positions at user-defined distances. To refine entries, the EA utilizes dual exponential moving averages and MACD trend
This MetaTrader 4 expert advisor automates trading using an exponential moving average crossover strategy, specifically targeting the AUD/NZD currency pair. It filters entries using ADX for trend strength and ATR for volatility, ensuring trades occur under specific market conditions. Risk management is handled through
ÆEA is an automated trading robot for MetaTrader 4 that employs an ensemble of technical indicators to identify market imbalances. The strategy, described by the author as the Proportionality Principle, triggers trades when a specific ratio of bullish to bearish indicator signals is met. It calculates inputs from a wid
This MetaTrader 4 expert advisor implements a grid-based trading approach by opening buy and sell positions based on price distance. The system evaluates current market orders and places new trades only when the price moves a specific distance, defined by the step parameters, from existing entries. Users can independen
Hosopi3 Tanpoji is a single-position trading robot for MetaTrader 4 and MetaTrader 5, specifically developed to avoid martingale and averaging techniques. It triggers entries using various built-in technical indicators such as Moving Averages, RSI, Bollinger Bands, and Stochastics, or through external custom indicator
This expert advisor for MetaTrader 4 automates trade execution based on user-defined price levels. It places pending sell orders at a specific entry price and monitors market movement to trigger positions. The logic includes an automated exit routine that closes trades when the price returns to the initial entry level.
Gotobi Basic EA is a trading robot for MetaTrader 4 and MetaTrader 5 designed to exploit the Japanese Gotobi anomaly. It targets days divisible by five, when demand for the US Dollar typically increases among Japanese firms for settlement. The EA enters a long position at the market open, closes it at the 9:55 AM Nakan
Hosopi 2 is an automated trading robot for MetaTrader 4 and 5 that utilizes a mean-reversion strategy based on Bollinger Bands. The system enters counter-trend trades when price hits the bands and manages positions using a Nanpin martingale approach, layering orders at intervals to average down. Risk controls include t
This MetaTrader 4 expert advisor automates trading based on Gann Fan theory by identifying trend angles from recent swing highs and lows. It enters the market using buy and sell stop orders placed at specific distances from detected Gann lines. The robot includes risk management features such as fixed stop loss, take p
This MetaTrader 4 expert advisor combines the Relative Strength Index, Moving Average, and Average Directional Index to identify trend-following entries. The strategy executes trades when price positioning relative to the moving average aligns with RSI exhaustion levels and ADX trend strength. It includes built-in risk
The ForexR EA Library collects open-source expert advisors for MetaTrader 4 and MetaTrader 5 that are published on GitHub. Each entry links to the original repository, so you always get the author's latest code, issues and licence straight from the source. Star counts, last updates and licences are synced from GitHub every hour, and new repositories are added every week.
Every repository is checked automatically before it is listed: it must contain readable MQL source code for a real expert advisor, and repositories that ship executables, hide downloads behind archive passwords or show signs of bought stars are left out. The summaries and tags are written automatically from each repository's README and code. They describe what an EA does; they are not a recommendation, and nothing here is tested or endorsed by ForexR.
Trading with expert advisors is risky. Backtest any EA and run it on a demo account before you trust it with real money. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.
EA Library FAQ
What is an expert advisor (EA)?
An expert advisor is a program that runs inside MetaTrader 4 or MetaTrader 5. It can open and close trades on its own, manage trades you opened (trailing stops, break-even, partial closes), protect the account, or connect MetaTrader to other tools such as Telegram or Python. EAs are written in MQL4 (MT4) or MQL5 (MT5).
Are the EAs in this library free?
Yes. Every EA listed here is published on GitHub with its source code, so you can read, download and compile it at no cost. Check each repository's licence before reusing the code in your own projects: some EAs state no licence at all.
Are these EAs safe to use?
ForexR lists only repositories with readable MQL source code and never hosts files. Repositories that ship executables, ask you to disable antivirus, hide downloads behind passwords or show signs of bought stars are left out automatically. That does not make any EA profitable or bug-free: read the code, backtest it in the Strategy Tester and run it on a demo account first.
How do I install an EA in MT4 or MT5?
Download the source from GitHub, open MetaTrader, choose File, then Open Data Folder, and copy the .mq4 (MT4) or .mq5 (MT5) file into MQL4/Experts or MQL5/Experts. Open it in MetaEditor and press Compile, then drag the EA from the Navigator onto a chart and allow algorithmic trading.
How does ForexR choose which EAs to list?
A crawler searches GitHub every week for MetaTrader repositories, reads their code and keeps those that contain a real expert advisor and pass the safety checks. Stars, updates and licences are refreshed from GitHub every hour. Summaries are written automatically from each repository's README and code, so treat them as a guide and check the source.
What do "High risk", grid and martingale mean?
A grid EA opens a ladder of orders at fixed distances; a martingale EA increases the lot size after losses. Both can show smooth equity curves for a long time and then lose a large part of the account in one strong trend. EAs that use either are marked High risk, and you can hide them with the "Hide grid and martingale" filter.
Run EAs with a broker that supports MT4 and MT5
Compare regulated brokers by platform, spreads, minimum deposit and leverage.