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.

177 EAs match Clear filters

EA31337

by EA31337
1.3k stars

EA31337 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat

MT5 Trading robot Multi-strategyNewsTrend following
Updated 5 months ago GPL-3.0 GitHub repository of EA31337
464 stars

This repository features a collection of trading tools for MetaTrader 5 and 4, headlined by a comprehensive Trade Manager EA. This manager enables manual execution via keyboard shortcuts and provides automated risk controls, including ATR-based break-even settings and trailing stops. The collection also offers strategy

MT4MT5 Collection BreakoutHedging

EA31337 Libre

by EA31337
252 stars

EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario

MT5 Trading robot Multi-strategyTrend followingMean reversion
Updated 1 year ago GPL-3.0 GitHub repository of EA31337 Libre

Darwinex DWX Connect

by darwinex
232 stars

DWX Connect is an open-source bridge that links external trading strategies written in Python, C#, or Java to MetaTrader 4 and 5. It functions as a server EA that facilitates communication via file-based messaging, allowing users to execute trades and subscribe to market data without coding in MQL. The EA manages trade

MT4MT5 Copier & bridge
Updated 1 year ago BSD-3-Clause GitHub repository of Darwinex DWX Connect

ICT Library MQ5

by xxvw
205 stars

This MetaTrader 5 library and expert advisor automates Smart Money Concepts (SMC) and Inner Circle Trader (ICT) methodologies. It identifies market structure shifts, breaks of structure, order blocks, and liquidity zones. The system features a confluence-based entry mechanism that evaluates signals against kill zones,

MT5 Framework & template SMC / ICT / price action
140 stars

This repository provides a collection of Expert Advisors for MetaTrader 5 and Python trading scripts developed for an educational YouTube series. It features various technical indicator-based strategies, including MACD, Relative Strength Index, Stochastic, and Bollinger Bands. The included MQL5 files implement multi-ti

MT5 Collection Indicator crossoverMean reversionTrend following
Updated 3 years ago None stated GitHub repository of Kecoma Trading Collection

Roffild Library

by Roffild
120 stars

Roffild Library is an extensive framework and collection of expert advisors for MetaTrader 5 that bridges MQL5 with modern data science tools. It provides functional implementations for machine learning models, specifically Multilayer Perceptron neural networks and Random Forests via the AlgLib library. The project fac

MT5 Framework & template AI / machine learning
Updated 6 years ago Apache-2.0 GitHub repository of Roffild Library
101 stars

This collection for MetaTrader 5 provides a library and several expert advisors optimized for Renko chart trading. It includes a primary automated robot that executes trades based on Renko bar signals, as well as specific examples for moving average and price crossovers. The included tools offer robust trade management

MT5 Collection Trend followingIndicator crossoverBreakout

Trade Split Manager

by codedpro
79 stars

This MetaTrader 5 expert advisor serves as an AI-friendly bridge, connecting external platforms to the terminal via REST API and TCP sockets. It specializes in intelligent order splitting, where a single trade signal is divided into up to ten individual positions with staggered take-profit levels and custom volume dist

MT5 Trading robot Multi-strategy
Updated 2 months ago Custom licence GitHub repository of Trade Split Manager
73 stars

This collection of MetaTrader 5 expert advisors provides a series of educational templates and multi-symbol trading robots. Developed as a companion to coding tutorials, the repository includes frameworks for building strategies using entry triggers and multiple filters. The included programs feature automated risk man

MT5 Collection Indicator crossoverTrend followingMulti-strategy

Hitback ZMQ Bridge

by EricSchles
59 stars

This expert advisor functions as a data bridge for streaming real-time market information from MetaTrader 4 and 5 to external applications. It utilizes the ZeroMQ library to transmit price ticks and order book updates to a remote server. The tool is intended for developers building quantitative trading platforms or dat

MT4MT5 Copier & bridge
Updated 6 years ago Apache-2.0 GitHub repository of Hitback ZMQ Bridge

News Trader

by EarnForex
55 stars

News Trader is a semi-automatic expert advisor for MetaTrader 4 and MetaTrader 5 designed to execute trades around high-volatility economic announcements. Users manually input the scheduled news release time, and the robot opens positions a specified number of seconds before the event. It supports single-direction trad

MT4MT5 News trading NewsHedging
Updated 1 year ago Apache-2.0 GitHub repository of News Trader

Telegram Trading Bot

by fabioo29
41 stars

This MetaTrader 5 expert advisor functions as a remote management bridge, enabling users to execute and oversee trades through Telegram messages. It supports market and limit orders with user-defined stop losses and handles trade modifications such as closing positions or adjusting stop levels remotely. The tool featur

MT5 Copier & bridge

