Synced with GitHub · updated hourly

Expert Advisor Library

1,977 free, open-source expert advisors for MetaTrader 4 and 5, each linked to its source code on GitHub.

1,977 EAs

Ledia EA Assistant

by ahmedrhuma
6 stars

Ledia EA Assistant is a manual trading utility for MetaTrader 4 designed to streamline order execution and risk management. It allows users to enter positions at market price or via custom entry levels while automatically detecting the required order type, such as limits or stops. The tool includes built-in calculators

MT4 Utility
Updated 6 years ago None stated GitHub repository of Ledia EA Assistant

OwaisQuadri MT4 Code

by OwaisQuadri
6 stars

This MetaTrader 4 expert advisor executes trades based on momentum oscillators, trend filters, and price action patterns. It utilizes a Stochastic oscillator alongside multiple Exponential Moving Averages to identify entry points in alignment with the prevailing trend. The logic incorporates candlestick analysis, speci

MT4 Trading robot Indicator crossoverTrend followingMean reversion
Updated 6 years ago None stated GitHub repository of OwaisQuadri MT4 Code

MQL4 Logger Class

by RGunning
6 stars

This MQL4 framework provides a structured logging utility for MetaTrader 4 developers to record system events to external files and the terminal console. It allows users to categorize messages across six severity levels: trace, debug, info, warning, error, and critical. The class manages file creation within the platfo

MT4 Framework & template
Updated 6 years ago GPL-3.0 GitHub repository of MQL4 Logger Class

Auto Trade EA

by leonharvey
6 stars

This automated expert advisor for MetaTrader 4 executes trades based on moving average crossovers and trend-following logic. It incorporates the Chandelier Exit method, utilizing the Average True Range and price extremes to determine market direction. Risk management is handled through user-defined stop loss and take p

MT4 Trading robot Indicator crossoverTrend following
Updated 6 years ago AGPL-3.0 GitHub repository of Auto Trade EA

Renko 2.0 Offline

by victorratts13
6 stars

Renko 2.0 Offline is a MetaTrader 5 utility designed to generate and manage Renko charts from standard price data. Instead of time-based intervals, it creates price-based bricks according to user-defined sizes in ticks, pips, or points. The expert advisor includes options for asymmetric reversals, market book monitorin

MT5 Utility
Updated 7 years ago None stated GitHub repository of Renko 2.0 Offline

Sample Bad Robot

by erlonfs
6 stars

This MetaTrader 5 expert advisor functions as a foundational template for automated trading, primarily implementing a moving average crossover strategy. The software includes comprehensive trade management features such as fixed stop loss and take profit targets defined in ticks, a trailing stop mechanism, and break-ev

MT5 Trading robot Indicator crossover
6 stars

The Line of Division is a MetaTrader 5 expert advisor that identifies trading opportunities based on price frequency and level touches. The strategy monitors how many times a specific price is traded across various candles, entering buy or sell positions once a touch threshold is reached and the price deviates from tha

MT5 Trading robot Breakout

Falcon S

by vzhomeexperiments
6 stars

Falcon S is a rule-based expert advisor for MetaTrader 4 designed to execute trades based on external sentiment analysis data. It functions as a production bridge for decisions generated in external environments like R, reading trade triggers from CSV files. The robot operates primarily on the H1 timeframe with schedul

MT4 Trading robot NewsAI / machine learning
Updated 7 years ago MIT GitHub repository of Falcon S

Aladdin 9 FX

by joaotorresmarques
6 stars

This MetaTrader 4 repository hosts a large collection of automated trading systems, including the Aladdin 9 FX expert advisor. This specific tool identifies entries using the Commodity Channel Index and a Moving Average filter. It operates using a grid-based logic combined with martingale lot scaling, controlled by a l

MT4 Collection GridMartingaleIndicator crossover High risk
Updated 7 years ago None stated GitHub repository of Aladdin 9 FX
6 stars

This MetaTrader 4 repository contains a collection of experts and tools focused on technical indicators and machine learning. It features an implementation of Alexander Elder's Triple Screen strategy using Exponential Moving Averages and MACD to filter trends and entries. Additionally, the collection includes a machine

