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
347 EAs match Clear filters

This MetaTrader 5 collection features several versions of the classic Moving Average expert advisor, modified specifically for trading on custom symbols. It includes helper functions to ensure data readiness for synthetic instruments or imported data series. The included strategies execute trades based on moving averag

MT5 Collection Indicator crossoverTrend following
7 stars

This MetaTrader 5 expert advisor implements an automated trend-following system based on the combination of Average True Range and Moving Average indicators. Built using the modular EA31337 framework, it identifies market direction and volatility to determine trade entries. The robot supports concurrent analysis across

MT5 Trading robot Trend followingIndicator crossover
Updated 2 years ago None stated GitHub repository of ATR MA Trend Strategy

RSI MA Cross Custom

by OrchardForexTutorials
7 stars

This expert advisor for MetaTrader 5 combines moving average crossovers with Relative Strength Index (RSI) levels to identify entry points. It initiates buy orders when the RSI indicates oversold conditions and a fast exponential moving average crosses above a slow exponential moving average. Conversely, it opens sell

MT5 Trading robot Indicator crossoverMean reversion
Updated 3 years ago GPL-3.0 GitHub repository of RSI MA Cross Custom
7 stars

This MetaTrader 5 repository contains a collection of expert advisors based on moving average crossover logic. The primary systems utilize fast and slow moving average indicators to identify trend shifts and execute automated trades. Risk management is handled through user-defined stop loss and take profit levels, alon

MT5 Collection Indicator crossoverTrend following

ZeroMQ MT5 Bridge

by tobias-klingel
7 stars

This MetaTrader 5 repository provides a collection of scripts for external data communication and automated trading. It features a ZeroMQ-based bridge that utilizes TCP sockets to connect the trading platform with external environments. The system allows users to stream real-time tick data, OHLC bar rates, and custom k

MT5 Copier & bridge Indicator crossover
Updated 7 years ago None stated GitHub repository of ZeroMQ MT5 Bridge
7 stars

This MetaTrader 4 expert advisor implements a flexible strategy based on the directional consensus of multiple technical indicators. It allows users to combine Moving Averages, Stochastic Oscillators, THV3 T3, Babon Slope, and AMA Optimized modules. A trade is initiated only when all selected indicators align in the sa

MT4 Trading robot Trend followingMulti-strategyIndicator crossover
6 stars

This MetaTrader 5 expert advisor provides a versatile framework for trading based on Heiken Ashi price action. It allows users to toggle between numerous built-in strategies, including trend following, moving average crossovers, Fibonacci levels, and various oscillators like RSI and MACD. The system includes an option

MT5 Trading robot Trend followingIndicator crossoverMean reversion
Updated 2 years ago None stated GitHub repository of Heiken Ashi Complete Strats

Trading Expert Advisor

by hernandesmacedo
6 stars

This MetaTrader 5 expert advisor automates trading decisions by combining moving average crossovers with volume and momentum filters. It enters buy positions when a fast moving average crosses above a slow one, provided volume is increasing and the Relative Strength Index indicates the market is not overbought. For ris

MT5 Trading robot Indicator crossoverTrend following
Updated 4 years ago None stated GitHub repository of Trading Expert Advisor

Orchard MA Cross Risk Sizer

by OrchardForexTutorials
6 stars

This collection for MetaTrader 4 and 5 provides educational examples of calculating lot sizes or stop loss levels based on account equity risk. It uses a moving average crossover strategy to enter trades, triggering orders when short-term and long-term averages intersect. The expert advisor includes logic to calculate

MT4MT5 Collection Indicator crossover

Orchard MA Cross Delay

by OrchardForexTutorials
6 stars

This expert advisor for MetaTrader 4 and 5 serves as a tutorial for implementing cooling-off periods between trade executions. It triggers entries based on a standard moving average crossover using configurable fast and slow periods. Users can restrict trade frequency by setting a minimum number of bars or minutes that

MT4MT5 Trading robot Indicator crossover

Jaume Gelabert EAs

by JaumeGelabert
6 stars

This collection for MetaTrader 5 provides several expert advisors based on classic technical indicator strategies. The primary algorithms utilize Triple and Double Moving Average crossovers filtered by ADX values to confirm trend strength before entry. A secondary strategy uses RSI-filtered engulfing candle patterns. R

MT5 Collection Indicator crossoverTrend following
Updated 4 years ago None stated GitHub repository of Jaume Gelabert EAs

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

OwaisQuadri MT4 Code

by OwaisQuadri
6 stars

This MetaTrader 4 expert advisor executes trades based on momentum oscillators, trend filters, and price action patterns. It utilizes a Stochastic oscillator alongside multiple Exponential Moving Averages to identify entry points in alignment with the prevailing trend. The logic incorporates candlestick analysis, speci

