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.

67 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

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

This collection for MetaTrader 4 provides a variety of expert advisors and utilities intended for automated trading and educational use. The primary component is a moving average crossover robot that opens positions based on trend direction. It features risk management tools including percentage-based stop losses, take

MT4 Collection Indicator crossoverMartingaleGrid High risk

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

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

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

This MetaTrader 5 collection features two primary components: a manual risk management panel and an automated confluence robot. The TyAlgo advisor executes trades using the No Nonsense Forex method, aggregating signals from various technical indicators via global variables. Risk is managed through the TyphooN tool, whi

MT5 Collection Trend followingMulti-strategyMartingale High risk

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

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

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

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

MultiTrader

by mazmazz
14 stars

MultiTrader is a multi-currency expert advisor for MetaTrader 4 and MetaTrader 5 that executes trades across multiple forex instruments concurrently. It uses a modular system of filters to generate entry and exit signals based on various technical indicators. The EA manages risk through fixed or trailing stop losses, b

MT4MT5 Trading robot GridMulti-strategy High risk
Updated 5 years ago GPL-3.0 GitHub repository of MultiTrader
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

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

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

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

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

MT5 Trading robot Martingale High risk

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

NS Financas 4 EMA

by guilhermeneves
5 stars

NS Financas 4 EMA is a MetaTrader 5 expert advisor that automates trading using a four-period exponential moving average system. The robot enters trades based on the alignment of three short-term EMAs while using a 200-period EMA as a directional trend filter to ensure positions align with the long-term market bias. It

MT5 Trading robot Indicator crossoverTrend following
4 stars

This repository provides a collection of trading scripts for MetaTrader 4, MetaTrader 5, and Pine Script, covering various technical strategies. It includes a Williams Alligator expert advisor that enters trades based on the alignment of three smoothed moving averages. The repository also contains code for grid and hed

MT4MT5 Collection Trend followingGridHedging High risk

AI Supertrend Long Only

by dharaarpan7
4 stars

This MetaTrader 5 expert advisor executes automated long-only trades based on the Supertrend indicator. It calculates trend direction using Average True Range and a multiplier factor to identify entry points. The robot includes built-in risk management tools such as percentage-based stop loss and take profit orders, as

MT5 Trading robot Trend following
Updated 11 months ago BSL-1.0 GitHub repository of AI Supertrend Long Only

Telegram Trader Bot

by coolboydev8
4 stars

This MetaTrader 5 expert advisor serves as a bridge between Telegram and the trading platform, allowing users to execute and manage trades remotely via mobile devices. It supports instant and limit orders for buy and sell positions through simple chat commands. Beyond execution, the tool provides real-time alerts, pric

MT5 Copier & bridge

Simple Trend EA

by jblanked
4 stars

This MetaTrader 5 expert advisor implements a trend-following strategy using exponential moving averages and the Relative Strength Index. It enters a long position when the 50-period EMA is above the 200-period EMA while RSI is above 50, and a short position for the opposite conditions. The robot manages one trade at a

MT5 Trading robot Trend followingIndicator crossover
Updated 2 years ago MIT GitHub repository of Simple Trend EA
4 stars

This MetaTrader 5 expert advisor implements a classic moving average crossover strategy with multi-symbol support. It enters trades when a fast simple moving average crosses a slow simple moving average. The robot features automated risk management, calculating position sizes based on a percentage of the account balanc

MT5 Trading robot Indicator crossover

Data Writer

by vzhomeexperiments
4 stars

Data Writer is a MetaTrader 4 expert advisor designed to log historical asset data into CSV files. Rather than executing trades, it functions as a data collection tool for traders looking to build external prediction models or conduct deep learning analysis. Users can configure the EA to record specific price points in

MT4 Utility
Updated 5 years ago MIT GitHub repository of Data Writer

Hercules MQL5 Library

by herculeshssj
4 stars

This repository contains a collection of MetaTrader 5 expert advisors and utility scripts. It includes a variety of automated strategies such as mean reversion, Dunnigan NRTR, and experiments with artificial intelligence. The library also features utility tools for Telegram integration, search functions, and signal das

MT5 Collection Mean reversionAI / machine learningIndicator crossover High risk Archived

SVEA Super Visor

by LeonardoCiaccio
4 stars

SVEA is a MetaTrader 4 trade management tool designed to supervise manual entries and automate order execution based on horizontal lines. It monitors specific price levels set by the user to trigger buy and sell orders, including stops and limits. The utility incorporates essential risk controls such as percentage-base

