Synced with GitHub · updated today

Free MT4 & MT5 expert advisors

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

New EAs by RSS
298 EAs match Clear filters

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

This framework provides MQL5 header files and example expert advisors designed to trade on non-time-based Range Bar charts within MetaTrader 5. It includes template robots for moving average crossovers and Super Trend strategies. The included code manages trade execution with configurable stop loss, take profit, break-

MT5 Framework & template Indicator crossoverTrend following

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

This expert advisor establishes a bidirectional TCP communication bridge between MetaTrader 5 and a Python-based server. It functions as a client that transmits real-time symbol data and bid prices to an external environment on every price change. The implementation utilizes the Windows Ws2_32 library and a dedicated s

MT5 Copier & bridge

Fractals Trailing Stop

by EarnForex
15 stars

This expert advisor is a utility for MetaTrader 4 and MetaTrader 5 designed to manage stop-loss levels for existing trades. It utilizes Bill Williams' Fractals indicator to dynamically adjust the stop loss as new fractal points form on the chart. Users can configure the number of bars to scan and specify which fractal

MT4MT5 Trade manager
Updated 1 year ago Apache-2.0 GitHub repository of Fractals Trailing Stop

RSI EA

by EarnForex
14 stars

RSI EA is a MetaTrader 5 robot designed to execute trades based on the Relative Strength Index indicator. It functions as a template for mean-reversion strategies, triggering entries when the indicator crosses specific overbought and oversold thresholds. The expert advisor features comprehensive risk controls, includin

MT5 Trading robot Mean reversion
Updated 2 years ago Apache-2.0 GitHub repository of RSI EA

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

Orchard Simple EA Template

by OrchardForexTutorials
13 stars

This collection provides educational templates for building MetaTrader 5 Expert Advisors. It includes demonstration robots that interface with indicators like MACD and Parabolic SAR using the iCustom function. The repository serves as a learning resource for structuring MQL5 code and handling trade execution. Each exam

MT5 Framework & template Indicator crossoverTrend following

MQL4 Template

by KeisukeIwabuchi
13 stars

This MetaTrader 4 expert advisor provides a foundational framework for developers to create custom automated trading systems. It establishes a structured environment for handling trade signals, entry execution, and exit management. The template includes standard risk parameters such as fixed lot sizing, stop loss, and

MT4 Framework & template
Updated 6 years ago MIT GitHub repository of MQL4 Template
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
12 stars

This MetaTrader 5 expert advisor implements a machine learning approach using a Decision Tree model to execute trades. It functions as a bridge between MetaTrader and a local Python-based server using sockets. The system utilizes MACD, RSI, and Exponential Moving Average indicators as primary data features for the neur

MT5 Trading robot AI / machine learningIndicator crossover
11 stars

This expert advisor acts as a trade manager for MetaTrader 4 and 5, focusing on automated stop-loss adjustments. It uses the Supertrend indicator to dynamically calculate and move the stop-loss level for existing positions. Users can filter which trades are managed based on symbol, magic number, trade type, or comments

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

Punlie Grid

by punlie
10 stars

Punlie Grid is a MetaTrader 5 expert advisor that executes a grid trading strategy tailored for gold, crude oil, and cryptocurrencies. It places orders at fixed point intervals and features a trend-following filter that uses daily timeframe data to align trades with the prevailing market direction. Risk controls includ

MT5 Trading robot GridTrend following High risk
Updated 1 year ago MIT GitHub repository of Punlie Grid

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

RSI Martingale EA

by peefpee
10 stars

This Expert Advisor for MetaTrader 5 implements a martingale trading strategy triggered by the Relative Strength Index (RSI). It opens an initial position when RSI reaches overbought or oversold thresholds. If price continues to move against the initial trade, the EA layers additional orders at set point intervals, mul

MT5 Trading robot MartingaleMean reversionGrid High risk

Timed Order

by EarnForex
10 stars

Timed Order is a utility expert advisor that schedules market or pending orders to be executed at a specific time. It supports one-time execution or daily recurring trades on specified days of the week. The EA allows setting stop-loss and take-profit levels using fixed prices, point distances, ATR multipliers, or sprea

MT4MT5 Utility
Updated 1 year ago Apache-2.0 GitHub repository of Timed Order
10 stars

MT Live is a data streaming bridge for MetaTrader 5 that transmits real-time account information and trade data to the metatrader.live web service. It allows users to monitor their terminal activity remotely via a web browser, REST API, or WebSockets. The EA transmits details such as balance, equity, margin, and open p

MT5 Copier & bridge

Mayordomo

by AimakRokalno
10 stars

Mayordomo is a management expert advisor for MetaTrader 4 that facilitates account monitoring and remote trade intervention via Telegram. It periodically transmits balance, equity, and open position data to a designated Telegram channel. Beyond reporting, it acts as a controller, allowing users to close all active trad

