This repository is a collection of educational expert advisors for MetaTrader 5, developed as part of an introductory MQL5 programming series. It includes multiple standalone robots utilizing common technical indicators such as moving average crossovers, Bollinger Bands, and the Relative Strength Index. The primary exp
This Expert Advisor for MetaTrader 5 implements a martingale trading strategy triggered by the Relative Strength Index (RSI). It opens an initial position when RSI reaches overbought or oversold thresholds. If price continues to move against the initial trade, the EA layers additional orders at set point intervals, mul
This MetaTrader 5 expert advisor is an educational project implementing a martingale trading strategy. It uses Bollinger Bands to trigger entries and employs a grid-based approach to manage trades by layering additional positions at fixed intervals. The system features lot size multiplication after each layer to recove
This MetaTrader 5 expert advisor functions as a grid-based recovery system that can operate independently or manage trades from external EAs via magic number filtering. It initiates entries using Bollinger Bands and RSI indicators, then manages drawdown through a recovery grid matrix. The system employs dynamic ATR-bas
This MetaTrader 5 expert advisor is designed specifically for the Deriv Crash 300 Index synthetic market. It employs a jump-diffusion model to detect price spikes and enters long positions during the subsequent recovery drift phase. The robot manages trades using fixed stop loss and take profit targets, with additional
This MetaTrader 5 expert advisor implements Smart Money Concepts (SMC) by identifying liquidity sweeps and premium or discount zones. It detects buy-side and sell-side liquidity levels, looking for price sweeps followed by retest entries. The robot manages trades using a fixed risk-to-reward ratio, trailing stops, and
Advanced Grid Trading is a MetaTrader 5 expert advisor that manages a complex grid strategy across four configurable layers. It places stop and limit orders at fixed intervals, employing either fixed or geometric lot scaling for increased grid depth. Trade management includes a shared profit pool used to close losing p
Oslib is an extensive repository of Expert Advisors and indicators for MetaTrader 5, encompassing various quantitative trading approaches. The collection includes statistical arbitrage robots that trade spreads between two correlated symbols, machine learning experts utilizing Support Vector Machines (SVM), and high-fr
This repository contains a collection of MetaTrader 5 expert advisors developed for educational purposes. The primary strategies revolve around Commodity Channel Index crossovers and Average True Range indicators for dynamic stop loss and take profit placement. The codebase includes various experimental models, such as
This MetaTrader 5 expert advisor implements a multi-layered grid strategy that manages up to three independent grids simultaneously on a single instrument. It uses the Relative Strength Index (RSI) across different timeframes to determine the initial trade direction for each grid. The EA employs martingale lot scaling,
This repository provides a collection of MetaTrader 5 expert advisors based on moving average crossovers and price distance relative to the mean. The core logic monitors the gap between the current price and a simple moving average while tracking candle direction for entry signals. The collection includes variations fo
This collection of MetaTrader 5 expert advisors focuses on grid and basket trading strategies. The core system establishes a reference price based on a specific hourly candle to initiate buy and sell grids. It manages risk using volume-weighted basket targets for take profit and stop loss. The EA employs aggressive lot
C Financial is a MetaTrader 5 repository containing a large collection of expert advisor variants focused on trend-following and price action strategies. The primary scripts utilize technical indicators like Moving Averages, ADX, CCI, and Average True Range to detect market direction and volatility. It features modular
MADR Brothers is a MetaTrader 5 expert advisor that utilizes multi-timeframe Moving Average Deviation Rates to identify trading opportunities. It filters market trends using a long-period MADR on higher timeframes while entering trades based on overbought or oversold levels of a shorter-period MADR. The system includes
This repository features a collection of MetaTrader 5 expert advisors, with a primary focus on a Renko Reversal strategy ported from Pine Script. The main robot identifies trend shifts by simulating Renko bricks on standard OHLC bars, entering and exiting trades based on a configurable number of consecutive bricks. It
This MetaTrader 5 expert advisor utilizes Stochastic Oscillator crossovers to execute buy and sell orders. It calculates entry signals based on a minimum difference between the %K and %D lines. Risk management includes stop loss and take profit levels calculated using spread multipliers, as well as a trailing stop that
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
Liquidity Trap EA is an automated trading robot for MetaTrader 5 that identifies price action setups near swing points. It detects specific candle formations using wick-to-body and body-to-average-bar ratios to enter trades based on perceived liquidity traps. The system incorporates trend filters through moving average
This repository features a collection of MetaTrader 5 expert advisors implementing various technical strategies such as time-range breakouts, order blocks, and candle pattern recognition. The primary time-range EA identifies price extremes within a user-defined window to trigger entries on breakouts. It includes risk m
Zone Entry is a MetaTrader 5 expert advisor that automates the placement of multiple limit orders within a calculated price zone, a technique described as chumming. It utilizes the Average True Range on the H1 timeframe to determine the spacing and breadth of entries based on manual price inputs. The EA manages open po
This MetaTrader 5 expert advisor utilizes a combination of Envelopes, the Gator Oscillator, and Standard Deviation indicators to execute trades. It features comprehensive trade management including stop loss, take profit, and break-even functionality. The robot allows for position scaling through adding or reducing lot
MQL Basics Collection is an educational repository for MetaTrader 5, providing a wide array of scripts and expert advisors designed to teach the fundamentals of MQL5 programming. It includes over fifty files covering essential operations such as opening and closing positions, retrieving account information, and integra
Se-0303 is an automated trading robot for MetaTrader 4 and 5 that employs a grid-based approach with Martingale lot scaling. It determines entries through trend analysis and M1 fractals, using coefficients to calculate order distances and take profit targets relative to price height. The EA includes specific risk contr
This MetaTrader 5 expert advisor utilizes ZigZag indicators and Fibonacci retracements to identify and trade ABCD patterns. Operating primarily on the M1 and M5 timeframes, the robot calculates entry points based on specific price ranges and Fibonacci levels such as 23.6 and 38.2. The system employs an aggressive marti
Dollar Killer Martingale is an automated trading robot for MetaTrader 5 that utilizes Bollinger Bands to identify market entry points. The EA initiates trades based on price interaction with band boundaries and manages drawdowns through a lot-multiplication recovery system. It features a grid-based approach where addit
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.