This repository provides a diverse collection of MetaTrader 5 expert advisors focusing on technical indicator automation. The core component aggregates signals from a wide array of standard tools, including trend-following moving averages, oscillators like RSI and MACD, and Bill Williams indicators. It includes specifi

MT5 Collection Trend followingIndicator crossoverMulti-strategy

Telegram Signal Trader

by nguemechieu
25 stars

This expert advisor bridges MetaTrader 4 and MetaTrader 5 with Telegram to facilitate signal-based trading and remote account management. It can execute trades from external signals or generate its own alerts using built-in indicators such as Ichimoku, Bollinger Bands, and Momentum. The software includes the ability to

MT4MT5 Copier & bridge NewsMulti-strategy
Updated 2 years ago Apache-2.0 GitHub repository of Telegram Signal Trader
24 stars

Metatrader WebSocket Tickers is a data bridge for MetaTrader 5 that streams real-time ticker updates to external servers. It allows developers to export live market data for use in third-party applications or custom analysis tools via the WebSocket protocol. The utility monitors a specific list of symbols and employs a

MT5 Copier & bridge

Amazing

by EarnForex
24 stars

Amazing is a news trading expert advisor for MetaTrader 4 and 5 designed to capture volatility during scheduled economic announcements. It operates as a semi-automatic tool, requiring the user to manually input the specific date and time of an upcoming news event. The EA places two symmetrical pending orders at a defin

MT4MT5 News trading News
Updated 3 years ago Apache-2.0 GitHub repository of Amazing
24 stars

This repository contains a diverse collection of MetaTrader 5 Expert Advisors and tools developed for instructional purposes. The included robots cover various trading methodologies, such as moving average crossovers, RSI divergences, gap reversals, and candlestick patterns like the Red-White-Red strategy. The EAs typi

MT5 Collection Indicator crossoverMean reversionMulti-strategy
Updated 4 years ago None stated GitHub repository of Victor Algo MQL5 Collection

Market Analysis ML Bridge

by Financial-ML
24 stars

This MetaTrader 4 expert advisor serves as a ZeroMQ server to bridge the trading terminal with external Python environments for machine learning analysis. It facilitates real-time data export, including price action and nineteen technical indicators like RSI and MACD, to train predictive models. The EA receives trade e

MT4 Copier & bridge AI / machine learning
Updated 7 years ago None stated GitHub repository of Market Analysis ML Bridge

Basic Bollinger Bands EA

by terencebeauj
21 stars

This MetaTrader 5 expert advisor utilizes the Bollinger Bands and Parabolic SAR indicators to execute trades based on market volatility. It functions as an entry-level algorithmic trading template, allowing users to modify strategy logic or optimize parameters using the MT5 Strategy Tester. The bot manages risk through

MT5 Trading robot Mean reversionTrend following
21 stars

This MetaTrader 5 repository provides a suite of utility scripts designed for data extraction and system monitoring. The primary tool automates the exportation of historical price data, including OHLC values, tick volumes, and spreads, into CSV files for external analysis. It supports a predefined list of forex pairs,

MT5 Collection
Updated 6 years ago None stated GitHub repository of MQL5 Data Export Collection
20 stars

This MetaTrader 4 expert advisor implements a sophisticated trading framework based on a 2023 soft computing research paper. It utilizes a Bidirectional LSTM with an Attention Mechanism and Chaotic Neuro-Oscillators to predict future High, Low, Close, and Open prices. To address the limitations of traditional lagging i

MT4 Trading robot AI / machine learning

Metatrader 4 MCP

by 8nite
20 stars

This MetaTrader 4 expert advisor acts as a bridge for the Model Context Protocol (MCP), enabling remote interaction between the trading platform and external environments such as Claude Code. It provides real-time account data, market prices, and order management capabilities via an HTTP bridge and file-based reporting

MT4 Collection
Updated 1 year ago None stated GitHub repository of Metatrader 4 MCP

Makets GA

by nopaixx
20 stars

Makets GA is a neural network trading system for MetaTrader 5 that utilizes genetic algorithms to optimize weights for multi-layer perceptrons. Instead of standard price prediction, the EA evolves trading strategies by processing price data across several major currency pairs simultaneously. It implements evolutionary

MT5 Trading robot AI / machine learningMulti-strategy
Updated 8 years ago None stated GitHub repository of Makets GA
19 stars

This repository contains a collection of MetaTrader 4 expert advisors and utilities primarily focused on breakout and trend-following strategies. The featured EA, ttnFullTurtle, implements the classic Turtle Trading rules using dual breakout systems, ATR-based position sizing, and pyramiding logic. It includes risk con

MT4 Collection BreakoutTrend followingMean reversion

MT5 Agent Toolkit

by smizxe
18 stars

MT5 Agent Toolkit is a developer framework and collection of expert advisors designed to automate the creation and testing of MQL5 strategies using AI agents. It provides headless PowerShell scripts to bypass common MetaTrader 5 command-line failures during compilation and backtesting. The included example robots, such