MT4 Collection Trend followingIndicator crossoverAI / machine learning Archived
Updated 8 years ago None stated GitHub repository of Mql Projects Collection

MQL4 Price

by KeisukeIwabuchi
6 stars

MQL4 Price is a development library and utility for MetaTrader 4 that provides functions to convert between different price units including raw price, pips, and points. It serves as a framework for developers to handle decimal digit differences across various currency pairs and symbols. The repository includes a collec

MT4 Framework & template
Updated 8 years ago MIT GitHub repository of MQL4 Price

Price Action Expert

by nasimalsajjad
6 stars

Price Action Expert is a MetaTrader 4 robot that automates trade execution by combining Fibonacci levels with candlestick pattern analysis. The EA identifies the prevailing market trend through Fibonacci ratios and seeks entry signals using pin bars, engulfing patterns, and morning star formations. It features automate

MT4 Trading robot Trend followingSMC / ICT / price action
Updated 8 years ago None stated GitHub repository of Price Action Expert
6 stars

This collection for MetaTrader 4 contains over eighty expert advisors and scripts primarily focused on Bollinger Band breakout strategies. The repository includes numerous variations for fixed lot sizes and specific money management settings. The included logic covers price action relative to moving averages and volati

MT4 Collection BreakoutArbitrageMean reversion

IPatrick Ichimoku

by thachp
6 stars

This MetaTrader 5 expert advisor automates trading based on the Japanese Ichimoku Kinko Kyo system. It identifies market trends and generates buy or sell orders using the Tenkan-sen, Kijun-sen, and Senkou Span components. The robot includes built-in risk controls such as fixed stop loss and take profit levels, and it a

MT5 Trading robot Trend followingIndicator crossover
Updated 11 years ago None stated GitHub repository of IPatrick Ichimoku

General Trading MT5 Collection

by GeneralTradingSarl
5 stars

This repository provides a collection of four Expert Advisors for MetaTrader 5, developed using the MQL5 standard library framework. These robots focus on trend-following and momentum strategies using indicators like Moving Averages, MACD, and the MESA Adaptive Moving Average. Notable features include a Parabolic SAR t

MT5 Collection Trend followingIndicator crossoverMulti-strategy
5 stars

This MetaTrader 5 expert advisor executes trades based on opening range breakout logic. The system identifies a price range over a specific duration and enters positions when the market breaks through these levels. It supports multiple entry methods including market orders on candle close, resting stop orders, or limit

MT5 Trading robot Breakout

HCPropsController

by ivanrdgc
5 stars

HCPropsController is a comprehensive management utility for MetaTrader 5 designed to safeguard prop firm accounts and facilitate local trade replication. It functions in Master, Slave, or standalone Risk Manager modes. The EA enforces various risk controls, such as daily profit and loss limits, maximum trade counts, an

MT5 Trade manager
Updated 12 days ago None stated GitHub repository of HCPropsController
5 stars

This MetaTrader 5 expert advisor provides a comprehensive framework for training and deploying deep learning models natively within the MQL5 environment. It bypasses external dependencies by implementing Multilayer Perceptron, Recurrent Neural Network, and Long Short-Term Memory architectures directly in the platform.

MT5 Framework & template AI / machine learning
Updated 8 weeks ago None stated GitHub repository of MQL5 Neural Network Library
5 stars

This repository contains an extensive library of MetaTrader 5 expert advisors covering various algorithmic trading methodologies. The collection includes strategies based on Bollinger Bands, Relative Strength Index, moving average ribbons, and swing failure patterns. A core focus is the Ighodalo series for gold and CFD

MT5 Collection Trend followingBreakoutMartingale High risk
Updated 8 weeks ago Custom licence GitHub repository of Ighodalo MT5 Strategy Collection
5 stars

This collection of Expert Advisors for MetaTrader 5 provides specific automated strategies for Gold, Bitcoin, EURUSD, and Nasdaq. The repository includes modules for ATR breakouts, Bollinger Band mean reversion, and opening range breakouts. Risk management is handled through a three-stage take profit system, automated

MT5 Collection BreakoutMean reversionScalping

XAUUSD Trend Follow

