Synced with GitHub · updated hourly

Expert Advisor Library

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

619 EAs match Clear filters

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

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

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

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

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

Liangxifeng MT4 Collection

by liangxifeng833
6 stars

Liangxifeng MT4 Collection is a repository of MetaTrader 4 expert advisors focused on automated trading strategies. The primary EA employs a dual moving average crossover system to initiate trades and features a scaling mechanism that increases lot sizes as the market moves in favor of the position. It manages risk thr

MT4 Collection Trend followingIndicator crossoverHedging
Updated 5 years ago None stated GitHub repository of Liangxifeng MT4 Collection

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

OwaisQuadri MT4 Code

by OwaisQuadri
6 stars

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

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

MQL4 Logger Class

by RGunning
6 stars

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

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

Auto Trade EA

by leonharvey
6 stars

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

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

Falcon S

by vzhomeexperiments
6 stars

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

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

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

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

MQL4 Price

by KeisukeIwabuchi
6 stars

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

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

Price Action Expert

by nasimalsajjad
6 stars

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

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

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

MT4 Collection BreakoutArbitrageMean reversion

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

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

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

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

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

MA Cross with Formula Trailing Stop

by OrchardForexTutorials
5 stars

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

MT4MT5 Trading robot Indicator crossover

Nnfx Autotrader

by henriquepfeifer
5 stars

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

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

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

Clarissa EA

by Lucas170
5 stars

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

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

Robot Desiree

by Lucas170
5 stars

Robot Desiree is a trend-following expert advisor for MetaTrader 4 that utilizes Donchian Channels for trade entries and exits. The system identifies breakouts based on configurable lookback periods and manages positions using either fixed pip-based levels or volatility-adjusted stops and targets calculated from the Av

MT4 Trading robot BreakoutTrend following
Updated 7 years ago None stated GitHub repository of Robot Desiree

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

This MetaTrader 4 repository contains a collection of expert advisors, primarily featuring SwapTrader. This specific EA enters and exits positions at predefined times, specifically targeting the market rollover period to account for swap rates. It includes risk management settings such as fixed or percentage-based lot

MT4 Collection Multi-strategyIndicator crossover
Updated 8 years ago None stated GitHub repository of AlexDevFx MQL4 Collection
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

Forex News Killer

by DodsonPeek
4 stars

Forex News Killer is a protective utility for MetaTrader 4 designed to manage market exposure during high-impact economic events. It monitors external news calendars and automatically intervenes by closing open positions, deleting pending orders, or disabling the platform's global algorithmic trading button. The EA off

MT4 News trading
Updated yesterday None stated GitHub repository of Forex News Killer

Move Stop To Breakeven

by EarnForex
4 stars

Move Stop To Breakeven is a trade management expert advisor for MetaTrader 4 and 5 that automatically secures open positions by adjusting stop-loss levels. Once a trade reaches a user-defined profit distance in points, the EA moves the stop-loss to the entry price or a specified buffer level. It features options to acc

MT4MT5 Trade manager
Updated 6 months ago Apache-2.0 GitHub repository of Move Stop To Breakeven
4 stars

This repository provides a collection of MetaTrader 4 expert advisors, primarily focused on a manual trading dashboard and an indicator-based robot. The included dashboard enables manual execution with automated trade management features such as hidden virtual stop loss and take profit levels, profit locking, and multi

MT4 Collection Trend followingIndicator crossover

Single Breakeven

by EarnForex
4 stars

Single Breakeven is a trade management tool for MetaTrader 4 and 5 that monitors multiple open positions on a single symbol. When the aggregate profit in account currency reaches a user-defined threshold, the expert advisor moves the stop loss of all included trades to a calculated breakeven price. It supports filterin

MT4MT5 Trade manager
Updated 1 year ago Apache-2.0 GitHub repository of Single Breakeven

MA Trailing Stop

by EarnForex
4 stars

MA Trailing Stop is a trade management expert advisor for MetaTrader 4 and MetaTrader 5. It monitors open positions and automatically adjusts stop-loss levels based on the value of a moving average indicator. Users can customize the indicator period, method, and shift to suit their strategy. The tool includes filtering

MT4MT5 Trade manager
Updated 1 year ago Apache-2.0 GitHub repository of MA Trailing Stop
4 stars

Hohla Trader Assistant is a utility for MetaTrader 4 and 5 designed to streamline trade management and risk control. It automatically applies stop loss and take profit levels to manual trades using multiples of the Average True Range. The tool calculates lot sizes dynamically based on a percentage of account equity. A

MT4MT5 Trade manager
Updated 2 years ago None stated GitHub repository of Hohla Trader Assistant
4 stars

This MetaTrader 4 expert advisor acts as a bridge between external Python scripts and the trading platform using the ZeroMQ messaging library. It functions as a server that listens for remote commands to open trades, modify positions, and delete orders. Additionally, the EA can transmit real-time tick data, historical

MT4 Copier & bridge
Updated 2 years ago Apache-2.0 GitHub repository of Zmq Communicator EA

FX Risk Management Collection

by vishnugovind10
4 stars

This MetaTrader 4 collection provides a set of utilities focused on risk management and order execution. It includes scripts and expert advisors designed to automate the closing of open positions and the removal of pending orders. The logic specifically targets closing trades that have reached a specific gain threshold

MT4 Risk & protection

Orchard Simple EA Template

by OrchardForexTutorials
4 stars

This MetaTrader 4 expert advisor collection serves as a structured framework for building automated trading strategies. The included examples demonstrate how to implement indicator-based entries using the iCustom function, such as MACD and Parabolic SAR crossovers. It manages trades with basic risk controls including f

MT4 Framework & template Indicator crossover
4 stars

OrderBlock Auto Extend is a MetaTrader 4 utility designed to automate the maintenance of manual chart markings. It scans for rectangle objects commonly used to represent supply and demand zones or order blocks. When a zone is identified by its color, the tool extends the rectangle's time coordinate to the most recent c

MT4 Utility SMC / ICT / price action
Updated 3 years ago None stated GitHub repository of OrderBlock Auto Extend

MT4 Autotrade EMA RSI

by thomasngu0423
4 stars

This MetaTrader 4 expert advisor automates trading using a combination of trend-following and mean-reversion indicators. It executes trades based on the crossover of two Exponential Moving Averages, filtered by Relative Strength Index levels and Bollinger Band boundaries. The robot enters a position when an EMA crossov

MT4 Trading robot Indicator crossoverMean reversion
Updated 3 years ago None stated GitHub repository of MT4 Autotrade EMA RSI

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