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,141 EAs match Clear filters

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

Repeat EA

by KeisukeIwabuchi
9 stars

This MetaTrader 4 expert advisor executes trades repeatedly at a user-defined price level. The robot monitors price action and opens a buy or sell position when the market reaches the specified entry price. Once a trade is closed via the designated take profit target, the EA resets and prepares to re-enter the market a

MT4 Trading robot
Updated 8 years ago MIT GitHub repository of Repeat EA

Suvorov MQL4 Expert Collection

by suvorovkonstantin
9 stars

This repository contains a collection of MetaTrader 4 expert advisors focusing on technical analysis and pattern recognition. The included tools range from robots utilizing Volume Spread Analysis (VSA) and fractal-based trend detection to indicators like NeuroMACD and ACD patterns. The primary EA uses ZigZag and fracta

MT4 Collection Trend followingSMC / ICT / price actionIndicator crossover

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

This repository is a comprehensive collection of over 500 MetaTrader 4 expert advisors, including various third-party robots and specialized trading tools. The library contains a wide range of strategies such as trend following, scalping, and grid trading. Individual files like the Ultimate Trader EA utilize historical

MT4 Collection Trend followingGridMartingale High risk
8 stars

JT Prop Firm Trade Manager is a risk management utility for MetaTrader 4 designed to protect accounts from violating equity and drawdown rules. It monitors daily loss limits and maximum drawdown, allowing users to configure thresholds in either currency or percentage. The tool features time-based filters to restrict ov

MT4 Risk & protection
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

One-Click Trade Pro

by EarnForex
8 stars

One-Click Trade Pro is a position management and execution panel for MetaTrader 4. It provides a robust graphical interface to open market and pending orders with one click. Users can execute trades via standard buttons, chart-based lines, or opposite order distance settings. The tool calculates optimal lot sizes based

MT4 Utility
Updated 3 years ago Apache-2.0 GitHub repository of One-Click Trade Pro

Telegram MT4 Copier

by pepshirley
8 stars

This MetaTrader 4 expert advisor serves as a bridge to automate trade execution based on messages from Telegram signal channels. It parses incoming text for specific commands such as market orders, pending orders, and order modifications. The tool handles trade management tasks including breakeven adjustments, stop los

MT4 Copier & bridge

Bollinger Band JB

by jblanked
8 stars

This repository contains two MetaTrader 4 expert advisors that automate trading based on Bollinger Bands and the Relative Strength Index. One version uses only Bollinger Bands, while the second combines them with RSI to filter entries. The logic enters positions when price crosses specific outer bands and exits based o

MT4 Collection Mean reversion
Updated 3 years ago None stated GitHub repository of Bollinger Band JB
8 stars

This collection for MetaTrader 4 offers a variety of specialized utilities and signal indicators to streamline trading workflows. It features a Renko generator for creating custom offline price charts with fixed or ATR-based box sizes. Additional components include an Ichimoku-based signal generator, a tool for identif

MT4 Collection Trend followingIndicator crossover
Updated 4 years ago None stated GitHub repository of Consultor Especialista MT4

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

Event Trader

by fhlee74
8 stars

Event Trader is a news-trading utility for MetaTrader 4 designed to automate straddle entries around scheduled economic releases. The EA places buy-stop and sell-stop orders at a user-defined GMT time and distance from the current market price. It incorporates one-cancels-the-other logic to delete the opposing pending

MT4 News trading NewsBreakout
Updated 6 years ago GPL-3.0 GitHub repository of Event Trader

MQL4 Trade Manager

by KeisukeIwabuchi
8 stars

This MetaTrader 4 utility provides a framework for developers to implement event-driven trade monitoring. It replicates the native MQL5 OnTrade function within the MQL4 environment, which lacks a built-in event for position changes. By monitoring the order pool during each price tick, the code detects when trades are o

MT4 Framework & template

MQL4 Slack

by KeisukeIwabuchi
8 stars

This MetaTrader 4 module facilitates communication between the trading platform and Slack channels. It operates as an integration tool, allowing users to programmatically send text notifications and updates directly from their Expert Advisors to a specified Slack workspace. The utility requires a Slack API key and supp

MT4 Copier & bridge
Updated 8 years ago MIT GitHub repository of MQL4 Slack