by maker-tung
5 stars

This MetaTrader 5 expert advisor implements a long-only trend-following strategy designed specifically for gold (XAUUSD) on the hourly timeframe. The system filters entries using a 200-period exponential moving average and an optional ADX momentum filter to avoid low-volatility periods. Trade signals originate from MAC

MT5 Trading robot Trend followingIndicator crossover
Updated 4 months ago Custom licence GitHub repository of XAUUSD Trend Follow

High Frequency Scalper

by Pusparaj99op
5 stars

This MetaTrader 5 expert advisor is designed for scalping gold on the M1 timeframe. It features a versatile strategy engine capable of toggling between breakout and mean-reversion modes based on market conditions. The system manages trades using ATR-based trailing stops, break-even adjustments, and time-based exits. Ri

MT5 Trading robot ScalpingBreakoutMean reversion

Gold Scalper MT5

by autoea-online
5 stars

Gold Scalper is an educational MetaTrader 5 expert advisor designed for scalping XAUUSD on the one-minute timeframe. It is presented as a masterclass tutorial to demonstrate modular coding practices. The system utilizes a 200-period Exponential Moving Average for trend filtering and the Relative Strength Index for entr

MT5 Trading robot ScalpingTrend followingIndicator crossover
Updated 6 months ago MIT GitHub repository of Gold Scalper MT5

CRT TBS Gold Scalper

by Pusparaj99op
5 stars

This MetaTrader 5 expert advisor is designed for gold trading using Candle Range Theory and Time-Based Strategy principles. It identifies market structure through the Accumulation, Manipulation, and Distribution cycle while detecting Fair Value Gaps and Order Blocks. The robot executes trades exclusively during specifi

MT5 Trading robot SMC / ICT / price actionScalpingTrend following

ICT System EA

by 26730023-PhamPhuNguyenHung
5 stars

This MetaTrader 5 expert advisor automates trading strategies based on Inner Circle Trader (ICT) and Smart Money Concepts (SMC). It utilizes a confluence engine to evaluate market structure, PDA zones, fair value gaps, order blocks, and SMT divergence against correlated symbols like the DXY. Designed specifically for p

MT5 Trading robot SMC / ICT / price actionTrend followingMean reversion
Updated 6 months ago None stated GitHub repository of ICT System EA
5 stars

This MetaTrader 5 expert advisor serves as a modular framework for building high-performance trading systems with external connectivity. It utilizes a three-pillar architecture: a bridge interface for REST API communication with external backends, a multi-agent logic system for AI-driven signal generation, and a risk m

MT5 Framework & template AI / machine learning

DBasket EA

by dinethlive
5 stars

DBasket EA is a statistical arbitrage expert advisor for MetaTrader 5 that trades three-pair correlation baskets. It identifies price divergences between related currency pairs using Z-score analysis and enters hedged three-leg positions expecting mean reversion. The system incorporates advanced statistical modules inc

MT5 Trading robot Mean reversionHedging
Updated 8 months ago None stated GitHub repository of DBasket EA
5 stars

This MetaTrader 5 expert advisor is designed for gold trading using a combined martingale and grid approach. It uses a moving average crossover filter to determine initial entry direction. If the market moves against the position, the EA opens additional trades at fixed intervals, increasing the lot size via a multipli

MT5 Trading robot MartingaleGridIndicator crossover High risk
Updated 10 months ago None stated GitHub repository of XAUUSD Martingale Grid
5 stars

Universal Market Hunter is an automated trading robot for MetaTrader 5 that targets Forex, gold, and cryptocurrency markets. It allows users to switch between two main strategies: a Bollinger Band volatility breakout and an engulfing price action pattern using volume confirmation. The system manages risk through ATR-ca

MT5 Trading robot BreakoutScalpingTrend following
Updated 1 year ago Apache-2.0 GitHub repository of Universal Market Hunter

Metatrader License Framework

by MQL-Development
5 stars

This framework provides a standardized method for developers to implement licensing and serial key validation within MetaTrader 4 and MetaTrader 5 Expert Advisors. It utilizes an external validation library to authenticate users by comparing hardware IDs and product codes against encrypted serial keys. The system inclu

