Synced with GitHub · updated hourly

Expert Advisor Library

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

1,141 EAs match Clear filters
1 stars

This MetaTrader 4 utility provides a technical framework for generating custom candlestick timeframes, such as two-day and three-day charts. It processes data from standard sources like H1 or M1 and organizes the results into a series array for custom chart construction. The tool is designed to handle broker start hour

MT4 Utility
Updated 6 years ago None stated GitHub repository of Custom Candlestick Builder

MQL5 Strategy Testers

by Burakdal
1 stars

This repository provides a collection of Expert Advisors for MetaTrader 5, primarily focused on technical indicator strategies and algorithmic trading examples. The main file utilizes a Moving Average signal combined with a Parabolic SAR trailing stop for automated trade management. It includes a lot-sizing module that

MT5 Collection Indicator crossoverMean reversionMulti-strategy High risk
Updated 6 years ago None stated GitHub repository of MQL5 Strategy Testers

DaFinantial MT4 Collection

by DanielAlbino
1 stars

This repository is a collection of MetaTrader 4 expert advisors and study scripts focused on technical analysis and automated execution. It includes modules for identifying support and resistance levels, templates for news-based trading, and tools for drawing visual objects based on price extremes. The projects serve a

MT4 Collection BreakoutNewsMean reversion

4xlots Extra EA Collection

by patrickingle
1 stars

This repository provides a collection of MetaTrader 4 expert advisors and libraries designed to integrate with the 4xlots risk management web service. The collection includes various trading robots such as a trend-following system, a double SMA crossover strategy, and a Martingale-based EA. It focuses on dynamic risk c

MT4 Collection Trend followingMartingaleHedging High risk
Updated 6 years ago Apache-2.0 GitHub repository of 4xlots Extra EA Collection

Mt4 Link Framework

by ChamalAB
1 stars

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

MT4 Framework & template
Updated 6 years ago Custom licence GitHub repository of Mt4 Link Framework

Engulfing Pattern EA

by JaydenTan98
1 stars

This expert advisor for MetaTrader 4 executes trades based on the engulfing candle pattern, a classic price action signal. It identifies scenarios where the current candle completely covers the previous candle's range and filters entries using a Moving Average to ensure alignment with the prevailing trend. The EA place

MT4 Trading robot Trend followingSMC / ICT / price action
Updated 6 years ago None stated GitHub repository of Engulfing Pattern EA

MQL5 Strategy Collection

by pasindubawantha
1 stars

This repository provides a collection of MetaTrader 5 expert advisors, including standard MetaQuotes examples and specialized indicator-based bots. The expert advisors utilize technical analysis tools like MACD, Moving Averages, and Parabolic SAR to automate market entries. Risk management is handled through user-defin

MT5 Collection Trend followingIndicator crossover
Updated 6 years ago None stated GitHub repository of MQL5 Strategy Collection

Expert Trading Robots MQL5

by Kumbirai-Bodzo
1 stars

This repository provides a collection of MetaTrader 5 expert advisor templates and functional code modules. Designed as an educational resource, the code demonstrates how to implement technical indicators like Bollinger Bands, Bears Power, and the Average True Range within the MQL5 environment. The main file serves as

MT5 Collection Mean reversion
Updated 6 years ago None stated GitHub repository of Expert Trading Robots MQL5

MQL5 EA Collection

by tom-field
1 stars

This repository serves as a collection of MetaTrader 5 expert advisors and educational scripts. It includes a variety of automated trading systems based on common technical indicators such as Moving Averages, RSI, and Stochastics. The collection features specific strategies including Bill Williams techniques and trend-

MT5 Collection Trend followingGridMartingale High risk
Updated 6 years ago None stated GitHub repository of MQL5 EA Collection

Fujii MQL4 EA Collection

by FujiiKairi
1 stars

This repository is a collection of over forty MetaTrader 4 expert advisors covering various trading styles and market conditions. It features the EA31337 multi-strategy framework alongside specialized bots for currency strength, New York session breakout patterns, and Heikin Ashi trend following. The collection include

MT4 Collection Multi-strategyBreakoutTrend following High risk
Updated 6 years ago None stated GitHub repository of Fujii MQL4 EA Collection
1 stars

This MetaTrader 5 expert advisor serves as a bridge between the trading terminal and an external Python API server. It allows users to control the terminal and manage trades through remote infrastructure using JSON-based communication. The code includes specific functions for managing trailing take profits on active po

MT5 Copier & bridge

Order Management MT4

by jmahiques
1 stars

This MetaTrader 4 expert advisor functions as a trade management panel for manual traders. It features an on-chart user interface with buttons for executing buy and sell orders. The tool automates trade exits using multiple stages, including standard stop loss and take profit levels, as well as partial take profit and

