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.

91 EAs match Clear filters
1 stars

This MetaTrader 5 expert advisor implements a pair trading arbitrage strategy between spot gold and gold futures. The robot monitors the price difference between XAUUSD and the GC futures contract, opening simultaneous buy and sell orders when the spread exceeds a defined threshold. Risk management is handled through a

MT5 Trading robot ArbitrageHedging
Updated 6 months ago None stated GitHub repository of XAU And GC Arbitrage

XAU Hedge Strategy

by mraicodedev
1 stars

This MetaTrader 5 expert advisor executes a coordinated hedging strategy across two separate accounts for XAUUSD. By running one instance as a buyer and another as a seller, the system coordinates simultaneous opposing entries. The two instances communicate status and synchronization via shared local files. It manages

MT5 Trading robot Hedging
Updated 7 months ago Custom licence GitHub repository of XAU Hedge Strategy

Dejavu EA

by MarxMad
1 stars

Dejavu EA is a grid trading robot for MetaTrader 5 that automates trade entry using a system of pending orders. It supports buy and sell stops and limits, organized in configurable increments. The strategy includes a dynamic take profit mechanism relative to grid spacing, trailing stops, and ATR-calculated stop losses.

MT5 Trading robot GridHedging High risk
Updated 7 months ago None stated GitHub repository of Dejavu EA

Forex Expert Grid

by dz-rep
1 stars

This MetaTrader 4 expert advisor implements a grid-based trading approach by opening buy and sell positions based on price distance. The system evaluates current market orders and places new trades only when the price moves a specific distance, defined by the step parameters, from existing entries. Users can independen

MT4 Trading robot GridHedging High risk
Updated 9 months ago None stated GitHub repository of Forex Expert Grid

Hosopi3 Tanpoji

by harukihosono
1 stars

Hosopi3 Tanpoji is a single-position trading robot for MetaTrader 4 and MetaTrader 5, specifically developed to avoid martingale and averaging techniques. It triggers entries using various built-in technical indicators such as Moving Averages, RSI, Bollinger Bands, and Stochastics, or through external custom indicator

MT4MT5 Trading robot Indicator crossoverMean reversionMulti-strategy
Updated 10 months ago None stated GitHub repository of Hosopi3 Tanpoji

Experienced FX Trader

by simonokwundue-ops
1 stars

This collection of Expert Advisors for MetaTrader 5 provides high-frequency scalping and multi-strategy automated trading across multiple currency pairs. The robots utilize a signal scoring system based on moving average crossovers, RSI momentum, Bollinger Band breakouts, and MACD signals. The suite includes a dedicate

MT5 Trading robot ScalpingBreakoutIndicator crossover
Updated 10 months ago None stated GitHub repository of Experienced FX Trader
1 stars

This machine learning expert advisor for MetaTrader 5 utilizes ensemble and deep learning models to analyze market patterns. It offers a versatile multi-strategy approach, allowing users to toggle between trend-following, scalping, and grid-hedging behaviors. Risk controls are comprehensive, featuring fixed percentage

MT5 Trading robot AI / machine learningMulti-strategyScalping High risk

Gann Fan Bot

by AbasNiknam
1 stars

This MetaTrader 4 expert advisor automates trading based on Gann Fan theory by identifying trend angles from recent swing highs and lows. It enters the market using buy and sell stop orders placed at specific distances from detected Gann lines. The robot includes risk management features such as fixed stop loss, take p

MT4 Trading robot Trend followingBreakoutHedging
Updated 11 months ago None stated GitHub repository of Gann Fan Bot

Expanding Grid EA

by OrchardForexTutorials
1 stars

This MetaTrader 5 robot implements a grid trading strategy featuring dynamic order spacing. Unlike traditional fixed grids, this expert advisor increases the distance between subsequent levels using an expansion factor. It employs martingale lot scaling where volumes grow exponentially based on the number of open posit

MT5 Trading robot GridMartingaleHedging High risk
Updated 11 months ago GPL-3.0 GitHub repository of Expanding Grid EA

M Grid

by OrchardForexTutorials
1 stars

This Expert Advisor for MetaTrader 5 implements a bi-directional grid strategy combined with martingale lot scaling. The robot monitors buy and sell legs independently, opening new orders at fixed pip intervals when the price moves against existing positions. It utilizes an exponential growth factor to increase trade v

MT5 Trading robot GridMartingaleHedging High risk
Updated 11 months ago GPL-3.0 GitHub repository of M Grid
1 stars

This MetaTrader 5 expert advisor utilizes a hedging and grid-based strategy described as cornering. It places pending orders on both buy and sell sides at fixed or automatically adjusted distances. The bot scales position sizes using a multiplier for subsequent entries and includes a dynamic break-even function to mana

