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

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

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

HLT Auto Trader

by GeorgVahi
6 stars

HLT is an automated trading robot for MetaTrader 5 that focuses on market structure and swing analysis across multiple timeframes from M1 to H4. The expert advisor synchronizes with New York time and identifies setups based on price swings and daily trading plans. It includes a fixed risk money management module and sp

MT5 Trading robot SMC / ICT / price actionNews
Updated 3 months ago None stated GitHub repository of HLT Auto Trader

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

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

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

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

The Strat MT4 EA

by schatekar
6 stars

The Strat MT4 EA is an experimental automated trading system designed for MetaTrader 4 based on The Strat price action framework. It utilizes candle classifications, specifically types 1, 2, and 3, to identify potential market reversals and continuations. The robot features flexible money management, allowing users to

MT4 Trading robot SMC / ICT / price action
Updated 5 years ago None stated GitHub repository of The Strat MT4 EA

AE Expert Curious

by mofostopheles
6 stars

AE Expert Curious is a collection of MetaTrader 4 expert advisors based on the Raghee Horner trend-following methodology. It utilizes specific Exponential Moving Average crossovers, including the 13, 21, 34, and 55-period lines, to determine market direction and momentum. The strategy incorporates several technical fil

MT4 Collection Trend followingIndicator crossoverSMC / ICT / price action
Updated 6 years ago None stated GitHub repository of AE Expert Curious

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

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

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

EA Authorization Manager

by tanzhenxing
5 stars

This MetaTrader 4 utility provides a framework for remote license management and authorization. It facilitates connection to an external web API to verify user keys through the wininet DLL library. The program executes an initial check upon activation and continues to monitor the authorization status at hourly interval

MT4 Utility
Updated 7 years ago Custom licence GitHub repository of EA Authorization Manager

Falcon EA Template

by Lucas170
5 stars

This MetaTrader 4 expert advisor provides a framework for trading dual moving average crossovers. It offers automated trade execution with a strong focus on risk management, including lot sizing calculated from a user-defined percentage of account equity. The system manages exits through either fixed pip values or vola

MT4 Trading robot Indicator crossoverTrend following
Updated 7 years ago None stated GitHub repository of Falcon EA Template
5 stars

MQL4 Project Templates provides a collection of MQL4 boilerplates designed for MetaTrader 4 developers. It serves as a foundational framework rather than a functional trading robot. The repository includes basic structures for experts, indicators, scripts, classes, and functions. The provided expert advisor template co

MT4 Framework & template
Updated 9 years ago None stated GitHub repository of MQL4 Project Templates

Jonny EA Simple

by JonnyKelso
5 stars

Jonny EA Simple is an automated trading robot for MetaTrader 4 that executes trades based on an algorithmic indicator using configurable look-back periods. It manages risk by calculating position sizes as a percentage of the current account balance, ensuring lot sizing remains proportional to equity. For trade exits, t

MT4 Trading robot Trend following
Updated 9 years ago GPL-2.0 GitHub repository of Jonny EA Simple
5 stars

This repository contains a collection of MetaTrader 4 expert advisors developed for educational purposes and backtesting practice. It features several distinct trading strategies, including moving average crossovers, stochastic counter-trend setups, and pending order breakouts. The included scripts demonstrate essentia

MT4 Collection Indicator crossoverMean reversionBreakout
Updated 10 years ago None stated GitHub repository of MQL4 Learning Collection

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