MT4 Trade manager
Updated 6 years ago None stated GitHub repository of Order Management MT4
1 stars

This MetaTrader 4 expert advisor functions as a data bridge between the trading platform and external applications. It utilizes the WebRequest function to send real-time Bid and Ask prices to a local web server via POST requests every two seconds. Additionally, it can retrieve and parse event data from the server using

MT4 Copier & bridge
Updated 6 years ago None stated GitHub repository of MQL4 HTTP Data Collector
1 stars

This collection for MetaTrader 4 provides a suite of trade management and utility scripts. The primary expert advisor automates the application of stop loss and take profit levels for existing trades. It features a sophisticated trailing stop system with dedicated settings for major forex pairs, gold, and silver. Users

MT4 Collection
1 stars

Manual Trading Tool MTT is a MetaTrader 4 utility designed to assist traders in managing manual positions. It features a graphical dashboard that displays live order data, including accumulated profits, swap costs, and position sizes for buy and sell orders. The tool monitors stop loss and take profit states while prov

MT4 Utility
Updated 6 years ago None stated GitHub repository of Manual Trading Tool MTT
1 stars

This MetaTrader 4 repository contains a collection of expert advisors, including implementations of the standard MACD Sample and Moving Average strategies. The primary MACD robot enters trades based on MACD signal line crossovers filtered by an exponential moving average trend component. Risk management is handled thro

MT4 Collection Indicator crossoverTrend following
Updated 7 years ago None stated GitHub repository of MQL4 Trader Collection
1 stars

This MetaTrader 5 utility identifies and visualizes horizontal levels based on the Ichimoku Kinko Hyo indicator components. It specifically scans for flat segments of the Tenkan Sen, Kijun Sen, and Senkou Span B lines where values remain constant for a user-defined number of consecutive periods. The software draws thes

MT5 Utility
Updated 7 years ago None stated GitHub repository of Ichimoku Horizontal Lines

Random Market EA

by wiktorkisielewski
1 stars

This MetaTrader 5 expert advisor is designed for XAUUSD (Gold) trading, utilizing a purely random entry strategy. It opens one position at a time in a random direction, determined by a randomization function. The robot manages trades using a fixed stop loss and a trailing stop mechanism to limit potential losses while

MT5 Trading robot
Updated 7 years ago None stated GitHub repository of Random Market EA

DWater EA

by leet123
1 stars

DWater EA is an automated trading robot for MetaTrader 5 that uses a trend-following approach based on price speed and position relative to trendlines. It utilizes smoothed moving averages across dual timeframes to identify entries. The strategy incorporates a grid-based recovery mechanism, adding positions at fixed in

MT5 Trading robot Trend followingGridMartingale High risk
Updated 7 years ago None stated GitHub repository of DWater EA
1 stars

Tao Stock Simple Arrow is a MetaTrader 4 expert advisor that serves as a visual signal generator for price breakouts. The program identifies the highest and lowest price levels within the most recent 100 candles. If the current price breaks these established boundaries, it places buy or sell arrow objects directly on t

MT4 Utility Breakout
Updated 7 years ago None stated GitHub repository of Tao Stock Simple Arrow
1 stars

This repository contains a large collection of over 300 MetaTrader 4 expert advisors and scripts, including standard MetaQuotes samples and custom experimental tools. The primary file, Algo Prueba, utilizes the Relative Vigor Index (RVI) to determine market entries and exits. It features basic trade management by filte

MT4 Collection Indicator crossover
Updated 7 years ago None stated GitHub repository of Algo Prueba FX Collection
1 stars

This MetaTrader 4 repository contains a collection of trading tools, primarily featuring an automated RSI-based grid expert advisor. The system enters positions when the Relative Strength Index exceeds defined thresholds and manages them using a grid strategy with martingale lot multiplication. Risk controls include a

MT4 Collection GridMartingaleMean reversion High risk
1 stars

This repository contains a collection of MetaTrader 5 expert advisors developed for various market conditions and strategies. The files include implementations of trend-following systems like the Dunnigan NRTR, signal-based dashboards using multi-indicator confirmation, and experimental artificial intelligence models.

MT5 Collection Trend followingIndicator crossoverAI / machine learning
Updated 7 years ago None stated GitHub repository of MQL5 EA Collection FLCS

Laguna EA Collection

by dannylius
1 stars

Laguna EA is an automated trading robot for MetaTrader 5 that utilizes the Average Directional Index and Exponential Moving Averages to identify market trends. It filters entries by requiring a minimum ADX value to ensure sufficient trend strength before executing trades. The system manages risk with fixed lot sizing a

