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
WatchDog is a connectivity utility for MetaTrader 4 designed to ensure a trading terminal remains logged into an account. It monitors chart update activity and triggers an automated reconnection procedure if the connection stalls for a user-defined period. The tool utilizes Windows DLL calls to interact with the termin
This MetaTrader 4 collection provides several scripts designed to analyze price action and candlestick patterns. It includes modules for moving average crossovers, Bollinger Bands, and a specialized candlestick analysis tool. The software identifies specific formations such as hammers, dojis, and engulfing candles by c
This repository provides a collection of MetaTrader 4 utilities and expert advisors focused on technical signaling and market monitoring. The primary EA identifies exponential moving average crossovers, triggering terminal alerts when a fast EMA crosses a slow EMA on the completion of a candle. The collection includes
Parallel System 3 is a MetaTrader 4 expert advisor developed specifically for trading gold. It utilizes a Directional Movement Index (DMI) signal generator with customizable smoothing periods and moving average methods. The trade management logic is based on a layered approach involving multiple trade packs, categorize
Soportes y Resistencias is a MetaTrader 4 utility designed to automatically identify and mark support and resistance levels on a price chart. It operates by scanning the price history for local maximums and minimums based on user-defined look-back and look-forward parameters. When a peak or trough is identified, the ex
This MetaTrader 5 expert advisor acts as a connectivity bridge between the MetaTrader platform and various cryptocurrency exchanges such as Binance, Bybit, and Bitmex. It allows traders to execute automated strategies on external crypto markets directly from the terminal. The included Ping Pong module functions as a ma
This MetaTrader 5 expert advisor serves as a bridge between the terminal and external programming languages via the ZeroMQ library. It allows developers to perform algorithmic trading and market data analysis from external environments by exposing the MQL5 API through a socket interface. The program handles JSON-format
AutoNAS is an automated trading robot designed for the NAS100 index and USOil on the MetaTrader 4 platform. It employs a custom price-action strategy based on a variable threshold to determine entry points. The expert advisor monitors price movements relative to an initial anchor price, opening positions when specific
This collection provides a suite of trade management and execution assistants for MetaTrader 4 and MetaTrader 5. Designed to support manual trading, these utilities facilitate automatic position sizing and order placement via on-chart buttons rather than autonomous algorithmic decision-making. The repository includes s
Oanda TDesk Drone is a MetaTrader 4 expert advisor designed to execute trades based on signals from the TDesk dashboard via the Oanda FXtrade platform. It functions as a bridge, using an external Python script and file-based data exchange to facilitate order placement. The EA is specifically designed to support fractio
This MetaTrader 4 expert advisor implements a trend-following breakout strategy using Heiken Ashi candle sequences. The system defines local highs and lows based on consecutive candle color changes and enters trades when these price levels are breached. It operates on a reversal basis, closing active trades and initiat
This repository is a comprehensive collection of MetaTrader 5 source code gathered from the MQL5 CodeBase and various technical articles. It serves as an archive of various trading systems, including trend-based impulse strategies, fuzzy logic applications, and standard indicator samples. The collection contains over 5
This MetaTrader 4 expert advisor implements a price action strategy based on candlestick engulfing patterns. It identifies bullish and bearish formations to enter long or short positions automatically. The bot manages active trades by closing existing positions whenever a new opposing signal is detected, effectively re
This collection for MetaTrader 4 contains several expert advisors focused on grid trading and trend-following techniques. The main EA utilizes a multi-level grid system that can place up to 20 layers of buy or sell stop/limit orders at fixed pip intervals. It includes basket management features to close trades based on
MQL4 Order Module is a developer framework and library for MetaTrader 4 designed to simplify the selection and management of trading orders. It provides a structured interface for filtering open positions, pending orders, and historical trade data based on magic numbers or ticket IDs. The module includes functionality
This MetaTrader 5 expert advisor functions as an autonomous trading system that integrates a genetic algorithm for parameter optimization. The robot utilizes a logic-tree structure combined with technical indicators such as RSI, MACD, and ADX to identify market entries. It features standard risk controls, including fix
This MetaTrader 4 expert advisor executes trades based on the crossover of two smoothed moving averages. It monitors direction changes between a fast and slow period to trigger market entries. Risk management is handled through fixed stop loss and take profit parameters, along with a break-even function that secures po
MT4Trading robotIndicator crossoverTrend following
Falcon EA Template is an automated trading robot for MetaTrader 4 that utilizes dual moving averages and Keltner Channels to determine market entries. The system prioritizes risk management through percentage-based position sizing and various exit strategies. It features fixed and volatility-based stop loss and take pr
MT4Trading robotIndicator crossoverTrend following
This repository contains a collection of expert advisors for the MetaTrader 4 platform. The primary strategy, BearishEngulfing, utilizes price action to identify specific candlestick patterns for executing sell orders. It includes essential risk management parameters such as fixed lot sizing, stop loss, take profit, an
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
NZT USDJPY is a MetaTrader 4 expert advisor specifically tailored for the USD/JPY forex pair. The EA monitors tick-by-tick price movements to manage active long and short positions. It employs logic that triggers order closures or modifications based on bid and ask fluctuations relative to reference prices. The softwar
This MetaTrader 5 expert advisor serves as a modular framework for testing and optimizing indicator-based trading strategies. It currently implements a trend-following system based on Supertrend signals, which utilize volatility-driven calculations for entries. The robot executes logic exclusively at the opening of eac
This news filter module for MetaTrader 5 provides a framework for Expert Advisors to avoid trading during high-impact economic events. It features a dual-layer system: a decision layer that blocks new entries and an action layer that can flatten current positions or cancel pending orders. The tool supports live termina
This repository provides a collection of MetaTrader 4 expert advisors and indicators designed for automated trading and technical analysis. The EAs implement various strategies such as trend-following, candle pattern recognition, and tick movement analysis. Risk management features across the files include standard sto
This MetaTrader 5 expert advisor implements a multi-layer grid trading system suitable for forex, gold, and indices. It establishes a grid of price levels around an anchor point, opening buy positions when the price crosses down through a specific level. The grid is divided into three customizable layers, each with ind
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
Mql5 Pro is a comprehensive development framework and template collection for MetaTrader 5, specifically optimized for AI-assisted coding and Pine Script conversion. It provides standardized structures for creating Expert Advisors, custom indicators, and graphical user interfaces. The system includes built-in risk mana
This MetaTrader 5 analytical tool uses Markov Chain theory to examine the relationship between consecutive price movements. It processes historical data to calculate transition probabilities for up and down candles based on the preceding price action. The repository contains separate experts for analyzing one, two, or
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
This collection for MetaTrader 5 provides dozens of expert advisors based on the combination of Japanese candlestick patterns and technical indicators. The robots detect patterns such as Engulfing, Harami, and Morning Stars, using Stochastic, RSI, MFI, or CCI for signal confirmation. Trades are managed with fixed stop
This automated trading robot for MetaTrader 5 implements Smart Money Concepts (SMC) and ICT principles using a hybrid architecture. Trading logic and signal detection are processed within a native C++ DLL, while the MQL5 bridge handles trade execution and data feeding. The system identifies market structure shifts, inc
MT5Trading robotSMC / ICT / price actionBreakoutTrend following
This MetaTrader 5 utility serves as an automated trade manager focused on risk reduction. It monitors active positions and moves the Stop Loss to the entry price once a specific profit target, defined in pips, is reached. The tool allows for an optional offset to account for spreads or transaction costs. It does not in
This repository provides a collection of expert advisors for MetaTrader 4 and 5, centered on news event volatility and trend following. The primary NewsTrader tool integrates with online economic calendars to automate trade placement seconds before scheduled events. It deploys a grid of pending orders with configurable
This repository is a collection of educational Expert Advisors for MetaTrader 5, structured as a learning roadmap. It contains several standalone trading scripts, including a multi-symbol basket trader called Profit Twins, which enters buy positions on two different pairs and exits based on a combined profit percentage
This MetaTrader 5 expert advisor functions as a trade communication bridge designed to synchronize platform activity with external systems via WebSockets. It monitors the terminal position list in real-time, identifying when orders are opened, adjusted, or removed. The EA serializes trade data including ticket numbers,
Edelweiss EA is an educational trading robot for MetaTrader 4 that utilizes a multi-indicator framework to generate buy and sell signals. It combines exponential moving averages, stochastic oscillators, the awesome oscillator, ADX, and Bollinger Bands to identify market entries. Trade management includes dynamic ATR-ba
MT4Trading robotIndicator crossoverMean reversionTrend following
RemedyBot is a collection of Expert Advisors for MetaTrader 5 focused on technical indicator strategies. The primary files utilize the MQL5 standard library classes to combine trend-following signals, such as Moving Average crossovers, with volatility-based exits like the Parabolic SAR trailing stop. The project includ
MT5 Basic Risk Manager is an execution utility for the MetaTrader 5 platform that automates position sizing. It calculates the appropriate lot size based on a fixed risk percentage of the account balance and the distance between user-defined horizontal lines on the chart. Traders place lines for entry, stop loss, and t
This MetaTrader 5 Expert Advisor serves as the execution module for a three-part synchronization system connecting NinjaTrader to MT5. It functions as a trade copier and hedging manager, automatically opening positions based on signals received from a central Go-based bridge server. The EA includes specialized risk con
This MetaTrader 4 expert advisor is a basic automation script designed to reach a specific profit target. Upon initialization, the bot checks the current account profit against a hardcoded threshold. If the target is not met, it immediately executes a market buy order with a fixed lot size. It features an alert system
This MetaTrader 5 repository provides a diverse collection of automated trading systems, including tools for supply and demand, news fetching, and price action strategies. The primary expert advisor utilizes moving average crossovers and momentum filters to identify market pullbacks. It incorporates trade management fe
Grid Hedge Combine is a MetaTrader 5 expert advisor designed to automate market entries using a mixture of grid and hedging techniques. It opens initial trades and layers subsequent orders at predefined pip intervals when the price moves against the position. The EA features lot size scaling, allowing for aggressive or
Equity Protector is an account management utility for MetaTrader 5 designed to safeguard capital against significant drawdowns. It operates by monitoring account equity and balance at a user-defined frequency, such as every second. When the floating loss reaches a specified percentage or limit, the utility automaticall
This repository provides a diverse collection of MetaTrader 5 expert advisors and utility scripts for automated trading. The primary logic focuses on managing pending orders through dynamic distance adjustments, time-scheduled trade execution, and sophisticated trailing stops that operate via price ticks or millisecond
MT5CollectionBreakoutIndicator crossoverTrend following
This expert advisor acts as a communication bridge between MetaTrader 4 or 5 and external Python applications. Based on the Darwinex Labs server framework, it uses text files to exchange market data and trade commands, allowing users to implement machine learning models or reinforcement learning strategies. It includes
This MetaTrader 5 tool implements a socket server using the Windows Sockets API via a third-party DLL. It allows the platform to act as a server, listening for incoming network connections on a specified host and port. The expert advisor initializes the server and checks for incoming messages at regular intervals using
OCC Strategy MetaTrader is a technical trading robot for MetaTrader 5 that implements a crossover strategy based on a custom double-smoothed indicator. The EA identifies market entries by comparing fast and slow signal buffers to trigger buy or sell orders. It operates on a new bar basis and includes basic trade manage
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.