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.

44 EAs match Clear filters
464 stars

This repository features a collection of trading tools for MetaTrader 5 and 4, headlined by a comprehensive Trade Manager EA. This manager enables manual execution via keyboard shortcuts and provides automated risk controls, including ATR-based break-even settings and trailing stops. The collection also offers strategy

MT4MT5 Collection BreakoutHedging

News Trader

by EarnForex
55 stars

News Trader is a semi-automatic expert advisor for MetaTrader 4 and MetaTrader 5 designed to execute trades around high-volatility economic announcements. Users manually input the scheduled news release time, and the robot opens positions a specified number of seconds before the event. It supports single-direction trad

MT4MT5 News trading NewsHedging
Updated 1 year ago Apache-2.0 GitHub repository of News Trader
33 stars

This repository provides a collection of MetaTrader 4 expert advisors, notably featuring a grid-based trading system. The mGRID EA executes trades by placing multiple pending buy and sell stop orders at fixed pip increments, attempting to capture price movement in either direction. It offers risk controls through confi

MT4 Collection GridIndicator crossoverMulti-strategy High risk
12 stars

This MetaTrader 4 repository contains a collection of expert advisors, primarily featuring the Chaos Theory EA. This robot combines several trading methodologies including Bill Williams' Chaos Theory, Trading Made Simple, and THV3 to trade multiple currency pairs simultaneously. It utilizes technical filters such as Su

MT4 Collection Multi-strategyTrend followingIndicator crossover High risk

This repository is a collection of various MetaTrader 4 expert advisors, featuring the WallStreet Forex Robot along with other tools like SteadyWinner and IndoRun. The primary EA utilizes technical indicators such as Moving Averages, CCI, and Williams' Percent Range to execute trades on the M15 timeframe. It includes c

MT4 Collection Trend followingIndicator crossoverMartingale High risk

Liangxifeng MT4 Collection

by liangxifeng833
6 stars

Liangxifeng MT4 Collection is a repository of MetaTrader 4 expert advisors focused on automated trading strategies. The primary EA employs a dual moving average crossover system to initiate trades and features a scaling mechanism that increases lot sizes as the market moves in favor of the position. It manages risk thr

MT4 Collection Trend followingIndicator crossoverHedging
Updated 5 years ago None stated GitHub repository of Liangxifeng MT4 Collection

Profit Hunter

by phpkadir
5 stars

Profit Hunter is an expert advisor for MetaTrader 4 designed for forex and cryptocurrency trading. It utilizes a composite signal strategy combining Triple Moving Average, Adaptive RSI, CCI, iTrend, and Fisher indicators. The robot executes trades using a grid system where distances between orders are set manually or c

MT4 Trading robot GridMartingaleHedging High risk
Updated 4 years ago None stated GitHub repository of Profit Hunter

Git Gpa Collection

by shidatonglin
5 stars

GitGpa is an extensive repository of MetaTrader 4 expert advisors, primarily featuring implementations of the OzFX strategy alongside various technical indicator-based bots. The collection includes tools for trend chasing, breakout trading, and moving average crossovers. These experts incorporate multiple risk manageme

MT4 Collection Trend followingBreakoutIndicator crossover High risk
Updated 7 years ago None stated GitHub repository of Git Gpa Collection
4 stars

This repository provides a collection of trading scripts for MetaTrader 4, MetaTrader 5, and Pine Script, covering various technical strategies. It includes a Williams Alligator expert advisor that enters trades based on the alignment of three smoothed moving averages. The repository also contains code for grid and hed

MT4MT5 Collection Trend followingGridHedging High risk
4 stars

This repository is a collection of MetaTrader 4 expert advisors and indicators focused on aggressive trading strategies. The primary expert advisor uses a grid-based approach with martingale lot scaling to manage positions. It features multiple entry logics, including Bollinger Bands, Exponential Moving Averages, and m

MT4 Collection MartingaleGridIndicator crossover High risk

Oanda TDesk Drone

by LonnieCoffman
4 stars

Oanda TDesk Drone is a MetaTrader 4 expert advisor designed to execute trades based on signals from the TDesk dashboard via the Oanda FXtrade platform. It functions as a bridge, using an external Python script and file-based data exchange to facilitate order placement. The EA is specifically designed to support fractio

MT4 Trading robot Multi-strategyGridHedging High risk
Updated 7 years ago None stated GitHub repository of Oanda TDesk Drone

NZT USDJPY

by felipemiramontesr
4 stars

