Gartal Inc is a modular trading automation framework and strategy development template for MetaTrader 4. It provides a structured environment for testing various entry and exit logic, including Fair Value Gaps, moving average crossovers, and Donchian channels. The repository focuses on backtesting workflows, featuring
MT4Framework & templateSMC / ICT / price actionIndicator crossoverTrend following
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
This MetaTrader 5 expert advisor serves as a modular boilerplate and educational framework for algorithmic trading development. It provides a base structure for students to build custom execution strategies, transitioning from manual price action to automated logic. The current implementation includes basic risk manage
This MetaTrader 5 expert advisor serves as a template for a master-child trading architecture. It is designed to work in conjunction with a separate Master EA, from which it receives instructions via global terminal variables. The EA monitors parameters such as remote pause states, maximum lot sizes, risk settings, and
This MetaTrader 5 expert advisor acts as a modular framework for algorithmic trading using object-oriented principles. It includes a functional strategy that enters trades based on RSI levels and Moving Average crossovers. The system manages exits through automated stop loss, take profit, break-even adjustments, and tr
This MetaTrader 5 expert advisor serves as a modular framework and starter template for developing trend-following trading systems. It utilizes a clean architecture to separate signal logic, risk management, and order execution. The included demo logic implements a standard moving average crossover strategy to enter tr
MQL5 EA CI/CD Template is a development framework for MetaTrader 5 designed to automate the lifecycle of Expert Advisors. It implements modern software engineering practices through continuous integration and deployment pipelines using GitHub Actions. The system includes tools for automated unit testing, static code an
This MetaTrader 5 framework integrates artificial intelligence models into trading strategies through the OpenRouter API. It provides a structured set of libraries for managing multiple AI providers, handling API fallback logic, and parsing natural language outputs into executable trade commands. The included demo expe
This MetaTrader 5 expert advisor serves as an educational framework for developing trading robots using object-oriented programming. It demonstrates how to organize trading logic into modular classes for symbol handling, order execution, and strategy management. The EA incorporates two distinct price action strategies
This MetaTrader 5 library provides developers with a mechanism to detect the opening of a new bar across different timeframes. It serves as a programming utility rather than a standalone trading strategy. The repository includes an include file and a test expert advisor demonstrating two detection methods: one for mult
MALE5 is a machine learning framework for MetaTrader 5 designed to help developers create trading systems using a Python-like syntax. It provides a suite of predictive models including linear regression, decision trees, support vector machines, and neural networks. The library includes tools for data collection, prepro
This MetaTrader 5 expert advisor serves as a modular template designed for integrated risk management. It functions as a framework rather than a standalone trading robot, focusing primarily on capital protection parameters. The tool allows users to define the percentage of the account balance to risk per position and s
This collection of MetaTrader 5 tools focuses on automated market structure analysis and Smart Money Concepts. It provides modular templates for detecting swing points, identifying Breaks of Structure (BOS), and mapping price action across multiple timeframes. The codebase includes logic for Fair Value Gaps and Premium
This MetaTrader 4 repository hosts a collection of expert advisors based on a standardized automated trading template. The source files are tailored for EURUSD on the M15 timeframe, offering a modular structure for integrating custom entry and exit signals. It includes comprehensive risk management settings, allowing u
This MetaTrader 5 expert advisor provides a foundation for automated trading using a multi-timeframe framework. It utilizes the Average True Range (ATR) indicator to determine dynamic stop loss levels and calculates take profit targets based on a predefined risk-to-reward ratio. The system includes built-in risk contro
MT4 Common Functions Library is a developer-focused utility framework for the MetaTrader 4 platform. It provides a collection of encapsulated helper functions designed to simplify common programming tasks in MQL4. The primary functionality involves a flexible file management system capable of creating, reading, and app
This MetaTrader 5 framework provides tools for integrating machine learning models with algorithmic trading. It features scripts designed to generate training data by exporting price action and technical indicators like RSI, MACD, and Stochastics into CSV formats. The system interfaces with external neural network mode
MT5Framework & templateAI / machine learningTrend following
This MetaTrader 5 expert advisor serves as a template and demonstration for automated trading systems. It implements a basic moving average crossover strategy using two configurable periods to determine market entries. The code is structured around a custom trading class that provides utility functions for analyzing hi
The X-15 Framework is a modular development template for creating MetaTrader 4 expert advisors. It serves as a foundation for programmers to build custom trading systems by providing pre-built modules for order management, signal processing, and trade filters. The included template features standard risk management con
This MetaTrader 5 expert advisor serves as a structural framework for algorithmic trading development. It utilizes a modular approach by importing strategy logic from external header files to handle trade execution. The core code provides basic input parameters for trade volume, magic numbers, and price deviation. Sinc
This repository provides a framework for integrating machine learning and quantum physics models with MetaTrader 4 and 5. It aims to implement a Quantum Genetic Algorithm and Support Vector Machine for feature selection and price classification. The system utilizes a ZeroMQ bridge to connect Python 3.8 with the trading
Mt4 Link is an MQL4 server-client communications framework designed for MetaTrader 4. It enables the terminal to interact with external web services via a centralized command system. The framework includes modules for file management, update speed control, and execution delays. A sample implementation demonstrates how
Classic Winner is an educational MetaTrader 4 expert advisor designed as a structural framework for automated forex trading. The repository provides a template for managing trades with built-in risk controls, including fixed percentage lot sizing and Average True Range based exit points. It features time-of-day filteri
This MetaTrader 4 repository provides a collection of utility scripts intended for personal use. Its main Expert Advisor functions as a logic framework for developers, specifically designed to execute code exactly once at the start of each new price bar. By comparing the current bar time to the last recorded timestamp,
This repository provides a specialized framework and example expert advisors for developing Renko-based trading systems on the MetaTrader 5 platform. It includes a dedicated MQL5 header library that simplifies integration with the Median Renko indicator bundle. The framework handles the acquisition of chart settings au
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.