MT4 Trading robot Indicator crossoverTrend followingMean reversion
Updated 6 years ago None stated GitHub repository of OwaisQuadri MT4 Code

Auto Trade EA

by leonharvey
6 stars

This automated expert advisor for MetaTrader 4 executes trades based on moving average crossovers and trend-following logic. It incorporates the Chandelier Exit method, utilizing the Average True Range and price extremes to determine market direction. Risk management is handled through user-defined stop loss and take p

MT4 Trading robot Indicator crossoverTrend following
Updated 6 years ago AGPL-3.0 GitHub repository of Auto Trade EA

Sample Bad Robot

by erlonfs
6 stars

This MetaTrader 5 expert advisor functions as a foundational template for automated trading, primarily implementing a moving average crossover strategy. The software includes comprehensive trade management features such as fixed stop loss and take profit targets defined in ticks, a trailing stop mechanism, and break-ev

MT5 Trading robot Indicator crossover

Aladdin 9 FX

by joaotorresmarques
6 stars

This MetaTrader 4 repository hosts a large collection of automated trading systems, including the Aladdin 9 FX expert advisor. This specific tool identifies entries using the Commodity Channel Index and a Moving Average filter. It operates using a grid-based logic combined with martingale lot scaling, controlled by a l

MT4 Collection GridMartingaleIndicator crossover High risk
Updated 7 years ago None stated GitHub repository of Aladdin 9 FX
6 stars

This MetaTrader 4 repository contains a collection of experts and tools focused on technical indicators and machine learning. It features an implementation of Alexander Elder's Triple Screen strategy using Exponential Moving Averages and MACD to filter trends and entries. Additionally, the collection includes a machine

MT4 Collection Trend followingIndicator crossoverAI / machine learning Archived
Updated 8 years ago None stated GitHub repository of Mql Projects Collection
6 stars

This collection for MetaTrader 4 contains over eighty expert advisors and scripts primarily focused on Bollinger Band breakout strategies. The repository includes numerous variations for fixed lot sizes and specific money management settings. The included logic covers price action relative to moving averages and volati

MT4 Collection BreakoutArbitrageMean reversion

IPatrick Ichimoku

by thachp
6 stars

This MetaTrader 5 expert advisor automates trading based on the Japanese Ichimoku Kinko Kyo system. It identifies market trends and generates buy or sell orders using the Tenkan-sen, Kijun-sen, and Senkou Span components. The robot includes built-in risk controls such as fixed stop loss and take profit levels, and it a

MT5 Trading robot Trend followingIndicator crossover
Updated 11 years ago None stated GitHub repository of IPatrick Ichimoku

General Trading MT5 Collection

by GeneralTradingSarl
5 stars

This repository provides a collection of four Expert Advisors for MetaTrader 5, developed using the MQL5 standard library framework. These robots focus on trend-following and momentum strategies using indicators like Moving Averages, MACD, and the MESA Adaptive Moving Average. Notable features include a Parabolic SAR t

MT5 Collection Trend followingIndicator crossoverMulti-strategy
5 stars

This repository is a collection of MetaTrader 5 expert advisors and utility scripts developed for educational purposes. The primary robot, CruzamentoMedia, executes trades based on moving average crossover logic with configurable periods and methods. It includes a graphical user interface panel for manual play and paus

MT5 Collection Indicator crossoverTrend following
Updated 3 years ago None stated GitHub repository of MQL5 Tutorials Collection

MQL Bots Collection

by Bokang777
5 stars

This repository provides a collection of MetaTrader 5 expert advisors featuring traditional technical indicators and advanced machine learning integrations. The library includes strategies based on Moving Average crossovers, MACD, and Bollinger Bands, alongside risk-heavy models like martingale and hedging systems. A c

MT5 Collection Indicator crossoverAI / machine learningMartingale High risk
Updated 3 years ago None stated GitHub repository of MQL Bots Collection

MA Cross with Formula Trailing Stop

by OrchardForexTutorials
5 stars

This expert advisor for MetaTrader 4 and MetaTrader 5 implements a trend-following strategy based on moving average crossovers. It triggers trades when a fast moving average crosses a slow moving average, utilizing new bar detection to filter out market noise. The system manages open positions using fixed stop loss and

MT4MT5 Trading robot Indicator crossover
5 stars

This repository contains a collection of MetaTrader 5 scripts and Expert Advisors focusing on various technical indicators. The primary EA provided uses Relative Strength Index (RSI) levels to determine long and short entry conditions, including specific start and end thresholds for signal filtering. Other files in the

MT5 Collection Indicator crossoverMean reversionMulti-strategy

NS Financas 4 EMA

by guilhermeneves
5 stars

