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.

682 EAs match Clear filters

MT5 Trade Panel

by maxime-fintech
9 stars

This MetaTrader 5 expert advisor acts as a manual trading assistant and management tool rather than an automated strategy. It provides a graphical interface for executing market, limit, and stop orders with integrated risk management. The panel automatically calculates lot sizes based on account percentage or fixed mon

MT5 Utility
Updated 8 months ago MIT GitHub repository of MT5 Trade Panel

Zeus

by kecoma1
9 stars

Zeus is an expert advisor for MetaTrader 5 that employs a neural network to forecast future price targets. It analyzes historical price action by identifying relative highs and lows to generate inputs for its prediction model. The EA executes market orders when the model predicts a price move, automatically setting sto

MT5 Trading robot AI / machine learning
Updated 2 years ago MIT GitHub repository of Zeus

Robot MA RSI

by DouglasVolcato
9 stars

Robot MA RSI is an automated trading expert advisor for MetaTrader 5 that employs a combination of exponential moving average crossovers and the Relative Strength Index. Users can choose between three entry strategies: moving average signals, RSI levels, or a combined approach requiring both conditions. The system mana

MT5 Trading robot Indicator crossoverMean reversion
Updated 2 years ago None stated GitHub repository of Robot MA RSI

Neural Network Tester Improved

by PhiAlphaInvestments
9 stars

Neural Network Tester Improved is a MetaTrader 5 expert advisor designed as a framework for integrating machine learning models into automated trading. The repository includes a main tester file that references an external neural network library. Currently, the source code provides a basic structure for initialization

MT5 Framework & template AI / machine learning

Aurum79

by oknoorap
9 stars

Aurum79 is a connectivity bridge that links MetaTrader 5 to external JavaScript environments via a local socket server. The expert advisor transmits live price ticks and historical candle data to a Node.js client, which can then process the information using external libraries such as TensorFlow.js. It receives and exe

MT5 Copier & bridge AI / machine learning
Updated 3 years ago MIT GitHub repository of Aurum79

MA Cross Scale In

by OrchardForexTutorials
9 stars

This educational expert advisor for MetaTrader 4 and 5 demonstrates a logic for scaling into winning positions. It utilizes a simple moving average crossover strategy for initial trade entries. The primary feature is a function that detects when a current position has reached a specific profit target to trigger additio

MT4MT5 Trading robot Indicator crossover
Updated 4 years ago GPL-3.0 GitHub repository of MA Cross Scale In

Tick Collector MySQL

by Lxbinary
9 stars

This MetaTrader 5 tool records real-time tick data directly into an external MySQL database. It utilizes the libmysql library to establish a direct connection, requiring DLL execution to be enabled within the terminal. The expert can monitor a specific list of symbols provided in the settings or automatically collect d

MT5 Utility
Updated 7 years ago GPL-3.0 GitHub repository of Tick Collector MySQL

MetaTrader AI

by jblanked
8 stars

This AI-driven trading assistant integrates Large Language Models like OpenAI and DeepSeek into the MetaTrader 5 platform. It functions as an interactive chat-based assistant and robot, capable of opening, closing, and modifying positions based on natural language prompts. The system can fetch real-time market data, ca

MT5 Trading robot AI / machine learning
Updated 11 days ago GPL-3.0 GitHub repository of MetaTrader AI
8 stars

This collection of MetaTrader 5 expert advisors serves as an educational resource for MQL5 programming. It contains multiple example robots utilizing technical indicators such as Moving Averages, Parabolic SAR, CCI, and Stochastic oscillators. The provided scripts demonstrate fundamental trading automation features inc

MT5 Collection Indicator crossoverTrend followingMean reversion

AI ML Machine EA

by joel-wa
8 stars

This MetaTrader 5 expert advisor integrates machine learning into forex trading by establishing a socket connection between the terminal and a local server. The system consists of a data scraper to collect market history and a trading agent that executes orders based on external model predictions. It handles entries us

MT5 Trading robot AI / machine learning
Updated 2 years ago None stated GitHub repository of AI ML Machine EA

This MetaTrader 5 collection features several versions of the classic Moving Average expert advisor, modified specifically for trading on custom symbols. It includes helper functions to ensure data readiness for synthetic instruments or imported data series. The included strategies execute trades based on moving averag

MT5 Collection Indicator crossoverTrend following

Aninditha EA

by heviooot
8 stars

Aninditha EA is a modular framework for MetaTrader 5 focused on automated forex trading, market analysis, and trade management. Developed for the North Sulawesi community, the codebase organizes its functionality through external include files for analysis, execution, and management logic. The provided repository is in

MT5 Framework & template
Updated 6 years ago None stated GitHub repository of Aninditha EA

