Synced with GitHub · updated hourly

Expert Advisor Library

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

1,978 EAs
17 stars

This repository contains a collection of MetaTrader 4 expert advisors, including Indo Run, Forex Hacked, and several grid-based strategies. The primary EA, Indo Run, features advanced time-based filtering for specific weekdays, month-end offsets, and news events like Non-Farm Payrolls. It manages trades using a basket

MT4 Collection GridNewsMartingale High risk
Updated 8 years ago None stated GitHub repository of Ling MQL4 EA Collection

Expert MT5 Collection

by GeneralTradingSarl
16 stars

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

MT5 Collection Trend followingBreakoutGrid High risk
Updated 4 days ago None stated GitHub repository of Expert MT5 Collection

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

Onews9 News Trader

by oleg518
16 stars

This MetaTrader 5 expert advisor is designed for news trading by managing pending orders around scheduled economic events. The robot places orders at a specific start time and dynamically shifts their distance from the market price until the news release triggers a breakout. It features a trailing stop that can be exec

MT5 News trading NewsBreakout
Updated 2 years ago None stated GitHub repository of Onews9 News Trader

Max Profit

by poluxbrayz
16 stars

Max Profit is a trend-following expert advisor for MetaTrader 4, specifically optimized for the M1 timeframe. It utilizes a combination of technical indicators, including Parabolic SAR and MACD, to identify market trends and execute trades. The software includes dedicated modules for lot management, symbol analysis, an

MT4 Trading robot Trend followingIndicator crossover
Updated 2 years ago AGPL-3.0 GitHub repository of Max Profit
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
16 stars

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

MT5 Collection Indicator crossoverMartingaleMean reversion High risk

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

Mansour Bot

by MShokry
16 stars

This MetaTrader 4 expert advisor executes automated trades on the forex market by combining signals from various technical indicators. The logic incorporates Average Directional Index analysis across multiple timeframes, alongside Ichimoku and Stochastic oscillators. Users can configure lot sizing, take profit, and sto

MT4 Trading robot Indicator crossoverMulti-strategyMartingale High risk
Updated 7 years ago None stated GitHub repository of Mansour Bot

Elephant Walk

by erlonfs
16 stars

Elephant Walk is a MetaTrader 5 expert advisor based on the trading methodology of Oliver Velez. It automates entries using moving average crossovers and price action patterns often associated with large bars or elephant candles. The EA provides extensive trade management options, including trailing stops, break-even a

MT5 Trading robot Indicator crossoverSMC / ICT / price action
Updated 7 years ago MIT GitHub repository of Elephant Walk

Mad Pound Profits

by Syakyr
16 stars

Mad Pound Profits is a MetaTrader 4 expert advisor that automates trading based on structural breakouts and price action. The system utilizes time-specific analysis windows throughout the day to identify entry opportunities. It incorporates technical elements such as Fibonacci levels, momentum indicators, and mean reve

MT4 Trading robot BreakoutSMC / ICT / price actionMartingale High risk Archived
Updated 7 years ago None stated GitHub repository of Mad Pound Profits
16 stars

This repository provides a collection of MetaTrader 4 expert advisors, centered around the OverLord robot which utilizes logistic regression models. OverLord determines entries by calculating price directionality over various tick counts and analyzing moving average slopes against hardcoded coefficients. In addition to

MT4 Collection AI / machine learningIndicator crossoverTrend following
Updated 8 years ago None stated GitHub repository of OverLord MQL4 Code Samples

Gold Pro Scalper

by n30dyn4m1c
15 stars

This collection of MetaTrader 5 expert advisors focuses on mean-reversion and breakout strategies for gold (XAUUSD) on the M1 timeframe. The primary logic identifies statistical extremes using Z-Score calculations to trade price snap-backs. It includes a TickRobust variant designed to filter execution noise and a dual-

MT5 Collection Mean reversionBreakoutScalping

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

Hybrid Swing EA

by clevergoldfox
15 stars

This MetaTrader 4 expert advisor executes a regime-gated breakout strategy specifically optimized for XRP and ETH markets. It operates on the H4 timeframe, utilizing Bollinger Bands for entry signals coupled with ADX and ATR filters to identify high-volatility trend environments. The EA employs a one-shot entry approac

MT4 Trading robot BreakoutTrend following
Updated 8 months ago None stated GitHub repository of Hybrid Swing EA
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

Phase 404 EA

by Musyimi97
14 stars

Phase 404 EA is a MetaTrader 5 robot that automates a mechanical Smart Money Concepts strategy including Wyckoff logic and liquidity sweeps. It identifies market structure shifts and enters trades during London or New York kill zones using Fibonacci Optimal Trade Entry levels. The expert advisor manages risk through pe

MT5 Trading robot SMC / ICT / price action
Updated 5 months ago MIT GitHub repository of Phase 404 EA

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

This repository contains a collection of MetaTrader 4 expert advisors developed for MQL4 programming tutorials. It includes various trading strategies ranging from simple moving average crossovers to complex martingale and grid systems. The provided examples demonstrate order layering with configurable lot multipliers,

