Synced with GitHub · updated today

Free MT4 & MT5 expert advisors

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

New EAs by RSS
840 EAs match Clear filters

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

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

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

KD AG Basket Trading

by adiarthagriadhi
1 stars

This MetaTrader 4 expert advisor implements a multicurrency basket trading strategy based on price action. It evaluates multiple currency pairs simultaneously using a scoring system that compares current price levels to opening prices across five-minute and fifteen-minute timeframes. The robot manages entries automatic

MT4 Trading robot Trend followingMulti-strategy
Updated 7 years ago None stated GitHub repository of KD AG Basket Trading

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

Usd5 3 EA

by monakafx
1 stars

Usd5 3 EA is a MetaTrader 4 expert advisor that executes trades based on specific candlestick sequences and trend direction. It identifies patterns of three consecutive bullish or bearish candles followed by a reversal to signal potential entries. The robot utilizes a 25-period Simple Moving Average on the H4 timeframe

MT4 Trading robot Trend followingMean reversion
Updated 7 years ago MIT GitHub repository of Usd5 3 EA

Setup Da Paula

by paulohfera
1 stars

Setup Da Paula is a MetaTrader 5 expert advisor that automates a technical trading strategy based on Bollinger Bands. The robot enters trades when specific price conditions are met relative to the bands, incorporating a volatility filter that checks the minimum band width in points. It manages risk through a fixed stop

MT5 Trading robot Mean reversionBreakout
Updated 7 years ago None stated GitHub repository of Setup Da Paula
1 stars

This Expert Advisor for MetaTrader 5 implements a trend-following strategy based on four moving averages. It determines market direction to trigger buy or sell entries during specified trading hours. The robot features time-restricted operations, allowing trade execution only between set start and end times. Risk manag

MT5 Trading robot Trend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Four Moving Average Advisor

Auto Mini Dolar

by ibbxinovacao
1 stars

This MetaTrader 5 expert advisor automates trading for the Brazilian Mini Dollar market. It operates as an intraday robot, utilizing specific time-based filters to control when the system can open new positions and when it must liquidate all open trades before the daily market close. The EA includes standard risk contr

MT5 Trading robot
Updated 7 years ago None stated GitHub repository of Auto Mini Dolar

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

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

Span Model Day Trader

by KC-Kamioka
1 stars

Span Model Day Trader is a MetaTrader 4 expert advisor that monitors market signals based on the Span Model and Super Bollinger technical indicators. The code specifically focuses on the USDJPY currency pair, evaluating the relationship between blue and red spans derived from the Ichimoku Kinko Hyo indicator. It tracks

MT4 Trading robot Trend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Span Model Day Trader

Mark One FX Algo

by jblewdv
1 stars

This MetaTrader expert advisor implements a trading strategy based on Bollinger Bands. It primarily operates on the daily timeframe, using the indicator's upper and lower bands to identify potential trade entries. The robot includes standard risk management parameters, such as a fixed stop loss and take profit for ever

MT4 Trading robot Mean reversion
Updated 7 years ago None stated GitHub repository of Mark One FX Algo

Humza Final EA

by humzama
1 stars

This MetaTrader 4 expert advisor implements a multi-strategy approach to automated trading using several technical indicator combinations. It features distinct logic for long and short positions, utilizing the Relative Strength Index, Moving Average Convergence Divergence, and Ichimoku Kinko Hyo. Buy signals are genera

MT4 Trading robot Indicator crossoverMulti-strategyTrend following
Updated 7 years ago None stated GitHub repository of Humza Final EA

Take Profit Oil Arbitrage

by iceandfire1981
1 stars

This MetaTrader 4 expert advisor implements a pairs trading or statistical arbitrage strategy primarily designed for energy commodities like USOIL and UKOIL. It monitors the price differential between two correlated assets over a specific lookback period to identify mean-reversion opportunities. The robot executes simu

MT4 Trading robot ArbitrageMean reversionHedging
Updated 7 years ago None stated GitHub repository of Take Profit Oil Arbitrage
1 stars

This expert advisor for MetaTrader 4 automates trading based on the Pin Bar candlestick pattern. It identifies entries by evaluating candle geometry, specifically the ratio of the body to the total length and the minimum size of the candle. Users can adjust the sensitivity of the detection logic and limit the maximum n

