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.

896 EAs match Clear filters
22 stars

This repository provides a collection of MetaTrader 5 expert advisors and indicators developed for experimental purposes. It features a range of trading systems, including standard MetaQuotes examples and custom implementations like NERV and RNN-based logic. The primary expert advisors utilize technical indicators such

MT5 Collection Indicator crossoverMulti-strategyAI / machine learning

TradeSync Transmitter

by GeneralTradingSarl
21 stars

TradeSync Transmitter is a MetaTrader 5 expert advisor designed to broadcast trading activity from a host terminal to external receivers. It functions as the transmitter component of a trade copying system, sending real-time trade requests and periodic position summaries to a remote server or local CSV files. The utili

MT5 Collection
Updated 4 days ago None stated GitHub repository of TradeSync Transmitter

Galaxy Trader

by phamngocvinh
21 stars

Galaxy Trader is a collection of MetaTrader 5 expert advisors focused on trend following using the Ichimoku Kinko Hyo indicator. The primary component, Trend Catcher, monitors up to three distinct timeframes simultaneously to identify bullish or bearish market conditions. It executes trades based on cloud positions for

MT5 Collection Trend followingMulti-strategy Archived
Updated 4 years ago GPL-3.0 GitHub repository of Galaxy Trader

Basic Bollinger Bands EA

by terencebeauj
21 stars

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

MT5 Trading robot Mean reversionTrend following
21 stars

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

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

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

MT4 Trading robot AI / machine learning

Metatrader 4 MCP

by 8nite
20 stars

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

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

Trader Pad

by erlonfs
20 stars

Trader Pad is a trade management utility for MetaTrader 5 designed to automate position exits and risk control after an entry is initiated. The software handles stop-loss and take-profit placement in ticks, providing advanced trailing stop logic and break-even functionality. It allows users to scale out of positions th

MT5 Trade manager
Updated 4 years ago MIT GitHub repository of Trader Pad

Makets GA

by nopaixx
20 stars

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

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

Parallel Strategies

by Pierre8r
20 stars

Parallel Strategies is a MetaTrader 4 expert advisor designed to execute multiple independent technical strategies simultaneously. It includes modules for Moving Average crossovers, MACD breakouts, Heiken Ashi signals, and a hybrid Heiken-MACD system. Each strategy operates with a unique magic number to allow concurren

MT4 Collection Indicator crossoverBreakoutMulti-strategy
Updated 8 years ago None stated GitHub repository of Parallel Strategies

ATR Trailing Stop

by EarnForex
19 stars

This trade manager for MetaTrader 4 and 5 automatically adjusts the stop-loss levels of open positions using the Average True Range indicator. It allows users to define the trailing distance through a configurable ATR period and multiplier. The expert advisor includes filtering logic to apply the trailing stop only to

MT4MT5 Trade manager
Updated 6 months ago Apache-2.0 GitHub repository of ATR Trailing Stop

MT4 Ticks To MT5

by JafferWilson
19 stars

This utility synchronizes tick data and historical price information from MetaTrader 4 to MetaTrader 5 in real-time. It utilizes a socket communication library to transmit data between the two platforms, requiring an active expert advisor on both terminals. The receiver component creates custom symbols in the MetaTrade

MT4MT5 Copier & bridge
Updated 6 years ago LGPL-3.0 GitHub repository of MT4 Ticks To MT5

PyMQL5

by MaiconBaggio
19 stars

PyMQL5 is a bridging tool that connects Python 3 environments with MetaTrader 5 via a UDP socket. The Expert Advisor functions as a local server, allowing external Python scripts to query historical time series data, current market prices, and account status. It provides comprehensive trading capabilities, enabling the

MT5 Copier & bridge
Updated 6 years ago MIT GitHub repository of PyMQL5

Python Mql5 Sockets

by RafaelFenerick
19 stars

This MetaTrader 5 utility establishes a bridge between the trading platform and Python environments using socket communication. It operates as a client that connects to a specified server to exchange string data at regular intervals. The tool facilitates bi-directional data transmission, allowing users to send messages

MT5 Copier & bridge
Updated 8 years ago GPL-3.0 GitHub repository of Python Mql5 Sockets
19 stars

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

MT4 Collection BreakoutTrend followingMean reversion

MT5 Agent Toolkit

by smizxe
18 stars

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

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

X-Tick Chart SDK

by 9nix6
18 stars

This repository provides a software development kit and a collection of example Expert Advisors for MetaTrader 5 designed to work with custom tick and volume bar charts. It includes template robots that execute trades based on moving average crossovers or price action relative to moving averages on non-time-based chart

MT5 Framework & template Indicator crossover
Updated 5 years ago GPL-3.0 GitHub repository of X-Tick Chart SDK
18 stars

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

MT5 Trading robot AI / machine learningHedging
18 stars

LediaEA Trading Assistant is a MetaTrader 4 utility designed to facilitate manual trade execution and risk management. It provides a graphical interface for calculating lot sizes based on a fixed currency amount or a percentage of account balance or equity. The tool automatically detects order types, including market a

MT4 Utility
Updated 6 years ago None stated GitHub repository of LediaEA Trading Assistant

Mql5 Telegram Connection

by RafaelFenerick
18 stars

This MetaTrader 5 expert advisor functions as a communication bridge between the trading platform and a Telegram bot. It enables users to interact with MetaTrader 5 remotely by processing incoming messages and responding to specific commands. The tool uses a timer-based polling system to check for new messages, current

MT5 Copier & bridge
Updated 6 years ago None stated GitHub repository of Mql5 Telegram Connection

Adeline EA

by Lucas170
18 stars