MT4MT5 Framework & template
5 stars

AR Tenkansen Breakout EA is a MetaTrader 5 expert advisor that trades breakouts of the Ichimoku Kinko Hyo indicator's Tenkan-sen line. It uses an internal multiplier to adjust standard Ichimoku periods for different market conditions. The robot manages entries and exits based on price interaction with the Tenkan-sen an

MT5 Trading robot Breakout
Updated 1 year ago None stated GitHub repository of AR Tenkansen Breakout EA

TradersPost MT5 Bridge

by TradersPost
5 stars

This MetaTrader 5 expert advisor functions as a bridge to transmit trading signals to the TradersPost platform using webhooks. It facilitates the automation of trade data delivery by constructing JSON payloads that include tickers, order actions, and volume. The repository includes a communication library and an exampl

MT5 Copier & bridge
Updated 1 year ago None stated GitHub repository of TradersPost MT5 Bridge
5 stars

This expert advisor for MetaTrader 5 uses the Moving Average Convergence Divergence (MACD) indicator to execute trades based on signal line crossovers. Operating on the fifteen-minute timeframe, the robot enters buy positions when the MACD main line is above the signal line and sell positions when it is below. It incor

MT5 Trading robot Indicator crossover
Updated 2 years ago None stated GitHub repository of MACD Expert Advisor MQL5

Tony Programa Copy Trading

by TonyPrograma
5 stars

This expert advisor is a cross-platform trade copier designed for MetaTrader 4 and MetaTrader 5. It facilitates local or remote trade replication using network sockets for low-latency communication. The system consists of mother and child components, allowing users to map specific symbol names between different brokers

MT4MT5 Copier & bridge
Updated 2 years ago None stated GitHub repository of Tony Programa Copy Trading
5 stars

This repository is a collection of MetaTrader 5 expert advisors and utility scripts developed for educational purposes. The primary robot, CruzamentoMedia, executes trades based on moving average crossover logic with configurable periods and methods. It includes a graphical user interface panel for manual play and paus

MT5 Collection Indicator crossoverTrend following
Updated 3 years ago None stated GitHub repository of MQL5 Tutorials Collection

Prop Firm Manager

by pepshirley
5 stars

Prop Firm Manager is a risk management utility for MetaTrader 4 designed to help traders comply with prop firm rules and protect account equity. The tool monitors maximum loss per trade and daily drawdown limits using either fixed dollar amounts or percentages. It manages trading sessions by restricting overnight and w

MT4 Risk & protection

MQL Bots Collection

by Bokang777
5 stars

This repository provides a collection of MetaTrader 5 expert advisors featuring traditional technical indicators and advanced machine learning integrations. The library includes strategies based on Moving Average crossovers, MACD, and Bollinger Bands, alongside risk-heavy models like martingale and hedging systems. A c

MT5 Collection Indicator crossoverAI / machine learningMartingale High risk
Updated 3 years ago None stated GitHub repository of MQL Bots Collection
5 stars

This MetaTrader 4 collection contains automated trading systems developed by the MQL UZ team, focusing on technical analysis strategies. The primary expert advisor, Fibonacci Djamoliddin, identifies market entries using Fibonacci retracement levels and chart objects. It includes basic risk management features such as f

MT4 Collection Trend followingMean reversion Archived
Updated 3 years ago Custom licence GitHub repository of MQL Uz Fibonacci Collection

MA Cross with Formula Trailing Stop

by OrchardForexTutorials
5 stars

This expert advisor for MetaTrader 4 and MetaTrader 5 implements a trend-following strategy based on moving average crossovers. It triggers trades when a fast moving average crosses a slow moving average, utilizing new bar detection to filter out market noise. The system manages open positions using fixed stop loss and

MT4MT5 Trading robot Indicator crossover

Nnfx Autotrader

by henriquepfeifer
5 stars

This Expert Advisor for MetaTrader 4 implements the No Nonsense Forex (NNFX) methodology on the daily timeframe. It manages 27 forex pairs by scanning for signals shortly before the daily candle close to optimize spread costs. The EA handles trade entries, partial scaling out, and trailing stops based on Average True R