Mql4 ZeroMQ Bridge

by reuniware
8 stars

This expert advisor establishes a communication bridge between MetaTrader 4 and external applications using the ZeroMQ messaging protocol. It functions as a technical connector that enables data exchange and command execution via PUB and SUB socket patterns. The bridge supports TCP transport and requires the installati

MT4 Copier & bridge
Updated 8 years ago None stated GitHub repository of Mql4 ZeroMQ Bridge

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

AI Gen XII

by KanekiCraynet
7 stars

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

MT4 Trading robot AI / machine learning
Updated 7 months ago None stated GitHub repository of AI Gen XII
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 4 expert advisor provides a robust framework for developing automated trading strategies. It includes pre-built modules for trend detection using ADX and Moving Averages, alongside pullback entry logic. The template emphasizes risk management, featuring percentage-based lot sizing and adaptive volatilit

MT4 Framework & template Trend followingMean reversionMartingale High risk
Updated 5 years ago None stated GitHub repository of Falcon Trading Bot Template

Learn MQL4 Collection

by rahuldhangar
7 stars

This repository provides a collection of educational resources and templates for developing MQL4 applications on MetaTrader 4. It includes a mean-reversion expert advisor based on Bollinger Bands, which enters trades when price breaches specific deviation levels. The strategy incorporates automated risk management by c

MT4 Collection Mean reversion
Updated 5 years ago None stated GitHub repository of Learn MQL4 Collection
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

iCustom Mode Shift Detector

by inceabdullah
7 stars

This MetaTrader 4 utility acts as a diagnostic tool for developers attempting to integrate external indicators into automated strategies. It systematically monitors the output buffers of a specified custom indicator by iterating through various modes and shift values. The code detects changes in data and identifies spe

MT4 Utility
Updated 7 years ago None stated GitHub repository of iCustom Mode Shift Detector

MT4 EA Web Interface

by moataz-metwally
7 stars

This MetaTrader 4 expert advisor acts as a communication bridge between the trading platform and an external web-based control panel. It operates as an agent that polls a remote Node.js server at regular intervals using HTTP requests to fetch commands or status updates in JSON format. The EA is intended as a framework

MT4 Copier & bridge
Updated 8 years ago None stated GitHub repository of MT4 EA Web Interface

Desiree EA

by Lucas170
7 stars

Desiree is an automated trading robot for MetaTrader 4 that utilizes Donchian Channel breakouts for trade execution. The system enters positions based on a specific lookback period and exits using a separate exit period. A notable logic constraint prevents the EA from entering a new trade if the preceding trade resulte

MT4 Trading robot BreakoutTrend following
Updated 9 years ago None stated GitHub repository of Desiree EA
7 stars

This MetaTrader 4 expert advisor implements a flexible strategy based on the directional consensus of multiple technical indicators. It allows users to combine Moving Averages, Stochastic Oscillators, THV3 T3, Babon Slope, and AMA Optimized modules. A trade is initiated only when all selected indicators align in the sa

MT4 Trading robot Trend followingMulti-strategyIndicator crossover

Orchard Forex Trailing Stop Manager

by OrchardForexTutorials
6 stars

This MetaTrader 4 expert advisor serves as a trade management tool that automates the trailing stop-loss process for existing positions. It does not open any new trades itself; rather, it monitors current market orders placed manually or by other robots. The utility uses a reverse loop to scan active orders, filtering

MT4 Trade manager

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

Forex News Killer

by Ahmed-GoCode
6 stars

Forex News Killer is a risk management utility for MetaTrader 4 designed to protect accounts from volatility during high-impact economic news. The tool monitors real-time calendars and automatically intervenes based on user-defined time buffers before and after events. It can close open positions, remove pending orders

MT4 News trading News
Updated 10 months ago None stated GitHub repository of Forex News Killer
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

DMRI Master Extractor

by jjeg1979
6 stars

DMRI Master Extractor is a data harvesting tool for MetaTrader 4 designed to facilitate machine learning model training. It functions as a feature extractor, exporting prices and technical indicator values into CSV format for external analysis. The system supports 33 standard indicators, including RSI, MACD, and Bollin

MT4 Utility AI / machine learning
Updated 1 year ago None stated GitHub repository of DMRI Master Extractor

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

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