NZT USDJPY is a MetaTrader 4 expert advisor specifically tailored for the USD/JPY forex pair. The EA monitors tick-by-tick price movements to manage active long and short positions. It employs logic that triggers order closures or modifications based on bid and ask fluctuations relative to reference prices. The softwar

MT4 Trade manager Hedging
Updated 10 years ago None stated GitHub repository of NZT USDJPY

Fxcodebase Archive

by gehtsoft-usa
3 stars

This repository is a comprehensive backup of trading resources from the defunct fxcodebase community, containing a diverse collection of expert advisors for MetaTrader 4 and 5. The archive serves as a repository for legacy source code, featuring strategies ranging from RSI crossovers to advanced hedging and martingale

MT4MT5 Collection Multi-strategyMartingaleHedging High risk
Updated 2 months ago GPL-3.0 GitHub repository of Fxcodebase Archive

AutoTrade EA

by liucheng-12-08
3 stars

AutoTrade EA is a scalping robot for MetaTrader 4 and 5 that utilizes a multi-indicator signal scoring system based on Exponential Moving Average crossovers and RSI levels. It employs an aggressive trade management strategy featuring a dynamic grid and a stepped martingale lot scaling system where position sizes increa

MT4MT5 Trading robot ScalpingIndicator crossoverMartingale High risk
Updated 7 months ago None stated GitHub repository of AutoTrade EA
3 stars

This MetaTrader 4 collection contains various expert advisors, including a primary strategy based on EMA 50/200 crossovers and RSI filtering. The main EA manages entries through trend confirmation and provides risk controls such as stop loss, take profit, and trailing stops. It includes features for breakeven activatio

MT4 Collection Indicator crossoverTrend followingGrid High risk
Updated 10 months ago Custom licence GitHub repository of Simple Forex Tools Collection

North East Way

by Yogurt-Peng
3 stars

This MetaTrader 4 robot implements a multi-currency mean-reversion strategy, targeting price returns to the average on correlated forex pairs. It manages trades using a grid system with a significant martingale multiplier to scale lot sizes. The expert advisor allows for simultaneous trading on multiple symbols to dive

MT4 Trading robot Mean reversionGridMartingale High risk
Updated 1 year ago None stated GitHub repository of North East Way
3 stars

This repository contains a collection of MetaTrader 4 expert advisors, including robots based on RSI, Bollinger Bands, and moving averages. The primary featured expert advisor implements a dual-symbol statistical arbitrage strategy using indicators such as ZigZag and Moving Averages to identify entries. It employs a ma

MT4 Collection ArbitrageMartingaleIndicator crossover High risk
Updated 5 years ago None stated GitHub repository of Clunique Experts Collection
3 stars

This repository contains an extensive collection of over 250 expert advisors and utility scripts for MetaTrader 4. The library features various automated robots, manual trade panels, and risk management tools. It includes specialized folders for hedging strategies, pending order assistants, and multi-indicator monitors

MT4 Collection HedgingMartingaleMulti-strategy High risk

MQ4 Master Collection

by hairibaba
3 stars

This repository provides a collection of MetaTrader 4 expert advisors and utility tools. It includes diverse trading strategies ranging from M1 scalping and Heiken Ashi trend following to swing-based approaches. The codebase features a robust trade management framework with classes for order execution, error handling,

MT4 Collection Trend followingScalpingIndicator crossover High risk Archived
Updated 7 years ago None stated GitHub repository of MQ4 Master Collection

GBPUSD AI Grid EA

by AlexCrombieF
2 stars

The GBPUSD AI Grid EA is an automated trading robot for MetaTrader 4. It executes a grid-based strategy that layers orders during market movements. Initial entries are filtered using the Commodity Channel Index indicator. The bot manages positions through a martingale lot multiplier, increasing volume for subsequent gr

MT4 Trading robot GridMartingaleHedging High risk
Updated 2 years ago None stated GitHub repository of GBPUSD AI Grid EA
2 stars

This MetaTrader 4 repository contains a collection of expert advisors and utilities, primarily focused on the AM grid robot and various scalping scripts. The main EA employs a grid-based strategy that layers orders at specific distances and includes settings for trend and counter-trend protection. It features a mechani

MT4 Collection GridScalpingTrend following High risk
Updated 2 years ago None stated GitHub repository of Lianxi EA Collection
2 stars

This expert advisor for MetaTrader 4 and 5 implements a hedging recovery strategy to handle losing positions. When an initial trade moves against the user, the robot enters a recovery zone, placing counter-orders with scaled lot sizes to achieve a collective exit at a profit or break-even point. The EA includes risk co