MT5 Framework & template Mean reversionIndicator crossover
Updated 3 weeks ago Custom licence GitHub repository of MT5 Agent Toolkit
18 stars

This expert advisor for MetaTrader 5 utilizes a genetic algorithm and neural network to make autonomous trading decisions without relying on traditional technical indicators. It implements a self-learning mechanism that evaluates a population of species to determine entry, exit, and lot sizing across multiple currency

MT5 Trading robot AI / machine learningHedging

Heiken Ashi Naive

by EarnForex
17 stars

Heiken Ashi Naive is a trading robot for MetaTrader 4 and 5 that executes trades based on Heiken Ashi candle characteristics, including body length and wick presence. It evaluates candle sequences to enter positions and can be configured to either follow the trend or operate in an inverted mode for mean-reversion. Risk

MT4MT5 Trading robot Trend followingMean reversion
Updated 1 year ago Apache-2.0 GitHub repository of Heiken Ashi Naive

PSAR Trailing Stop

by EarnForex
16 stars

PSAR Trailing Stop is a management utility for MetaTrader 4 and 5 that automates the adjustment of stop-loss levels for open positions. Instead of manual movement, it follows the Parabolic SAR indicator values to lock in profits or minimize losses as a trend progresses. The software includes filtering options to target

MT4MT5 Trade manager
Updated 2 years ago Apache-2.0 GitHub repository of PSAR Trailing Stop

De Pip Sniper

by Oluwasakin-Tobi
16 stars

This expert advisor for MetaTrader 4 automates trading using five Exponential Moving Average periods to determine market direction. The developer notes an integration between C# and MQL4 for its operation. It manages trades with fixed stop loss and take profit parameters, ensuring each position has defined risk boundar

MT4 Trading robot Indicator crossoverTrend following
Updated 6 years ago None stated GitHub repository of De Pip Sniper

Adjustable MA

by EarnForex
15 stars

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

MT4MT5 Trading robot Indicator crossover
Updated 5 months ago Apache-2.0 GitHub repository of Adjustable MA

MA Cross EA

by eugenesia
14 stars

This MetaTrader 4 expert advisor implements a classic moving average crossover strategy to automate trade entries. The robot monitors two user-defined simple moving averages of different periods. It enters a trade when the faster moving average crosses above or below the slower moving average on a new bar. Risk managem

MT4 Trading robot Indicator crossoverTrend following
Updated 10 years ago None stated GitHub repository of MA Cross EA

CARA Correlation EA

by jblanked
13 stars

This MetaTrader 4 expert advisor facilitates automated trading based on asset correlations across various markets. It identifies opportunities within a predefined list of symbols, including forex pairs, cryptocurrencies, gold, and equity indices. The EA manages entries based on the relationship between these instrument

MT4 Trading robot ArbitrageMulti-strategy
Updated 2 years ago None stated GitHub repository of CARA Correlation EA
13 stars

PATI Trading Assistant is a MetaTrader 4 utility designed to facilitate trade management and bookkeeping based on the PATI trading methodology. It automates the placement of stop losses and take profits, specifically managing range breakout and pullback setups. The EA includes risk controls such as the Two Minute Rule

MT4 Trade manager BreakoutTrend following
13 stars

This repository contains a collection of over sixty experimental expert advisors for the MetaTrader 4 platform. The core functionality revolves around the Model Maker series, which uses statistical iterations to generate and test trading logic based on various input types and comparers. The system evaluates potential s

MT4 Collection Multi-strategy

MyRandom

by EarnForex
10 stars

MyRandom is a proof-of-concept expert advisor for MetaTrader 4 and 5 that executes trades in random directions. Developed for educational purposes and backtesting research, the robot enters a position after a user-defined number of bars have passed. It includes standard risk management controls such as fixed lot sizing

MT4MT5 Trading robot
Updated 1 year ago Apache-2.0 GitHub repository of MyRandom
10 stars

This expert advisor for MetaTrader 5 automates trade entries using a combination of Relative Strength Index (RSI), Money Flow Index (MFI), and multiple Moving Average periods. It identifies potential entry points based on overbought and oversold thresholds, specifically looking for RSI values below 30 or MFI values bel

MT5 Trading robot Mean reversionIndicator crossover
Updated 3 years ago None stated GitHub repository of Emreguven Forex Trading Bot

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

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

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

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

GBP USD Mean Reversion Bot

by iamshakibulislam
6 stars

This expert advisor for MetaTrader 4 implements a mean reversion strategy primarily targeted at the GBPUSD pair. It automates trade execution by identifying price patterns and entering positions with predefined risk parameters. The bot manages exits through a hard stop loss, a target take profit based on a user-defined

MT4 Trading robot Mean reversion

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