MT4 Collection MartingaleGridIndicator crossover High risk
Updated 5 years ago None stated GitHub repository of MQL4 Tutorial EA Collection

MultiTrader

by mazmazz
14 stars

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

MT4MT5 Trading robot GridMulti-strategy High risk
Updated 5 years ago GPL-3.0 GitHub repository of MultiTrader

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

Docker MT5 SmartLever

by SmartLever
13 stars

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

MT5 Collection Multi-strategyIndicator crossoverGrid High risk
Updated 3 years ago None stated GitHub repository of Docker MT5 SmartLever

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

This MetaTrader 5 repository features a diverse collection of automated trading strategies, including indicator-based scalpers and price action robots. The experts utilize technical filters such as Average True Range periods and baseline moving averages to identify entry signals. Key risk management features integrated

MT5 Collection Trend followingBreakoutScalping

Session Sauce

by jblanked
13 stars

Session Sauce is an automated expert advisor for MetaTrader 4 designed to trade market session transitions and price extremes. It allows users to configure entries based on session opens, highs, and lows for the New York, London, and Asian sessions. The EA includes risk management features such as fixed stop losses, ta

MT4 Trading robot BreakoutMean reversionMartingale High risk
Updated 3 years ago None stated GitHub repository of Session Sauce
13 stars

This MetaTrader 4 expert advisor functions as a communication interface between the terminal and an external Python-based reinforcement learning model. It utilizes deep Q-learning to determine trading actions at every price tick, passing market data through local files to the external script. The system implements a ma

MT4 Trading robot AI / machine learningMartingale High risk

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

Project Eingana

by ThePathsOfSaga
13 stars

This MetaTrader 4 repository contains a collection of expert advisors developed for the Eingana social trading project. It features multiple strategies, including a Keltner Channel-based mean-reversion system for pairs like EURNZD and EURAUD, alongside a EURUSD scalper. The robots typically enter trades when price acti

MT4 Collection Mean reversionScalping
Updated 6 years ago GPL-3.0 GitHub repository of Project Eingana
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

MonsterFX Reliable Trader

by NadirAliOfficial
12 stars

This MetaTrader 5 expert advisor combines automated Forex trading with a Discord notification system via a Python Flask webhook. It executes a dual-timeframe strategy using EMA crossovers, a 200-period trend filter, RSI, and VWAP on the M5 and M15 charts. The EA manages trades with ATR-based stop loss and take profit l

MT5 Trading robot Indicator crossoverTrend followingMean reversion

JBlanked MQL Library

by jblanked
12 stars

This collection of expert advisors for MetaTrader 4 and 5 provides various automated strategies for forex markets. A core component is the Gareth Range Breakout, which defines specific time-based price zones and executes trades when price breaks those boundaries. It includes risk controls such as stop loss and take pro

MT4MT5 Collection BreakoutMulti-strategyGrid High risk
Updated 11 days ago GPL-3.0 GitHub repository of JBlanked MQL Library

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

Persistent Anti

by EarnForex
12 stars

Persistent Anti is a technical expert advisor for MetaTrader 4 and 5 that attempts to exploit the statistical persistence or anti-persistence of price trends. It analyzes a user-defined number of historical candles to determine if the market is currently repeating or reversing its previous directional movements. The ro

MT4MT5 Trading robot Mean reversion
Updated 1 year ago Apache-2.0 GitHub repository of Persistent Anti

RL Agent Trader

by rezakarbasi
12 stars

RL Agent Trader is an expert advisor for MetaTrader 5 that integrates with a Python-based reinforcement learning environment via network sockets. It implements a breakout strategy based on the highest and lowest prices of previous candles. The core functionality relies on a Deep Q-Network (DQN) in Python to dynamically

MT5 Trading robot BreakoutAI / machine learning
Updated 2 years ago None stated GitHub repository of RL Agent Trader

This collection of expert advisors for MetaTrader 4 and 5 provides various automated strategies based on price action and technical indicators. The primary EA utilizes a moving average crossover system with switchable modes for different market conditions. It features a martingale lot-scaling system for sideways market

MT4MT5 Collection Indicator crossoverMartingaleGrid High risk
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

Fimathe EA

by yolisses
12 stars

Fimathe EA is a MetaTrader 5 robot designed to automate the Fimathe trading technique. It replaces manual channel drawing by analyzing a user-defined range of historical candles to determine reference channels and neutral zones. The system identifies price partitions and uses the median distance to set entry levels. Fo

MT5 Trading robot BreakoutTrend followingSMC / ICT / price action
Updated 5 years ago None stated GitHub repository of Fimathe EA
12 stars

This MetaTrader 4 expert advisor implements the No Nonsense Forex (NNFX) trading algorithm. It utilizes a modular structure comprising a baseline indicator for trend direction, dual confirmation signals, and a volume filter to detect market volatility. The system includes specific NNFX rules such as the seven-candle ru

MT4 Trading robot Trend following

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