MT5 Collection Trend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Laguna EA Collection

TFEX Competition 555

by assazzin
1 stars

This MetaTrader 4 expert advisor is an automated trading robot developed for a 2019 trading competition. It executes trades based on a price range breakout strategy, calculating entry levels from the high and low values of previous candles. The algorithm filters entries using a 10-period Exponential Moving Average and

MT4 Trading robot Trend followingBreakout
Updated 7 years ago None stated GitHub repository of TFEX Competition 555
1 stars

This repository is a collection of MetaTrader 5 expert advisors and scripts designed as educational materials for a beginner-to-master MQL5 course. The codebase includes various modules demonstrating fundamental programming elements, such as arithmetic operations, loops, arrays, and data types. The included expert advi

MT5 Collection
Updated 7 years ago None stated GitHub repository of Udemy MQL5 Course Examples

Pivot Points EA

by Skryrq
1 stars

This MetaTrader 4 expert advisor automates trading based on pivot point technical levels. It focuses on systematic trade execution with integrated risk management, featuring automated lot sizing calculated as a percentage of account balance relative to stop loss distance. The EA includes a trailing stop mechanism that

MT4 Trading robot Mean reversionBreakout
Updated 7 years ago None stated GitHub repository of Pivot Points EA
1 stars

This expert advisor serves as a communication bridge between MetaTrader 5 and external applications using the ZeroMQ messaging protocol. It functions as a server that listens for incoming requests on a specified TCP port, enabling data exchange and command execution from external scripts such as Python. The tool utiliz

MT5 Copier & bridge
1 stars

This MetaTrader 5 collection features several automated trading robots focused on the forex market. The repository includes multiple expert advisors that utilize different technical analysis methods, such as Bollinger Bands, ADX, and Stochastic oscillators. Additionally, one module integrates the MetaTrader 5 economic

MT5 Collection Indicator crossoverNewsMean reversion
Updated 7 years ago None stated GitHub repository of Hyper Trading EA Collection

Junbari MT4

by fujishuu
1 stars

Junbari MT4 is a trend-following expert advisor for MetaTrader 4 that identifies trade entries based on price breakouts. The system monitors the highest highs and lowest lows over a specific lookback period to determine market direction. It enters positions when the current price breaks a historical level and meets a m

MT4 Trading robot Trend followingBreakout
Updated 7 years ago None stated GitHub repository of Junbari MT4
1 stars

This collection of MetaTrader 4 expert advisors serves as a practice repository for automated trading scripts. It features several distinct strategies, including moving average crossovers, Bollinger Band mean-reversion, and RSI-based entries. A core component of the repository is a martingale-style system that layers o

MT4 Collection Indicator crossoverMartingaleGrid High risk
Updated 7 years ago None stated GitHub repository of MQL4 Practice Collection

Classic Winner

by kkinzler
1 stars

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

MT4 Framework & template
Updated 7 years ago None stated GitHub repository of Classic Winner
1 stars

This MetaTrader 5 repository contains a collection of experimental expert advisors focused on trend-following and crossover logic. The primary codebase utilizes the Average Directional Index (ADX) to gauge trend strength and Moving Average crossovers to determine trade entries. The included tools feature hardcoded stop

MT5 Collection Trend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Expert Advisor Experiment

MACD MA Cross

by b79528
1 stars

MACD MA Cross is a MetaTrader 4 expert advisor that automates entries based on the alignment of MACD signals and Moving Average crossovers. The strategy triggers trades when indicators confirm a trend, using Linear Weighted Moving Averages (LWMA) for direction. The EA features an unconventional exit strategy where posi

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

Tema Atr EA

by marcellmanfrin
1 stars

This MetaTrader 5 expert advisor implements a mean-reversion strategy using the Triple Exponential Moving Average and Average True Range indicators. It constructs dynamic volatility bands by applying a multiplier to the ATR value relative to the TEMA. The robot enters a sell position when the market price breaks above

MT5 Trading robot Mean reversion
Updated 7 years ago None stated GitHub repository of Tema Atr EA
1 stars

This repository provides a collection of expert advisors for MetaTrader 4 and MetaTrader 5. The primary MetaTrader 5 file implements Mamdani fuzzy logic, processing three Relative Strength Index (RSI) inputs to determine market entries. The collection also includes several MetaTrader 4 experts focused on grid-based mon

MT4MT5 Collection AI / machine learningGridMean reversion High risk
Updated 7 years ago None stated GitHub repository of Ballmdr EA Collection

Fuzzy Trade EA Collection

by TsutomuSakata01
1 stars