MT4 Trading robot SMC / ICT / price action
Updated 7 years ago None stated GitHub repository of Pin Bar Trade Robot

MA Crossover

by Daiwv
1 stars

This MetaTrader 4 expert advisor executes trades based on the crossover of two Simple Moving Averages. It identifies trend shifts by comparing the relationship between a fast and a slow moving average over the two most recent bars. The robot enters a buy position and closes existing sell trades when the fast MA crosses

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

Arra

by ainihenjiu
1 stars

Arra is an automated trend-following expert advisor for MetaTrader 4 that utilizes a moving average crossover strategy paired with a volatility filter. It triggers trades when a short-term simple moving average crosses a long-term SMA, but only if the current Average True Range indicates higher volatility than a previo

MT4 Trading robot Indicator crossoverTrend following
Updated 7 years ago None stated GitHub repository of Arra

Engulfing One

by WebDevPDX
1 stars

This MetaTrader 4 expert advisor implements a basic price action strategy based on bullish and bearish engulfing candlestick patterns. It identifies trade signals by comparing the current candle body to the previous one at the start of each new bar. The logic includes dynamic stop loss placement at recent candle extrem

MT4 Trading robot SMC / ICT / price action
Updated 7 years ago None stated GitHub repository of Engulfing One

HGSS Candle Bob

by odrisb
1 stars

HGSS Candle Bob is an automated trading system for MetaTrader 4 that identifies trade setups using candle sequences and external library signals. It evaluates market conditions via the HGI library to detect trends and ranges, allowing for both trend-following and pullback strategies. Risk management includes fixed lot

MT4 Trading robot Trend followingMean reversionMulti-strategy
Updated 7 years ago None stated GitHub repository of HGSS Candle Bob

Oil Spread Arbitrage

by leiyunfei
1 stars

This MetaTrader 4 expert advisor implements a spread trading strategy between two correlated commodities, specifically targeting USOIL and UKOIL. It utilizes timer-based logic to monitor price differences at set intervals rather than relying on standard chart candles. The robot enters trades based on volatility thresho

MT4 Trading robot Arbitrage
Updated 7 years ago None stated GitHub repository of Oil Spread Arbitrage

XGBoost FX Trading

by ytanaka6174
1 stars

This expert advisor for MetaTrader 4 utilizes a bridge to the R programming environment to implement machine learning for currency trading. It leverages pre-trained XGBoost models to identify trade opportunities based on technical features such as Average True Range, Bears Power, and Bulls Power indicators. The robot m

MT4 Trading robot AI / machine learningScalpingTrend following
Updated 8 years ago None stated GitHub repository of XGBoost FX Trading
1 stars

This MetaTrader 4 expert advisor executes trades based on short-term price momentum across three consecutive candles. It monitors closing prices to identify price direction, initiating a buy order when prices are rising or a sell order when prices are falling. The system includes configurable fixed stop loss and take p

MT4 Trading robot Trend following

Quantum Reverse EA

by nohros
1 stars

The Quantum Reverse EA is a low-frequency counter-trend trading robot developed for the MetaTrader 5 platform. It aims to identify potential market reversals to enter trades against the current trend direction. Based on the provided repository contents, the expert advisor is in a foundational state, as the main source

MT5 Trading robot Mean reversion

Falcon F

by VjSwamy
1 stars

Falcon F is an automated trading system for MetaTrader 4 that utilizes supervised deep learning and an external Decision Support Centre powered by R to identify market inefficiencies. It analyzes indicator patterns across M1, M15, and H1 timeframes to predict price changes and trade direction up to 100 hours ahead. The

MT4 Trading robot AI / machine learningTrend following
Updated 8 years ago MIT GitHub repository of Falcon F

MartGreg GP1

by gridgentoo
1 stars

MartGreg GP1 is a MetaTrader 5 expert advisor designed for automated trading with a focus on specific instruments like Brent Crude. It executes trades using a fixed lot size and manages each position with predefined stop loss and take profit levels. The system includes a risk management component that tracks the accoun

