This repository contains a diverse collection of MetaTrader 5 Expert Advisors and tools developed for instructional purposes. The included robots cover various trading methodologies, such as moving average crossovers, RSI divergences, gap reversals, and candlestick patterns like the Red-White-Red strategy. The EAs typi
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
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
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
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
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,
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
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
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
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
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
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 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
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
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
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
This expert advisor acts as a server bridge for MetaTrader 5, facilitating communication with external applications via ZeroMQ sockets and JSON messaging. It enables remote control from languages like Python to request account details, trade history, and current positions. The system supports the execution of market an
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
This repository is a large collection of over 1,000 expert advisors designed for the MetaTrader 5 platform. It serves as an open-source library featuring various algorithmic trading strategies, including moving average crossovers, RSI levels, Parabolic SAR, and range breakouts. The collection provides robots for trend
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
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-
MT5Framework & templateIndicator crossoverTrend following
This repository contains a collection of MetaTrader 5 Expert Advisors and scripts developed for educational and testing purposes. It includes various automated robots based on technical indicators such as the Stochastic Oscillator, RSI, and Moving Average crossovers. The primary Stochastic EA manages entries using over
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
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
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
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
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
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
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
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
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
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
This repository provides a complete environment to run MetaTrader 5 within a Docker container on Ubuntu, accessible through VNC. It includes a collection of expert advisors such as a 3D Correlation Matrix and standard technical strategy examples including MACD and Moving Average. A primary feature is the ZeroMQ expert
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
MT5Framework & templateIndicator crossoverTrend following
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
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
MT5Trading robotIndicator crossoverTrend following
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
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
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
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
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
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
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.
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
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
This expert advisor for MetaTrader 5 automates trade entries using a combination of Relative Strength Index (RSI), Money Flow Index (MFI), and multiple Moving Average periods. It identifies potential entry points based on overbought and oversold thresholds, specifically looking for RSI values below 30 or MFI values bel
This Expert Advisor serves as a communication interface between MetaTrader 5 and external applications via the ZeroMQ messaging protocol. It establishes a TCP server using a REP socket to listen for incoming data and trading commands from external environments like Python. The EA runs on a high-frequency millisecond ti
This tool provides an interface between MetaTrader 4 or 5 and an external AI-powered analysis server. It allows users to request market evaluations from over thirty-four different AI models through a custom Node.js API bridge. The provided example expert advisor visualizes analysis results—including market trend, trade
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.