MT4 Utility Grid High risk
Updated 10 years ago MIT GitHub repository of SVEA Super Visor

Fxcodebase Archive

by gehtsoft-usa
3 stars

This repository is a comprehensive backup of trading resources from the defunct fxcodebase community, containing a diverse collection of expert advisors for MetaTrader 4 and 5. The archive serves as a repository for legacy source code, featuring strategies ranging from RSI crossovers to advanced hedging and martingale

MT4MT5 Collection Multi-strategyMartingaleHedging High risk
Updated 2 months ago GPL-3.0 GitHub repository of Fxcodebase Archive

Adjustable MA 3G

by EarnForex
3 stars

This expert advisor for MetaTrader 4 and 5 executes trades based on crossovers of the 3rd Generation Moving Average indicator. It utilizes two instances of the custom indicator with adjustable periods and sampling settings to identify trend shifts. The robot enters positions when the difference between the fast and slo

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

Discord Telegram Client

by nguemechieu
3 stars

This MetaTrader 4 utility serves as a bridge between the trading terminal and external platforms like Telegram and Discord. It functions as a comprehensive manual trading panel, enabling users to execute various order types and manage positions directly from the chart interface. The EA integrates indicator-based signal

MT4 Copier & bridge Multi-strategy

RSI MA Cross Custom

by OrchardForexTutorials
3 stars

This Expert Advisor for MetaTrader 4 executes trades based on the confluence of Relative Strength Index levels and Moving Average crossovers. It enters long positions when the RSI is oversold and a fast exponential moving average crosses above a slow one, and short positions when the RSI is overbought during a downward

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

Quotes Hub

by CloudFree9
3 stars

Quotes Hub is a MetaTrader 5 data bridge designed to receive and broadcast market data to external applications. It specifically handles data feeds, including references to Interactive Brokers, and redistributes them using socket connections. The utility functions as a server, allowing other software to subscribe to li

MT5 Copier & bridge
Updated 8 years ago Apache-2.0 GitHub repository of Quotes Hub

DC Fib2O MT5 Bot

by sournk
2 stars

This Expert Advisor for MetaTrader 5 automates a strategy based on Fibonacci retracements following a Break of Structure or Change of Character. It identifies market structure shifts and places two separate pending orders: a trend-following stop order and a reversal limit order targeting liquidity runs. The EA calculat

MT5 Trading robot SMC / ICT / price actionMean reversion

Currency Pair Scanner

by kurt-apple
2 stars

This MetaTrader 4 expert advisor functions as a technical scanner and trade automation tool. It iterates through multiple currency pairs to evaluate market conditions and sort them according to technical criteria. The system includes logic for automated order preparation, performing real-time risk assessments before ex

MT4 Trading robot Multi-strategy

AI Game Theory Trader

by can87683
1 stars

AI Game Theory Trader is a MetaTrader 5 expert advisor that employs Nash-style statistical signals for automated trade execution. It utilizes adaptive logic to calculate lot sizes based on user-defined risk percentages. The EA manages risk through stop losses, take profits, and trailing stops, which can be fixed or ATR

MT5 Trading robot AI / machine learning
Updated yesterday BSD-3-Clause GitHub repository of AI Game Theory Trader

HpFX Framework

by mbelgin
1 stars

High Performance Forex (hpFX) is an indicator-agnostic framework for MetaTrader 4 designed for large-scale backtesting and strategy automation. It allows traders to define complex rules by combining up to ten custom indicators as entry signals, confirmation filters, or exit triggers using a flexible string-based encodi

MT4 Framework & template Trend followingIndicator crossoverMulti-strategy
Updated 3 months ago MIT GitHub repository of HpFX Framework
1 stars

This collection for MetaTrader 5 provides a suite of trading algorithms and risk management utilities. The primary expert advisor features an adaptive machine learning system using a neural network and evolutionary genetic algorithms. It analyzes market structure, volume profiles, and candlestick patterns to execute tr

MT5 Collection AI / machine learningSMC / ICT / price action

Visual Risk Calculator

by arnaudrmt
1 stars

This MetaTrader 5 utility provides a visual interface for position sizing and manual trade execution. It allows traders to drag and drop stop loss and take profit lines directly on the chart, automatically calculating the required lot size based on a predefined risk percentage and account equity. The tool handles curre

MT5 Utility

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