MT5 Trading robot Scalping
Updated 8 years ago GPL-3.0 GitHub repository of MartGreg GP1

Simple Sys EA

by nashpower
1 stars

Simple Sys is a MetaTrader 4 expert advisor that executes automated trades based on a specific daily start hour and moving average alignment. At the designated hour, the robot evaluates the relationship between current price action and a long-term moving average to identify trend direction. It features fixed lot sizing

MT4 Trading robot Trend following
Updated 8 years ago None stated GitHub repository of Simple Sys EA

Pattern Robot

by lariga
1 stars

This MetaTrader 5 expert advisor is a pattern-based automated trading system that utilizes external signal data from a CSV file. It incorporates several risk management parameters, such as a maximum position limit, a maximum loss threshold, and a count for consecutive losing trades. The EA also includes a trailing stop

MT5 Trading robot Multi-strategy
Updated 8 years ago None stated GitHub repository of Pattern Robot

News Catcher EA

by oleg518
1 stars

News Catcher EA is an automated trading robot for MetaTrader 4 designed to trade market volatility typically associated with news events. It functions by placing pending buy and sell orders at a specific distance from the current price at a pre-defined start time. The EA manages trades using a configurable trailing sto

MT4 Trading robot NewsBreakout
Updated 8 years ago None stated GitHub repository of News Catcher EA

EA Skeleton

by djalilMQL
1 stars

This MetaTrader 4 expert advisor serves as a development prototype based on standard technical indicators. It utilizes a combination of MACD signal line crossovers and Bollinger Band price interactions to automate trade entries. The robot initiates buy orders when the MACD main line is above the signal and price recove

MT4 Trading robot Indicator crossoverMean reversion
Updated 8 years ago None stated GitHub repository of EA Skeleton
1 stars

JiaoYi is a MetaTrader 4 expert advisor designed to trade based on manually or programmatically defined support and resistance levels. It features three operational modes allowing users to target price breakouts, oscillations within a range, or a combination of both strategies. The EA manages trade execution by monitor

MT4 Trading robot BreakoutMean reversion
Updated 8 years ago None stated GitHub repository of JiaoYi Trading Suite

Boss Logic

by chaninnart
1 stars

Boss Logic is an automated trading robot for MetaTrader 4 that utilizes a combination of the Zigzag indicator, MACD, and Turtle Trading Channel logic. The EA monitors price pivots across various bar intervals to identify potential entry points based on trend exhaustion or reversals. Trade management includes standard t

MT4 Trading robot Trend followingIndicator crossover
Updated 8 years ago None stated GitHub repository of Boss Logic
1 stars

Goertzel Dfilter Expert is an automated trading robot for MetaTrader 4 that utilizes signal processing techniques to enter and exit trades. It implements the Goertzel algorithm alongside a digital filter to determine market direction. The expert advisor follows a reversal logic, closing existing short positions when a

MT4 Trading robot Mean reversion

Envelope Scalper

by ahsodhi
1 stars

This MetaTrader 4 expert advisor executes a scalping strategy focused on the 5-minute timeframe. It monitors price action relative to the Envelopes indicator, initiating trades when price crosses back inside the indicator boundaries after a deviation. The robot includes risk management controls through fixed take profi

MT4 Trading robot ScalpingMean reversion
Updated 8 years ago None stated GitHub repository of Envelope Scalper
1 stars

This MetaTrader 4 expert advisor executes trades based on a simple moving average crossover strategy. The robot requires a specific start hour to authorize trading activity. Once active, it waits for a cross between two configurable moving averages to initiate buy or sell orders. The system uses hardcoded stop loss and

MT4 Trading robot Indicator crossover

Crossover Algoritmo

by evertonrosadf
1 stars

This MetaTrader 4 expert advisor implements a simple moving average crossover strategy. It uses two user-defined SMA periods to determine entry points once a specific hour of the day is reached. The robot monitors the relationship between the fast and slow averages, opening a single trade when they cross in a specific

MT4 Trading robot Indicator crossover
Updated 8 years ago Apache-2.0 GitHub repository of Crossover Algoritmo

FX TrEx

by PavelZatyaev
1 stars