Adeline is a MetaTrader 4 expert advisor that executes trades based on a dual moving average crossover strategy. It monitors the 10-period and 40-period Simple Moving Averages, entering long or short positions when the fast line crosses the slow line. The robot manages exits using opposite signal crossovers, a fixed st

MT4 Trading robot Indicator crossover
Updated 7 years ago None stated GitHub repository of Adeline EA

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

De Pip Sniper

by Oluwasakin-Tobi
16 stars

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

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

Adjustable MA

by EarnForex
15 stars

This MetaTrader expert advisor implements a classic moving average crossover strategy for both MT4 and MT5. It enters trades when a fast moving average crosses a slow moving average, requiring a user-defined minimum point difference to confirm the signal. The robot includes risk management features such as stop loss, t

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

This visual trade management utility for MetaTrader 5 assists manual traders with order execution and risk management. It features interactive chart lines for entry, stop loss, and take profit levels, allowing for drag-and-drop price adjustments. The system automatically calculates position sizes based on a defined per

MT5 Trade manager
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

Ubot

by kudzaiprichard
15 stars

Ubot is an automated trading system for MetaTrader 4 that utilizes the Traders Dynamic Index (TDI) indicator to execute market entries. It identifies specific technical patterns described as sharkfin and squeeze setups to determine trend direction and volatility. The expert advisor features advanced trade management to

MT4 Trading robot Trend followingMean reversion
Updated 2 years ago Custom licence GitHub repository of Ubot

This repository contains a collection of MetaTrader 5 expert advisors based on popular technical indicators. The primary EA uses the Relative Strength Index to identify overbought and oversold conditions for trade entry. It manages risk through fixed stop loss and take profit settings, alongside a maximum position limi

MT5 Collection Mean reversionIndicator crossoverScalping

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

MA Cross EA

by eugenesia
14 stars

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

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

EA MT5 Research Collection

by codingfordummies911
13 stars

This repository is a large collection of MetaTrader 5 expert advisors and indicators compiled for educational and research purposes. The library features various experimental scripts, with a notable focus on advanced machine learning methodologies including neural networks, reinforcement learning, and unsupervised algo

MT5 Collection AI / machine learning
Updated 8 months ago None stated GitHub repository of EA MT5 Research Collection

Mt5 Rest Api

by DevRico003
13 stars

This MetaTrader 5 expert advisor functions as a bridge, transforming the trading terminal into a REST API server for external algorithmic systems. It allows developers to execute trades, manage open positions, and retrieve historical candlestick data or account information using standard HTTP requests. The tool support

MT5 Copier & bridge
Updated 9 months ago None stated GitHub repository of Mt5 Rest Api
13 stars

This MetaTrader 5 expert advisor synchronizes trading activity between multiple terminal instances using a local file-based communication method. It features a dual-mode system where a master account writes current position data, including symbols, volumes, and price levels, to a binary file. Slave accounts monitor thi

MT5 Copier & bridge

CARA Correlation EA

by jblanked
13 stars

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

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

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

Forex Data Exporter

by mahdi-abbaspour-shahmarasi
13 stars

This MetaTrader 5 utility exports technical indicator data for various currency pairs to external formats. It processes values from several indicators, including the Relative Strength Index (RSI), multiple exponential and simple moving averages with customizable periods, and Ichimoku Kinko Hyo components. The tool is d

MT5 Utility
Updated 3 years ago None stated GitHub repository of Forex Data Exporter

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

MACD MME

by codingfordummies911
12 stars

This MetaTrader 5 expert advisor executes trades based on a combination of MACD signal levels and exponential moving average crossovers. It utilizes a 20-period and 6-period EMA to determine trend direction before initiating positions at specific MACD pip thresholds. The system employs a unique risk management approach

MT5 Trading robot Indicator crossoverTrend following
Updated 8 months ago None stated GitHub repository of MACD MME
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
11 stars

This MetaTrader 5 tool establishes a local socket server to facilitate communication between the trading platform and external Python applications. It uses a millisecond timer to monitor for incoming client connections and process received string commands. The utility acts as a bridge, allowing external scripts to inte

MT5 Copier & bridge
Updated 4 years ago None stated GitHub repository of Python MT4 Socket Server

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

This repository contains a collection of MetaTrader 5 expert advisors designed for automated trading based on classic candlestick patterns. Each robot focuses on specific price action formations like Morning Star, Harami, or Engulfing candles, using oscillators such as Stochastic, RSI, CCI, or MFI for entry filtering.

MT5 Collection Mean reversion

Learn how to use expert advisors

Free, plain-English guides: find an EA, install it, set it up, test it and run it safely.

  1. 1Types of EAsRobots, trade managers, copiers and risk tools, and what each is for.
  2. 2Using this librarySearch, filters, badges and what our checks do and do not mean.
  3. 3Install an EA in MT4 or MT5Data folder, compile, attach to a chart and switch on algo trading.
  4. 4EA settings explainedLot size, stop-loss, magic number, max spread and trading hours.
  5. 5Backtest in the Strategy TesterModelling, spread, the report and the over-fitting trap.
  6. 6Choose a safe EAA checklist for the code, the logic, the evidence and the fit.
  7. 7Run an EA 24/7VPS, forward testing on demo and going live small.
  8. 8Open-source EAs on GitHubLicences, compiling in MetaEditor and editing inputs safely.
  9. 9Forex robots: an honest guideWhat automation can and cannot do for you.

About the EA Library

The ForexR EA Library collects open-source expert advisors for MetaTrader 4 and MetaTrader 5 that are published on GitHub. Each entry links to the original repository, so you always get the author's latest code, issues and licence straight from the source. Star counts, last updates and licences are synced from GitHub every 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