MT5 Trading robot HedgingGridMartingale High risk
Updated 1 year ago None stated GitHub repository of AntiM Acorralamiento EA

Trend EA

by gandra70
1 stars

This MetaTrader 5 expert advisor executes trades based on signals generated by a companion custom trend indicator. It is designed to function exclusively on the MetaTrader 5 hedging platform and requires the external indicator file to be installed manually in the local indicators folder. The system manages risk using a

MT5 Trading robot Trend followingHedging
Updated 1 year ago None stated GitHub repository of Trend EA
1 stars

This MetaTrader 5 expert advisor implements a trend-following strategy based on the Parabolic SAR indicator combined with hedging logic. It identifies market direction using standard PSAR parameters and manages positions through automated risk controls. The system allows users to define risk as a fixed lot size or a pe

MT5 Trading robot Trend followingHedging
Updated 1 year ago None stated GitHub repository of PSAR Hedge Strategy EA

Trend Reversal EA

by fastleopard9372
1 stars

This MetaTrader 5 expert advisor executes trades based on a combination of momentum and trend indicators, specifically MACD, RSI, CCI, and ADX. It seeks trend reversal opportunities by identifying overbought or oversold conditions combined with specific trend strength requirements. The EA includes risk management featu

MT5 Trading robot Mean reversionIndicator crossoverHedging
Updated 1 year ago None stated GitHub repository of Trend Reversal EA

Grid Martingale TA Signals

by SrisittikumChanintorn
1 stars

This MetaTrader 4 expert advisor executes a dual-direction grid trading strategy driven by technical analysis. It enters trades based on an Exponential Moving Average crossover logic using three distinct periods. The system employs a customizable martingale sequence where lot sizes increase after a user-defined number

MT4 Trading robot Indicator crossoverGridMartingale High risk
Updated 1 year ago None stated GitHub repository of Grid Martingale TA Signals

Hedge EA

by sahebkaran1
1 stars

This MetaTrader 4 expert advisor executes and manages trades using a specialized hedging strategy. It monitors account equity and floating losses, automatically opening hedge positions when a user-defined loss percentage is reached. The system includes robust risk management features such as daily and weekly loss limit

MT4 Trading robot Hedging
Updated 1 year ago MIT GitHub repository of Hedge EA

EA Max Profit

by diditgravatar
1 stars

This MetaTrader 5 expert advisor is designed specifically for trading XAUUSD. It utilizes a combination of the Average Directional Index (ADX) for trend strength, Relative Strength Index (RSI) for momentum, and two Simple Moving Averages for trend direction. The system uses multi-timeframe analysis, specifically checki

MT5 Trading robot Indicator crossoverTrend followingMean reversion
Updated 1 year ago None stated GitHub repository of EA Max Profit
1 stars

This MetaTrader 4 expert advisor executes trades based on candle momentum and specific trigger factors. It manages positions using virtual trailing stop-loss and take-profit levels, alongside a global profit target that halts trading once a predefined financial goal is met. The system includes logic for multi-symbol tr

MT4 Trading robot Trend followingHedgingMulti-strategy

Phantom Edge

by tHeStRyNg
1 stars

Phantom Edge is a MetaTrader 5 expert advisor primarily designed for trading BTCUSD. It identifies entries using a combination of technical indicators, including RSI, MACD, and SMA, while validating setups through multi-timeframe analysis of M15 liquidity sweeps and M30 trend breaks. The EA features comprehensive trade

MT5 Trading robot Trend followingBreakoutHedging
Updated 1 year ago None stated GitHub repository of Phantom Edge
1 stars

This MetaTrader 5 expert advisor implements a trend-following strategy based on price position relative to a moving average. It initiates buy orders when a candle closes above the moving average and sell orders when it closes below. Risk management is handled through several configurable parameters, including fixed tak

MT5 Trading robot Trend followingIndicator crossoverHedging
Updated 2 years ago None stated GitHub repository of Moving Average Hedging EA

Zone Recovery EA

by inubayuaji
1 stars

Zone Recovery is a MetaTrader 4 expert advisor that employs a hedging strategy to manage trades within a specific price range. It uses a recovery algorithm to open opposite positions with increased lot sizes when the market moves against the initial entry. The EA calculates a lot multiplier based on the risk-reward rat

MT4 Trading robot HedgingMartingale High risk
Updated 2 years ago None stated GitHub repository of Zone Recovery EA

Gradiente Linear MT5

by HidaiSilva
1 stars