MT5 Quant Lib

by xMattC
7 stars

MT5 Quant Lib is an MQL5 development framework and an included trend-following Expert Advisor for MetaTrader 5. It provides a modular infrastructure for trade execution, multi-symbol management, and risk control. The included strategy enters trades based on RSI triggers and CCI trend confirmation, utilizing trendline a

MT5 Framework & template Trend following
Updated 4 months ago None stated GitHub repository of MT5 Quant Lib
7 stars

Amin Multi Strategy Bot is an automated trading system for MetaTrader 5 designed for the forex market. It uses a multi-timeframe approach that integrates technical analysis, candlestick pattern recognition, and price level detection. The expert advisor is constructed with modular components, including a signal manager,

MT5 Trading robot Multi-strategy
Updated 1 year ago None stated GitHub repository of Amin Multi Strategy Bot
7 stars

This MetaTrader 5 expert advisor implements an automated trend-following system based on the combination of Average True Range and Moving Average indicators. Built using the modular EA31337 framework, it identifies market direction and volatility to determine trade entries. The robot supports concurrent analysis across

MT5 Trading robot Trend followingIndicator crossover
Updated 2 years ago None stated GitHub repository of ATR MA Trend Strategy

News Stopper MT5

by faraz-hk
7 stars

This news management utility for MetaTrader 5 protects accounts during high-impact economic events by monitoring the ForexFactory calendar. It automatically disables algorithmic trading and manages open positions according to pre-defined schedules before and after news releases. The tool can close active trades, delete

MT5 News trading
Updated 2 years ago GPL-3.0 GitHub repository of News Stopper MT5

RSI MA Cross Custom

by OrchardForexTutorials
7 stars

This expert advisor for MetaTrader 5 combines moving average crossovers with Relative Strength Index (RSI) levels to identify entry points. It initiates buy orders when the RSI indicates oversold conditions and a fast exponential moving average crosses above a slow exponential moving average. Conversely, it opens sell

MT5 Trading robot Indicator crossoverMean reversion
Updated 3 years ago GPL-3.0 GitHub repository of RSI MA Cross Custom
7 stars

This MetaTrader 5 expert advisor provides a framework for testing and executing indicator-based strategies, specifically those aligned with the No Nonsense Forex methodology. It allows users to define a baseline and a secondary confirmation indicator through external inputs. Trade management includes automated ATR-base

MT5 Trading robot Trend followingBreakout
Updated 5 years ago None stated GitHub repository of Backtestd Expert
7 stars

This MetaTrader 5 repository contains a collection of expert advisors based on moving average crossover logic. The primary systems utilize fast and slow moving average indicators to identify trend shifts and execute automated trades. Risk management is handled through user-defined stop loss and take profit levels, alon

MT5 Collection Indicator crossoverTrend following

ZeroMQ MT5 Bridge

by tobias-klingel
7 stars

This MetaTrader 5 repository provides a collection of scripts for external data communication and automated trading. It features a ZeroMQ-based bridge that utilizes TCP sockets to connect the trading platform with external environments. The system allows users to stream real-time tick data, OHLC bar rates, and custom k

MT5 Copier & bridge Indicator crossover
Updated 7 years ago None stated GitHub repository of ZeroMQ MT5 Bridge

MQL5 JSON API

by luciotato
7 stars

This MetaTrader 5 expert advisor functions as a communication bridge between the trading platform and external applications. Developed to interface with the Backtrader Python framework, it utilizes ZeroMQ sockets and JSON-formatted messaging to facilitate cross-language trading. The tool enables remote command executio

MT5 Copier & bridge
Updated 7 years ago GPL-3.0 GitHub repository of MQL5 JSON API

Alboogy Dev Projects

by alboogycOdR
6 stars

This repository is a large collection of over 2,400 MetaTrader 4 and 5 files, including expert advisors, utilities, and indicators. It includes a trade copier client that synchronizes positions via socket libraries. The systems manage trades through sophisticated risk controls like equity-based trailing stops, cycle-pe

MT4MT5 Collection Multi-strategyMartingaleGrid High risk
Updated 6 months ago None stated GitHub repository of Alboogy Dev Projects

MarketSync EA

by sajidmahamud835
6 stars

MarketSync EA is an experimental MetaTrader 5 expert advisor designed to bridge algorithmic trading with external artificial intelligence. It functions by streaming real-time market and account data from the MT5 terminal to a local Node.js backend via HTTP requests. The external server processes this information using

MT5 Trading robot AI / machine learningGridTrend following High risk
Updated 8 months ago MIT GitHub repository of MarketSync EA
6 stars