MT4 Trading robot Trend following
Updated 4 years ago MIT GitHub repository of Nnfx Autotrader

Profit Hunter

by phpkadir
5 stars

Profit Hunter is an expert advisor for MetaTrader 4 designed for forex and cryptocurrency trading. It utilizes a composite signal strategy combining Triple Moving Average, Adaptive RSI, CCI, iTrend, and Fisher indicators. The robot executes trades using a grid system where distances between orders are set manually or c

MT4 Trading robot GridMartingaleHedging High risk
Updated 4 years ago None stated GitHub repository of Profit Hunter

Orchard Bollinger Band Reentry

by OrchardForexTutorials
5 stars

This MetaTrader 4 expert advisor implements a mean-reversion strategy using Bollinger Bands. It monitors for price action that closes outside the bands and subsequently returns within them. The robot places pending buy stop or sell stop orders at the high or low of the signal candle to capture the retracement. It featu

MT4 Trading robot Mean reversion
5 stars

This repository contains a collection of MetaTrader 5 scripts and Expert Advisors focusing on various technical indicators. The primary EA provided uses Relative Strength Index (RSI) levels to determine long and short entry conditions, including specific start and end thresholds for signal filtering. Other files in the

MT5 Collection Indicator crossoverMean reversionMulti-strategy

This MetaTrader 5 expert advisor is an example implementation designed to trade moving average crossovers on non-standard timeframes, specifically seconds-based charts. It executes trades based on price crossing a moving average or two moving averages crossing each other. The EA includes risk management features such a

MT5 Trading robot Indicator crossoverTrend following
5 stars

This MetaTrader 4 expert advisor implements a trend-following strategy based on three exponential moving averages and the Stochastic oscillator. It identifies trade opportunities when two shorter-period EMAs sequentially cross a longer-period EMA. Positions are managed with fixed stop loss and take profit levels, with

MT4 Trading robot Indicator crossoverTrend following
Updated 5 years ago None stated GitHub repository of Triple EMA Stochastic EA

Compound Effect EA

by forexist
5 stars

This MetaTrader 5 collection provides several automated trading scripts, including a core robot that executes trades based on random entries or basic indicators. It manages positions using percentage-based stop loss and take profit targets rather than fixed pips. The expert advisors include risk controls like equity al

MT5 Collection HedgingMulti-strategy
Updated 5 years ago None stated GitHub repository of Compound Effect EA

NS Financas 4 EMA

by guilhermeneves
5 stars

NS Financas 4 EMA is a MetaTrader 5 expert advisor that automates trading using a four-period exponential moving average system. The robot enters trades based on the alignment of three short-term EMAs while using a 200-period EMA as a directional trend filter to ensure positions align with the long-term market bias. It

MT5 Trading robot Indicator crossoverTrend following

Clarissa EA

by Lucas170
5 stars

Clarissa is a MetaTrader 4 expert advisor that automates a momentum-based strategy utilizing price action and volatility indicators. It identifies entry opportunities by comparing Monday's price change to the 14-period Average True Range (ATR) on a daily timeframe. For trade management, the EA features volatility-based

MT4 Trading robot Breakout
Updated 6 years ago None stated GitHub repository of Clarissa EA

Learn how to use expert advisors

Free, plain-English guides: find an EA, install it, set it up, test it and run it safely.

  1. 1Types of EAsRobots, trade managers, copiers and risk tools, and what each is for.
  2. 2Using this librarySearch, filters, badges and what our checks do and do not mean.
  3. 3Install an EA in MT4 or MT5Data folder, compile, attach to a chart and switch on algo trading.
  4. 4EA settings explainedLot size, stop-loss, magic number, max spread and trading hours.
  5. 5Backtest in the Strategy TesterModelling, spread, the report and the over-fitting trap.
  6. 6Choose a safe EAA checklist for the code, the logic, the evidence and the fit.
  7. 7Run an EA 24/7VPS, forward testing on demo and going live small.
  8. 8Open-source EAs on GitHubLicences, compiling in MetaEditor and editing inputs safely.
  9. 9Forex robots: an honest guideWhat automation can and cannot do for you.

About the EA Library

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.

Compare brokers