This MetaTrader 5 expert advisor implements a linear gradient trading strategy, which typically involves layering orders or partial exits at fixed point intervals. It utilizes Bollinger Bands as a primary technical indicator for entry signals and supports buy-only, sell-only, or bidirectional trading modes. The robot i

MT5 Trading robot GridMean reversionHedging High risk
Updated 2 years ago None stated GitHub repository of Gradiente Linear MT5

Tip Top AI

by sournk
1 stars

Tip Top AI is a price action robot for MetaTrader 4 and MetaTrader 5 that uses a proprietary candle tail length algorithm to identify market entries. The strategy calculates the average size of historical bars and monitors current candles for specific wick-to-body ratios. It enters trades when wicks exceed the body siz

MT4MT5 Trading robot SMC / ICT / price actionGridHedging High risk
Updated 2 years ago None stated GitHub repository of Tip Top AI

Mix

by Peter-Novak
1 stars

This MetaTrader 4 expert advisor executes two distinct intraday strategies focused on the GBPUSD pair. The first approach identifies price deviations from the daily open, while the second targets retracements from specific daily range extensions. The robot manages multiple position types, including primary and extra or

MT4 Trading robot Mean reversionMulti-strategyHedging
Updated 3 years ago None stated GitHub repository of Mix

MintyGrid

by adamjbradley
1 stars

MintyGrid is an automated trading robot for MetaTrader 5 that employs a grid-based strategy without relying on technical indicators or market averages. It enters positions immediately and manages losing trades by layering additional orders at specific intervals. The expert advisor utilizes martingale and reverse-martin

MT5 Trading robot GridMartingaleHedging High risk
Updated 3 years ago None stated GitHub repository of MintyGrid

Fibonacci Expert

by ismail505
1 stars

Fibonacci Expert is a MetaTrader 5 robot that calculates Fibonacci levels using price extremes from a user-defined timeframe. It automatically places various pending orders, including buy stops, sell stops, buy limits, and sell limits, at specified intervals relative to these levels. The EA manages risk through individ

MT5 Trading robot BreakoutMean reversionHedging
Updated 3 years ago None stated GitHub repository of Fibonacci Expert

NLF Trading Bot

by NorVirae
1 stars

This automated expert advisor for MetaTrader 4 and MetaTrader 5 utilizes a strategy inspired by the Never Losing Formula. It employs technical indicators including the Stochastic Oscillator, Relative Vigor Index, and Envelopes to identify market entries. To manage trades, the EA incorporates a secondary entry mechanism

MT4MT5 Trading robot HedgingMartingaleIndicator crossover High risk
Updated 4 years ago None stated GitHub repository of NLF Trading Bot

Icarus EA

by Aomforex
1 stars

Icarus EA is a MetaTrader 4 robot that executes a grid trading strategy with lot size progression. It opens sequences of trades at fixed intervals and uses a multiplier to scale lot sizes, identifying it as a martingale-style system. Risk controls include an equity warning threshold, a maximum number of concurrent posi

MT4 Trading robot GridMartingaleHedging High risk
Updated 4 years ago None stated GitHub repository of Icarus EA

Arbitrage Expert

by wawaw237zz
1 stars

Arbitrage Expert is a MetaTrader 4 expert advisor that focuses on a zone recovery hedging strategy rather than traditional arbitrage. Based on the OGT Zone Recovery system, it manages trades by opening counter-positions within a defined price zone when an initial trade goes into drawdown. The system employs a lot multi

MT4 Trading robot HedgingMartingaleMean reversion High risk
Updated 4 years ago None stated GitHub repository of Arbitrage Expert

EA Grid Gold

by Adev87
1 stars

This MetaTrader 5 expert advisor executes a grid-based trading strategy, specifically tailored for gold but applicable to other instruments. It functions by opening initial buy and sell positions and subsequently placing a sequence of limit orders at specified intervals. The system manages risk through a configurable g

MT5 Trading robot GridHedgingMartingale High risk
Updated 5 years ago None stated GitHub repository of EA Grid Gold

Zone Hedging EA

by sompol13
1 stars

This MetaTrader 4 expert advisor implements a zone-based hedging strategy using predefined price levels. The robot monitors specific price thresholds—defined as ceiling, middle, and floor—to manage order entries. It utilizes a timer-driven event system to evaluate trade conditions and manage positions. Risk control is

MT4 Trading robot HedgingGrid High risk
Updated 5 years ago None stated GitHub repository of Zone Hedging EA

Yumokin CCI

by yumokin
1 stars

This automated trend-following expert advisor for MetaTrader 4 is designed specifically for the GBPJPY pair on the H1 timeframe. It identifies market entries using the Commodity Channel Index and Moving Average Convergence Divergence indicators. The system operates within specific GMT hours and manages a maximum of two