NS Financas 4 EMA is a MetaTrader 5 expert advisor that automates trading using a four-period exponential moving average system. The robot enters trades based on the alignment of three short-term EMAs while using a 200-period EMA as a directional trend filter to ensure positions align with the long-term market bias. It

MT5 Trading robot Indicator crossoverTrend following
5 stars

This repository hosts a collection of MetaTrader 4 expert advisors, with a primary focus on automated candlestick pattern trading via CandleBot. This robot monitors for numerous formations including hammers, engulfing candles, and stars to execute trades. It incorporates risk management through fixed lot sizes or depos

MT4 Collection SMC / ICT / price actionIndicator crossoverMartingale High risk
Updated 6 years ago None stated GitHub repository of Den4ikI MQL4 EA Collection

Falcon EA Template

by Lucas170
5 stars

This MetaTrader 4 expert advisor provides a framework for trading dual moving average crossovers. It offers automated trade execution with a strong focus on risk management, including lot sizing calculated from a user-defined percentage of account equity. The system manages exits through either fixed pip values or vola

MT4 Trading robot Indicator crossoverTrend following
Updated 7 years ago None stated GitHub repository of Falcon EA Template
5 stars

This repository contains a collection of MetaTrader 4 expert advisors developed for educational purposes and backtesting practice. It features several distinct trading strategies, including moving average crossovers, stochastic counter-trend setups, and pending order breakouts. The included scripts demonstrate essentia

MT4 Collection Indicator crossoverMean reversionBreakout
Updated 10 years ago None stated GitHub repository of MQL4 Learning Collection
5 stars

This MetaTrader 5 expert advisor executes trades based on the MACD indicator and the crossing of two exponential moving averages. It uses a long period of twenty and a short period of six moving averages to identify trends. The robot manages active positions using a specific trailing stop mechanism that permits a perce

MT5 Trading robot Indicator crossoverTrend following
Updated 12 years ago None stated GitHub repository of MACD and Crossing EMA Robot
4 stars

This repository contains an extensive collection of over 200 Expert Advisors developed for the MetaTrader 4 and MetaTrader 5 platforms. The files range from individual strategy implementations like CCI multi-pair and cycle-based trading to comprehensive testing frameworks. The primary featured Expert Advisor includes a

MT4MT5 Collection Indicator crossoverMulti-strategyTrend following High risk
4 stars

This repository provides a collection of MetaTrader 4 expert advisors, primarily focused on a manual trading dashboard and an indicator-based robot. The included dashboard enables manual execution with automated trade management features such as hidden virtual stop loss and take profit levels, profit locking, and multi

MT4 Collection Trend followingIndicator crossover

Equity Markets MQL5 EA

by equitymarkets
4 stars

This MetaTrader 5 expert advisor collection provides automated trading strategies based on moving average trends and price action. The primary EA enters trades when price and moving averages align, indicating momentum. It includes risk management features such as fixed lot sizing and optional stop loss and take profit

MT5 Collection Trend followingIndicator crossover
Updated 1 year ago Apache-2.0 GitHub repository of Equity Markets MQL5 EA
4 stars

This MetaTrader 5 expert advisor implements the BBMA trading system by combining Bollinger Bands with multiple Moving Average levels including MA 5, MA 10, and EMA 50. It enters trades based on technical signals and price interactions with these indicators. The robot features comprehensive risk controls such as percent

MT5 Trading robot Indicator crossoverTrend following
4 stars

This repository is a collection of MetaTrader 5 expert advisors developed as early coding projects between 2021 and 2024. It includes multiple robots implementing varied strategies such as range breakouts, Donchian channels, Fibonacci retracements, and Bollinger Bands. The expert advisors are largely technical indicato

MT5 Collection Trend followingBreakoutMean reversion High risk
4 stars

This MetaTrader 5 expert advisor collection provides several automated trading strategies based on classic technical indicators. The primary component combines CCI, RSI, Stochastic, MACD, and Moving Average crossovers to identify entry signals. It features a configurable grid system that layers multiple orders at fixed

MT5 Collection GridIndicator crossoverMean reversion High risk
Updated 1 year ago None stated GitHub repository of Simple EA MT5 Collection

Simple Trend EA

by jblanked
4 stars

This MetaTrader 5 expert advisor implements a trend-following strategy using exponential moving averages and the Relative Strength Index. It enters a long position when the 50-period EMA is above the 200-period EMA while RSI is above 50, and a short position for the opposite conditions. The robot manages one trade at a

MT5 Trading robot Trend followingIndicator crossover
Updated 2 years ago MIT GitHub repository of Simple Trend EA
4 stars

This MetaTrader 5 expert advisor serves as a template for automated indicator-based trading. It combines multiple technical tools, including RSI, MACD, Parabolic SAR, and Bollinger Bands, to identify market entry and exit points. The system features a dynamic risk management module that adjusts position sizing based on