This MetaTrader 5 expert advisor implements a multi-currency trading strategy based on a coefficient matrix of major forex pairs. It monitors price movements across a predefined set of currencies, including EUR, USD, GBP, AUD, JPY, and CAD, to identify trading opportunities. The system manages trades as a collective ba

MT5 Trading robot Arbitrage
Updated 8 years ago None stated GitHub repository of FX TrEx

Moving Average EA

by syusuke9999
1 stars

This MetaTrader 4 expert advisor executes trades based on price distance from a Moving Average. It monitors whether the current price is within or outside specific bands defined by a margin parameter. When price exceeds these boundaries, the system manages pending buy stop and sell stop orders to capture market movemen

MT4 Trading robot Mean reversion
Updated 8 years ago None stated GitHub repository of Moving Average EA

MAEA

by sabelofx
1 stars

MAEA is a multi-symbol expert advisor for MetaTrader 4 that automates entries based on moving average analysis. The robot scans available symbols and monitors price action on the M15 timeframe. It incorporates automated trade management features including a break-even function and dynamic lot sizing based on a fixed ri

MT4 Trading robot Indicator crossoverTrend following
Updated 8 years ago None stated GitHub repository of MAEA

RSI Momentum Robot

by reuniware
1 stars

This MetaTrader 4 expert advisor utilizes the Relative Strength Index (RSI) and Momentum indicators to identify trading opportunities. The EA monitors price action, spreads, and indicator levels across various timeframes. A notable feature is its ability to log real-time market data, including broker info and indicator

MT4 Trading robot Trend followingMean reversion
Updated 8 years ago None stated GitHub repository of RSI Momentum Robot

ZP New Future

by zp4rex
1 stars

This MetaTrader 4 expert advisor executes trades based on a triple moving average strategy. It utilizes fast, slow, and trend moving average periods to identify entry points, including new trends, trend continuations, and price touches on moving averages. The system includes built-in risk management via a fixed stop lo

MT4 Trading robot Indicator crossoverTrend following
Updated 9 years ago None stated GitHub repository of ZP New Future

Uchin

by KotaroHashimoto
1 stars

Uchin is a MetaTrader 4 expert advisor that executes trades based on the price action of the previous daily candle. It enters a buy position if the prior day closed higher than it opened and a sell position if it closed lower. The robot includes time-based filters for specific entry and exit hours and allows users to t

MT4 Trading robot Trend following
Updated 9 years ago None stated GitHub repository of Uchin

Double MA ADX

by Comp-AS
1 stars

Double MA ADX is a MetaTrader 4 expert advisor that automates trading based on the relationship between two Linear Weighted Moving Averages and the Average Directional Index. The strategy uses ADX values to filter for trend strength before entering positions during a specific intraday time window. It utilizes a trailin

MT4 Trading robot Indicator crossoverTrend following
Updated 9 years ago None stated GitHub repository of Double MA ADX

Krisha Scalper

by Daiwv
1 stars

Krisha Scalper is an automated trading robot for the MetaTrader 4 platform that identifies potential entry points using ATR and EMA indicators. The expert advisor implements several risk management layers, including percentage-based lot sizing, a maximum loss limit in points, and a trailing step feature. It supports pa

MT4 Trading robot ScalpingMean reversionIndicator crossover
Updated 9 years ago None stated GitHub repository of Krisha Scalper

Ichimoku Kinkohyo

by KotaroHashimoto
1 stars

This MetaTrader 4 expert advisor executes trades based on a trend-following system using four Simple Moving Averages and a custom indicator. It identifies entry points when price interacts with a specific sequence of moving averages (25, 75, 100, and 200 periods) while confirming the trend direction. Risk management is

MT4 Trading robot Trend followingIndicator crossover
Updated 9 years ago None stated GitHub repository of Ichimoku Kinkohyo
1 stars

This MetaTrader 5 expert advisor implements a technical trading strategy using Bollinger Bands and the Double Exponential Moving Average (DEMA). It performs multi-timeframe analysis, referencing the 30-minute chart for volatility envelopes and the daily chart for trend filtering. The robot executes trades using fixed l

MT5 Trading robot Trend followingMean reversion
Updated 9 years ago None stated GitHub repository of Bollinger Bands DEMA

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

Compare brokers