This MetaTrader 5 expert advisor streams real-time price updates for selected symbols to an external server via WebSockets. It monitors a predefined list of assets from the Market Watch window and broadcasts ticker data using JSON serialization. The tool implements high-frequency monitoring through a millisecond timer

MT5 Copier & bridge
Updated 1 year ago None stated GitHub repository of Ticker Publisher WebSocket
6 stars

This collection provides MetaTrader 5 Expert Advisors sourced from MQL5 programming documentation. The primary tool, Unity Martingale, implements a multi-currency reversal strategy using breakout or pullback signals. It employs a martingale lot-scaling system that increases positions after losses based on a user-define

MT5 Collection MartingaleGridBreakout High risk

Complex Market Predictor

by scuffff2828
6 stars

This MetaTrader 5 expert advisor uses complex mathematical modeling to predict future price movements through a combination of sinusoidal analysis, Fast Fourier Transform, and Monte Carlo simulations. It evaluates cyclical trends, fractal structures, and non-linear volatility via sigmoidal functions to generate buy and

MT5 Trading robot AI / machine learning

Strategy SuperTrend

by EA31337
6 stars

This MetaTrader 5 expert advisor implements a trend-following strategy based on the SuperTrend indicator. Built using the EA31337 framework, it supports multi-timeframe analysis through a configurable bitmask parameter. The EA enters trades based on indicator signal reversals and manages operations across various chart

MT5 Trading robot Trend following
Updated 2 years ago None stated GitHub repository of Strategy SuperTrend
6 stars

This MetaTrader 5 expert advisor provides a versatile framework for trading based on Heiken Ashi price action. It allows users to toggle between numerous built-in strategies, including trend following, moving average crossovers, Fibonacci levels, and various oscillators like RSI and MACD. The system includes an option

MT5 Trading robot Trend followingIndicator crossoverMean reversion
Updated 2 years ago None stated GitHub repository of Heiken Ashi Complete Strats

Grid Trading MT5

by algocode2022
6 stars

This grid trading robot for MetaTrader 5 automates the placement of multiple limit orders within a user-defined price range. It populates the market with a configurable number of buy and sell limit orders between specified high and low boundaries. The expert advisor includes risk management features such as individual

MT5 Trading robot GridHedging High risk
Updated 2 years ago GPL-3.0 GitHub repository of Grid Trading MT5

MQTT MQL5 Library

by gmag11
6 stars

This library and example Expert Advisor provide an MQTT client interface for MetaTrader 5. It enables the platform to communicate with external MQTT brokers using version 3.1 or 3.1.1 protocols. The system supports both encrypted TLS and standard TCP/IP connections. Users can publish messages to specific topics and sub

MT5 Copier & bridge Martingale High risk
6 stars

This MetaTrader 5 expert advisor provides a basic implementation of the Martingale strategy for forex markets. It initiates trades using a base lot size and applies a multiplier after losses to recoup previous deficits, utilizing fixed stop loss and take profit levels for exit management. The logic is extremely minimal

MT5 Trading robot Martingale High risk

Trading Expert Advisor

by hernandesmacedo
6 stars

This MetaTrader 5 expert advisor automates trading decisions by combining moving average crossovers with volume and momentum filters. It enters buy positions when a fast moving average crosses above a slow one, provided volume is increasing and the Relative Strength Index indicates the market is not overbought. For ris

MT5 Trading robot Indicator crossoverTrend following
Updated 4 years ago None stated GitHub repository of Trading Expert Advisor

Orchard MA Cross Risk Sizer

by OrchardForexTutorials
6 stars

This collection for MetaTrader 4 and 5 provides educational examples of calculating lot sizes or stop loss levels based on account equity risk. It uses a moving average crossover strategy to enter trades, triggering orders when short-term and long-term averages intersect. The expert advisor includes logic to calculate

MT4MT5 Collection Indicator crossover

Orchard MA Cross Delay

by OrchardForexTutorials
6 stars

This expert advisor for MetaTrader 4 and 5 serves as a tutorial for implementing cooling-off periods between trade executions. It triggers entries based on a standard moving average crossover using configurable fast and slow periods. Users can restrict trade frequency by setting a minimum number of bars or minutes that

MT4MT5 Trading robot Indicator crossover

Jaume Gelabert EAs

by JaumeGelabert
6 stars

This collection for MetaTrader 5 provides several expert advisors based on classic technical indicator strategies. The primary algorithms utilize Triple and Double Moving Average crossovers filtered by ADX values to confirm trend strength before entry. A secondary strategy uses RSI-filtered engulfing candle patterns. R

MT5 Collection Indicator crossoverTrend following
Updated 4 years ago None stated GitHub repository of Jaume Gelabert EAs

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

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

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 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

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

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

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