MT5 Trading robot Indicator crossoverMean reversionTrend following
Updated 2 years ago None stated GitHub repository of Basic Signal Trading Bot

Orchard Simple EA Template

by OrchardForexTutorials
4 stars

This MetaTrader 4 expert advisor collection serves as a structured framework for building automated trading strategies. The included examples demonstrate how to implement indicator-based entries using the iCustom function, such as MACD and Parabolic SAR crossovers. It manages trades with basic risk controls including f

MT4 Framework & template Indicator crossover

MT4 Autotrade EMA RSI

by thomasngu0423
4 stars

This MetaTrader 4 expert advisor automates trading using a combination of trend-following and mean-reversion indicators. It executes trades based on the crossover of two Exponential Moving Averages, filtered by Relative Strength Index levels and Bollinger Band boundaries. The robot enters a position when an EMA crossov

MT4 Trading robot Indicator crossoverMean reversion
Updated 3 years ago None stated GitHub repository of MT4 Autotrade EMA RSI
4 stars

This MetaTrader 5 expert advisor implements a classic moving average crossover strategy with multi-symbol support. It enters trades when a fast simple moving average crosses a slow simple moving average. The robot features automated risk management, calculating position sizes based on a percentage of the account balanc

MT5 Trading robot Indicator crossover

Naive RSI EA

by ceevaaa
4 stars

This MetaTrader 5 expert advisor collection provides several automated strategies, primarily focusing on the Naive RSI EA. This robot enters trades by comparing Relative Strength Index values against two moving averages, buying when the RSI exceeds both and selling when it drops below both. It manages exits through fix

MT5 Collection Indicator crossoverTrend following
Updated 3 years ago None stated GitHub repository of Naive RSI EA

MQL5 Trading Bots Collection

by Thembekilemkh
4 stars

This repository provides a collection of MetaTrader 5 expert advisors centered on mean reversion and statistical regression techniques. The bots utilize indicators such as Bollinger Bands and moving averages to determine trade entries. Each trade is executed with predefined risk controls, including fixed point-based st

MT5 Collection Mean reversionIndicator crossover

Hercules MQL5 Library

by herculeshssj
4 stars

This repository contains a collection of MetaTrader 5 expert advisors and utility scripts. It includes a variety of automated strategies such as mean reversion, Dunnigan NRTR, and experiments with artificial intelligence. The library also features utility tools for Telegram integration, search functions, and signal das

MT5 Collection Mean reversionAI / machine learningIndicator crossover High risk Archived
4 stars

This MetaTrader 4 collection provides several scripts designed to analyze price action and candlestick patterns. It includes modules for moving average crossovers, Bollinger Bands, and a specialized candlestick analysis tool. The software identifies specific formations such as hammers, dojis, and engulfing candles by c

MT4 Collection SMC / ICT / price actionIndicator crossoverMean reversion
Updated 5 years ago None stated GitHub repository of Candlestick Charts System

Mql4 Trading Alerts

by alexmcmillan86
4 stars

This repository provides a collection of MetaTrader 4 utilities and expert advisors focused on technical signaling and market monitoring. The primary EA identifies exponential moving average crossovers, triggering terminal alerts when a fast EMA crosses a slow EMA on the completion of a candle. The collection includes

MT4 Collection Indicator crossover
Updated 6 years ago None stated GitHub repository of Mql4 Trading Alerts

Parallel System 3

by kaksuli
4 stars

Parallel System 3 is a MetaTrader 4 expert advisor developed specifically for trading gold. It utilizes a Directional Movement Index (DMI) signal generator with customizable smoothing periods and moving average methods. The trade management logic is based on a layered approach involving multiple trade packs, categorize

MT4 Trading robot Indicator crossoverTrend followingGrid High risk
Updated 6 years ago Apache-2.0 GitHub repository of Parallel System 3
4 stars

This collection provides a suite of trade management and execution assistants for MetaTrader 4 and MetaTrader 5. Designed to support manual trading, these utilities facilitate automatic position sizing and order placement via on-chart buttons rather than autonomous algorithmic decision-making. The repository includes s

MT4MT5 Collection NewsIndicator crossover
Updated 7 years ago None stated GitHub repository of Trading Tools Collection
4 stars

This repository is a comprehensive collection of MetaTrader 5 source code gathered from the MQL5 CodeBase and various technical articles. It serves as an archive of various trading systems, including trend-based impulse strategies, fuzzy logic applications, and standard indicator samples. The collection contains over 5

MT5 Collection Indicator crossoverTrend followingMulti-strategy
Updated 8 years ago None stated GitHub repository of All MQL5 Code Collection

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