This collection for MetaTrader 4 and 5 includes various expert advisors exploring fuzzy logic and standard technical indicators. The primary logic demonstrated in the source files utilizes Simple Moving Averages to identify trend direction and price positioning. It features standard risk controls including fixed lot si

MT4MT5 Collection Trend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Fuzzy Trade EA Collection
1 stars

This collection of MetaTrader 4 and 5 expert advisors provides various utilities for trade management and entry automation. The primary tool, Multi TP, monitors specific order tickets to execute partial closes and modify stop losses when price targets are hit. Additional scripts automate entries based on price action p

MT4MT5 Collection BreakoutMean reversionMulti-strategy

Hattyuu Samurai Zero

by bushidofx
1 stars

Hattyuu Samurai Zero is a manual trading panel for MetaTrader 4 that provides a graphical user interface for order execution and management. Built using the mt4gui2 library, it features on-chart buttons for entering and exiting trades, along with dedicated controls for trailing stops. The utility displays real-time met

MT4 Utility
Updated 7 years ago None stated GitHub repository of Hattyuu Samurai Zero

Richer Machine

by SeedMQL
1 stars

Richer Machine is a MetaTrader 4 expert advisor designed for automated breakout trading using Bollinger Bands and custom price levels. It initiates trades when price closes outside the bands, subsequently placing Buy Stop and Sell Stop orders at intervals defined by a Fibonacci-width parameter. The system manages risk

MT4 Trading robot BreakoutGrid High risk
Updated 7 years ago None stated GitHub repository of Richer Machine

Pricetag EA Collection

by KotaroHashimoto
1 stars

This collection for MetaTrader 4 includes various expert advisors, with the primary HL Monday Order EA focusing on weekly price ranges. The software identifies Monday's high and low prices to set automated entry levels, stop loss positions, and take profit targets using configurable pip adjustments. The repository incl

MT4 Collection BreakoutMartingaleGrid High risk
Updated 7 years ago None stated GitHub repository of Pricetag EA Collection

Proper Bot

by kmugglet
1 stars

Proper Bot is a MetaTrader 4 expert advisor that utilizes a triple moving average crossover for trend detection combined with a manual grid management system. It filters entries based on volume and specific price levels. When a trade moves against the initial position, the EA opens additional orders at predefined point

MT4 Collection Indicator crossoverGridMartingale High risk
Updated 7 years ago None stated GitHub repository of Proper Bot

Breakout Exp

by galaxysp1
1 stars

Breakout Exp is a MetaTrader 4 expert advisor that implements a breakout-based trading strategy. It utilizes adjustable fast and slow period parameters to determine market entry and exit points. The system manages trades using fixed lot sizes and identifies its own positions via a unique magic number. It includes funct

MT4 Trading robot Breakout
Updated 7 years ago None stated GitHub repository of Breakout Exp

This MetaTrader 4 repository contains a collection of automated trading tools, primarily centered on the Martingale Levels Expert. The system employs a grid-based strategy that places stop orders at specific intervals and manages them using trailing stops. It utilizes martingale lot scaling, where subsequent order size

MT4 Collection GridMartingaleHedging High risk

TrendLine Trade Robot

by szczudlo6
1 stars

This MetaTrader 4 expert advisor automates trading based on trendline analysis. It identifies price trends within a specific lookback period and executes entries when price aligns with these detected structures. The robot manages risk through a percentage-based money management system, requiring a stop loss and minimum

MT4 Trading robot Trend following
Updated 7 years ago None stated GitHub repository of TrendLine Trade Robot

Quanta EA

by shibakk
1 stars

Quanta is an automated trading robot for MetaTrader 4 and MetaTrader 5 that executes trades based on external indicator signals. The EA utilizes the WebRequest function to download data and HTML files from a remote server to guide its trading logic. For risk control, the system provides parameters for manual lot sizing

MT4MT5 Trading robot Trend following
Updated 7 years ago None stated GitHub repository of Quanta EA
1 stars

This MetaTrader 4 repository provides a set of tools and scripts designed around Pivot Point price levels. It includes a module for drawing pivots on the chart and a statics Expert Advisor that performs historical analysis. The statics tool scans thousands of candles to determine if price successfully touched weekly pi

MT4 Collection Mean reversion
Updated 7 years ago None stated GitHub repository of Pivot Points MT4 Collection

Simple RSI

by dominiconorton
1 stars

This expert advisor for MetaTrader 5 provides a foundational implementation of the Relative Strength Index (RSI). It calculates the RSI value using a standard 14-period setting on the current chart and timeframe. The code focuses on data retrieval and processing, using the iRSI function and price buffers to determine t

MT5 Utility
Updated 7 years ago MIT GitHub repository of Simple RSI

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

Compare brokers