MT4 Trade manager
Updated 8 years ago MIT GitHub repository of Mayordomo

MT5 Trade Panel

by maxime-fintech
9 stars

This MetaTrader 5 expert advisor acts as a manual trading assistant and management tool rather than an automated strategy. It provides a graphical interface for executing market, limit, and stop orders with integrated risk management. The panel automatically calculates lot sizes based on account percentage or fixed mon

MT5 Utility
Updated 8 months ago MIT GitHub repository of MT5 Trade Panel

Zeus

by kecoma1
9 stars

Zeus is an expert advisor for MetaTrader 5 that employs a neural network to forecast future price targets. It analyzes historical price action by identifying relative highs and lows to generate inputs for its prediction model. The EA executes market orders when the model predicts a price move, automatically setting sto

MT5 Trading robot AI / machine learning
Updated 2 years ago MIT GitHub repository of Zeus

News Stopper

by faraz-hk
9 stars

News Stopper is a utility for MetaTrader 4 designed to manage trade exposure and platform activity around scheduled economic events. It fetches data from external news calendars to automatically disable the automated trading button, close open positions, or delete pending orders. The tool allows users to set specific t

MT4 News trading
Updated 2 years ago GPL-3.0 GitHub repository of News Stopper

Aurum79

by oknoorap
9 stars

Aurum79 is a connectivity bridge that links MetaTrader 5 to external JavaScript environments via a local socket server. The expert advisor transmits live price ticks and historical candle data to a Node.js client, which can then process the information using external libraries such as TensorFlow.js. It receives and exe

MT5 Copier & bridge AI / machine learning
Updated 3 years ago MIT GitHub repository of Aurum79

MA Cross Scale In

by OrchardForexTutorials
9 stars

This educational expert advisor for MetaTrader 4 and 5 demonstrates a logic for scaling into winning positions. It utilizes a simple moving average crossover strategy for initial trade entries. The primary feature is a function that detects when a current position has reached a specific profit target to trigger additio

MT4MT5 Trading robot Indicator crossover
Updated 4 years ago GPL-3.0 GitHub repository of MA Cross Scale In

Tick Collector MySQL

by Lxbinary
9 stars

This MetaTrader 5 tool records real-time tick data directly into an external MySQL database. It utilizes the libmysql library to establish a direct connection, requiring DLL execution to be enabled within the terminal. The expert can monitor a specific list of symbols provided in the settings or automatically collect d

MT5 Utility
Updated 7 years ago GPL-3.0 GitHub repository of Tick Collector MySQL

Repeat EA

by KeisukeIwabuchi
9 stars

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

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

MetaTrader AI

by jblanked
8 stars

This AI-driven trading assistant integrates Large Language Models like OpenAI and DeepSeek into the MetaTrader 5 platform. It functions as an interactive chat-based assistant and robot, capable of opening, closing, and modifying positions based on natural language prompts. The system can fetch real-time market data, ca

MT5 Trading robot AI / machine learning
8 stars

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

MT4 Risk & protection

One-Click Trade Pro

by EarnForex
8 stars

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

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

Telegram MT4 Copier

by pepshirley
8 stars

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

MT4 Copier & bridge

This MetaTrader 5 collection features several versions of the classic Moving Average expert advisor, modified specifically for trading on custom symbols. It includes helper functions to ensure data readiness for synthetic instruments or imported data series. The included strategies execute trades based on moving averag

MT5 Collection Indicator crossoverTrend following

Event Trader

by fhlee74
8 stars

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

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

MQL4 Trade Manager

by KeisukeIwabuchi
8 stars

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

MT4 Framework & template

MQL4 Slack

by KeisukeIwabuchi
8 stars

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

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

News Stopper MT5

by faraz-hk
7 stars

This news management utility for MetaTrader 5 protects accounts during high-impact economic events by monitoring the ForexFactory calendar. It automatically disables algorithmic trading and manages open positions according to pre-defined schedules before and after news releases. The tool can close active trades, delete

MT5 News trading
Updated 2 years ago GPL-3.0 GitHub repository of News Stopper MT5

RSI MA Cross Custom

by OrchardForexTutorials
7 stars

This expert advisor for MetaTrader 5 combines moving average crossovers with Relative Strength Index (RSI) levels to identify entry points. It initiates buy orders when the RSI indicates oversold conditions and a fast exponential moving average crosses above a slow exponential moving average. Conversely, it opens sell

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

MQL5 JSON API

by luciotato
7 stars

This MetaTrader 5 expert advisor functions as a communication bridge between the trading platform and external applications. Developed to interface with the Backtrader Python framework, it utilizes ZeroMQ sockets and JSON-formatted messaging to facilitate cross-language trading. The tool enables remote command executio

MT5 Copier & bridge
Updated 7 years ago GPL-3.0 GitHub repository of MQL5 JSON API

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

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

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

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

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

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

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 day, 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 day. 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