MT4MT5 Trading robot HedgingMartingale High risk
Updated 3 years ago GPL-3.0 GitHub repository of Forex Recovery Zone
2 stars

This repository contains the Forex Algos Collection, a suite of over forty MetaTrader 4 expert advisors centered around the Aeron Forex Auto Trader robot. This primary EA implements a grid-based entry system combined with martingale lot scaling, where position sizes increase significantly via a multiplier factor after

MT4 Collection GridMartingaleHedging High risk
Updated 6 years ago None stated GitHub repository of Forex Algos Collection

Mt4 Develop Collection

by xianGuiye
2 stars

This repository features a collection of MetaTrader 4 expert advisors designed for various trading approaches. The included M5_M30integral EA utilizes moving average crossovers across multiple timeframes for trend detection. Other scripts employ envelope scalping at specific standard deviations and Bollinger Band strat

MT4 Collection Indicator crossoverMean reversionScalping High risk

Price Less EA

by exalkas
2 stars

Price Less EA is an automated trading robot for the MetaTrader 4 platform that implements a grid-based recovery strategy. It combines moving average crossovers for entry timing with a multi-level position layering system. The robot initiates trades and scales lot sizes using step-based increments at fixed distances. It

MT4 Trading robot GridIndicator crossoverMartingale High risk
Updated 8 years ago None stated GitHub repository of Price Less EA

Zyb EA Collection

by clispaul3
1 stars

Zyb EA Collection offers various MetaTrader 4 and 5 expert advisors that implement breakout, scalping, and grid-based trading. The primary strategy uses martingale lot scaling with a multiplier, allowing users to configure tiered step distances and position counts. It features price-level restrictions to prevent buying

MT4MT5 Collection BreakoutMartingaleGrid High risk
Updated 3 months ago None stated GitHub repository of Zyb EA Collection

Mirza Algo EA Collection

by Mirza-Algo
1 stars

This repository provides a collection of MetaTrader 4 expert advisors, including Evoque Global, Alpha Winner, and FXBULL. These robots primarily implement grid strategies with martingale lot scaling to manage positions. Evoque Global specifically includes a news filter, customizable trading hours, and an equity-based s

MT4 Collection GridMartingaleNews High risk
Updated 3 months ago None stated GitHub repository of Mirza Algo EA Collection

Inside Bar Grid EA

by danielworthy
1 stars

This MetaTrader 4 robot implements a grid-based hedging strategy triggered by inside bar price formations. It places multiple pending orders on both sides of a breakout and uses martingale lot scaling to increase position sizes for subsequent entries. The expert advisor is designed for the H4 and Daily timeframes, util

MT4 Trading robot BreakoutGridMartingale High risk
Updated 6 months ago None stated GitHub repository of Inside Bar Grid EA

FX Trading EA Collection

by tambillbka
1 stars

This repository provides a collection of automated trading systems for MetaTrader 4 and 5. The expert advisors utilize various technical indicators, including ADX, DMI, RSI, and Heiken Ashi, to determine market entry points. Some strategies are based on price action from previous candle directions. Trade management fea

MT4MT5 Collection Trend followingScalpingMartingale High risk
Updated 1 year ago None stated GitHub repository of FX Trading EA Collection

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

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

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

This repository provides a collection of MetaTrader 4 expert advisors centered on trend-following and hedging mechanics. The primary Trend EA identifies market entries using moving average crossovers, stochastic oscillators, and MACD indicators. Risk is managed through percentage-based equity lot sizing and pair-specif

MT4 Collection Trend followingIndicator crossoverHedging

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

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

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

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

Eternal Collection

by AdaJass
1 stars

This collection for MetaTrader 4 features several automated trading scripts, with the Eternal EA serving as the primary component. The system implements a hedging strategy by opening simultaneous buy and sell positions. It manages these trades using user-defined price gaps and closes positions once a specific number of

MT4 Collection HedgingArbitrageIndicator crossover High risk
Updated 9 years ago None stated GitHub repository of Eternal Collection

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

This repository contains several MetaTrader 4 and 5 expert advisors, primarily focusing on multi-symbol basket trading and automated position management. The main EA allows users to trade up to six currency pairs simultaneously with predefined directions. It features a mechanism to add positions based on fixed distance

MT4MT5 Collection Multi-strategyGridMartingale High risk
Updated 9 years ago None stated GitHub repository of Ves Multi Symbol Collection

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

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