MT4 Trading robot Trend followingIndicator crossoverHedging
Updated 7 years ago None stated GitHub repository of Yumokin CCI

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

Soldiers No SL

by p8queen
1 stars

This MetaTrader 4 Expert Advisor implements a price-action grid strategy that opens orders based on fixed distance intervals. The robot establishes a baseline level and triggers a buy or sell position whenever the price moves a specific number of points away from that level. It features no built-in stop loss or take pr

MT4 Trading robot GridHedging High risk
Updated 7 years ago None stated GitHub repository of Soldiers No SL

Krikor

by Comp-AS
1 stars

Krikor is a MetaTrader 4 robot that uses a combination of technical indicators and a grid-based recovery system to manage trades. It determines entries using a Relative Strength Index (RSI), Moving Averages, Average Directional Index (ADX), and a custom ZigZag indicator. The strategy employs martingale lot scaling, inc

MT4 Trading robot MartingaleGridTrend following High risk
Updated 8 years ago None stated GitHub repository of Krikor

Super Grid

by allanon98
1 stars

This MetaTrader 4 expert advisor implements a trend-following grid strategy based on multiple moving averages. It determines market direction using configurable average periods and places initial pending orders followed by additional positions at set point intervals. The robot manages long and short trades independentl

MT4 Trading robot Trend followingGridHedging High risk
Updated 8 years ago None stated GitHub repository of Super Grid
1 stars

Integra 777 Buy Sell is a MetaTrader 4 expert advisor that utilizes a grid-based approach combined with the Commodity Channel Index (CCI) for trade entries and management. The robot opens positions and adds supplementary orders at dynamic distances, governed by a minimum step parameter. It features a unique trailing pr

MT4 Trading robot GridMartingaleIndicator crossover High risk
Updated 8 years ago None stated GitHub repository of Integra 777 Buy Sell

Susu Engulf

by Chongcharen
1 stars

Susu Engulf is a MetaTrader 4 expert advisor that automates trading based on engulfing candlestick patterns and technical indicators. It utilizes a combination of MACD and five distinct moving averages to determine trend direction and entry points. The EA manages risk through a maximum order limit and a money managemen

MT4 Trading robot Trend followingSMC / ICT / price actionGrid High risk
Updated 8 years ago None stated GitHub repository of Susu Engulf

ZBlue

by zzzblue
1 stars

ZBlue is a MetaTrader 4 expert advisor designed for forex trading using a Martingale-style recovery strategy. It initiates a starting position and adds subsequent trades at increasing pip intervals if the market moves against the initial entry. The EA manages both buy and sell directions independently. It uses a tiered

MT4 Trading robot MartingaleGridHedging High risk
Updated 9 years ago None stated GitHub repository of ZBlue

Awesome EA

by eaymon
1 stars

Awesome EA is an automated multi-pair trading robot for MetaTrader 4 built on the Steve Hopwood Forex framework. It implements a trend-following strategy that filters entries using daily Peaky and SuperSlope indicators, executing trades when signals align on shorter timeframes. The system manages risk through equity-ba

MT4 Trading robot Trend followingMulti-strategyHedging
Updated 9 years ago None stated GitHub repository of Awesome EA

Triangular Arbitrage MT5

by chrisyeh75
1 stars

This MetaTrader 5 expert advisor implements a triangular arbitrage strategy targeting price discrepancies between correlated currency pairs. The robot monitors specific instruments, including EURUSD, USDJPY, EURJPY, USDCAD, and CADJPY, to identify synthetic price gaps. It executes trades when the calculated gap exceeds

MT5 Trading robot ArbitrageHedging
Updated 9 years ago None stated GitHub repository of Triangular Arbitrage MT5

Blessing Three

by duanwujie
1 stars

This MetaTrader 4 expert advisor is an automated grid trading system that utilizes a variety of indicators including Moving Averages, CCI, Bollinger Bands, and MACD for trade entries. It employs a martingale-style lot multiplier to manage position sizing across sequential grid levels. The software includes risk control

MT4 Trading robot GridMartingaleIndicator crossover High risk
Updated 9 years ago None stated GitHub repository of Blessing Three
1 stars

This MetaTrader 4 expert advisor executes trades based on a combination of Exponential Moving Averages, MACD, and Heiken Ashi indicators. It features a zone recovery system designed to manage trades that move against the initial position by utilizing offsetting orders. Risk management is handled through configurable ta

MT4 Trading robot Trend followingIndicator crossoverHedging High risk
Updated 10 years ago None stated GitHub repository of Zone Recovery Advisor

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