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.

1,141 EAs match Clear filters

De Pip Sniper

by Oluwasakin-Tobi
16 stars

This expert advisor for MetaTrader 4 automates trading using five Exponential Moving Average periods to determine market direction. The developer notes an integration between C# and MQL4 for its operation. It manages trades with fixed stop loss and take profit parameters, ensuring each position has defined risk boundar

MT4 Trading robot Indicator crossoverTrend following
Updated 6 years ago None stated GitHub repository of De Pip Sniper

Adjustable MA

by EarnForex
15 stars

This MetaTrader expert advisor implements a classic moving average crossover strategy for both MT4 and MT5. It enters trades when a fast moving average crosses a slow moving average, requiring a user-defined minimum point difference to confirm the signal. The robot includes risk management features such as stop loss, t

MT4MT5 Trading robot Indicator crossover
Updated 5 months ago Apache-2.0 GitHub repository of Adjustable MA
15 stars

This visual trade management utility for MetaTrader 5 assists manual traders with order execution and risk management. It features interactive chart lines for entry, stop loss, and take profit levels, allowing for drag-and-drop price adjustments. The system automatically calculates position sizes based on a defined per

MT5 Trade manager
15 stars

This expert advisor establishes a bidirectional TCP communication bridge between MetaTrader 5 and a Python-based server. It functions as a client that transmits real-time symbol data and bid prices to an external environment on every price change. The implementation utilizes the Windows Ws2_32 library and a dedicated s

MT5 Copier & bridge

Fractals Trailing Stop

by EarnForex
15 stars

This expert advisor is a utility for MetaTrader 4 and MetaTrader 5 designed to manage stop-loss levels for existing trades. It utilizes Bill Williams' Fractals indicator to dynamically adjust the stop loss as new fractal points form on the chart. Users can configure the number of bars to scan and specify which fractal

MT4MT5 Trade manager
Updated 1 year ago Apache-2.0 GitHub repository of Fractals Trailing Stop

Ubot

by kudzaiprichard
15 stars

Ubot is an automated trading system for MetaTrader 4 that utilizes the Traders Dynamic Index (TDI) indicator to execute market entries. It identifies specific technical patterns described as sharkfin and squeeze setups to determine trend direction and volatility. The expert advisor features advanced trade management to

MT4 Trading robot Trend followingMean reversion
Updated 2 years ago Custom licence GitHub repository of Ubot

This repository contains a collection of MetaTrader 5 expert advisors based on popular technical indicators. The primary EA uses the Relative Strength Index to identify overbought and oversold conditions for trade entry. It manages risk through fixed stop loss and take profit settings, alongside a maximum position limi

MT5 Collection Mean reversionIndicator crossoverScalping

RSI EA

by EarnForex
14 stars

RSI EA is a MetaTrader 5 robot designed to execute trades based on the Relative Strength Index indicator. It functions as a template for mean-reversion strategies, triggering entries when the indicator crosses specific overbought and oversold thresholds. The expert advisor features comprehensive risk controls, includin

MT5 Trading robot Mean reversion
Updated 2 years ago Apache-2.0 GitHub repository of RSI EA
14 stars

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

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

MultiTrader

by mazmazz
14 stars

MultiTrader is a multi-currency expert advisor for MetaTrader 4 and MetaTrader 5 that executes trades across multiple forex instruments concurrently. It uses a modular system of filters to generate entry and exit signals based on various technical indicators. The EA manages risk through fixed or trailing stop losses, b

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

MA Cross EA

by eugenesia
14 stars

This MetaTrader 4 expert advisor implements a classic moving average crossover strategy to automate trade entries. The robot monitors two user-defined simple moving averages of different periods. It enters a trade when the faster moving average crosses above or below the slower moving average on a new bar. Risk managem

MT4 Trading robot Indicator crossoverTrend following
Updated 10 years ago None stated GitHub repository of MA Cross EA

EA MT5 Research Collection

by codingfordummies911
13 stars

This repository is a large collection of MetaTrader 5 expert advisors and indicators compiled for educational and research purposes. The library features various experimental scripts, with a notable focus on advanced machine learning methodologies including neural networks, reinforcement learning, and unsupervised algo

MT5 Collection AI / machine learning
Updated 8 months ago None stated GitHub repository of EA MT5 Research Collection

Mt5 Rest Api

by DevRico003
13 stars

This MetaTrader 5 expert advisor functions as a bridge, transforming the trading terminal into a REST API server for external algorithmic systems. It allows developers to execute trades, manage open positions, and retrieve historical candlestick data or account information using standard HTTP requests. The tool support

MT5 Copier & bridge
Updated 9 months ago None stated GitHub repository of Mt5 Rest Api
13 stars

This MetaTrader 5 expert advisor synchronizes trading activity between multiple terminal instances using a local file-based communication method. It features a dual-mode system where a master account writes current position data, including symbols, volumes, and price levels, to a binary file. Slave accounts monitor thi

MT5 Copier & bridge

CARA Correlation EA

by jblanked
13 stars

This MetaTrader 4 expert advisor facilitates automated trading based on asset correlations across various markets. It identifies opportunities within a predefined list of symbols, including forex pairs, cryptocurrencies, gold, and equity indices. The EA manages entries based on the relationship between these instrument

MT4 Trading robot ArbitrageMulti-strategy
Updated 2 years ago None stated GitHub repository of CARA Correlation EA

Docker MT5 SmartLever

by SmartLever
13 stars

This repository provides a complete environment to run MetaTrader 5 within a Docker container on Ubuntu, accessible through VNC. It includes a collection of expert advisors such as a 3D Correlation Matrix and standard technical strategy examples including MACD and Moving Average. A primary feature is the ZeroMQ expert

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

Orchard Simple EA Template

by OrchardForexTutorials
13 stars

This collection provides educational templates for building MetaTrader 5 Expert Advisors. It includes demonstration robots that interface with indicators like MACD and Parabolic SAR using the iCustom function. The repository serves as a learning resource for structuring MQL5 code and handling trade execution. Each exam

MT5 Framework & template Indicator crossoverTrend following

Forex Data Exporter

by mahdi-abbaspour-shahmarasi
13 stars

This MetaTrader 5 utility exports technical indicator data for various currency pairs to external formats. It processes values from several indicators, including the Relative Strength Index (RSI), multiple exponential and simple moving averages with customizable periods, and Ichimoku Kinko Hyo components. The tool is d

MT5 Utility
Updated 3 years ago None stated GitHub repository of Forex Data Exporter
13 stars

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

MT4 Trading robot AI / machine learningMartingale High risk

MQL4 Template

by KeisukeIwabuchi
13 stars

This MetaTrader 4 expert advisor provides a foundational framework for developers to create custom automated trading systems. It establishes a structured environment for handling trade signals, entry execution, and exit management. The template includes standard risk parameters such as fixed lot sizing, stop loss, and

MT4 Framework & template
Updated 6 years ago MIT GitHub repository of MQL4 Template
13 stars

PATI Trading Assistant is a MetaTrader 4 utility designed to facilitate trade management and bookkeeping based on the PATI trading methodology. It automates the placement of stop losses and take profits, specifically managing range breakout and pullback setups. The EA includes risk controls such as the Two Minute Rule

MT4 Trade manager BreakoutTrend following
13 stars

This repository contains a collection of over sixty experimental expert advisors for the MetaTrader 4 platform. The core functionality revolves around the Model Maker series, which uses statistical iterations to generate and test trading logic based on various input types and comparers. The system evaluates potential s

MT4 Collection Multi-strategy

MACD MME

by codingfordummies911
12 stars

This MetaTrader 5 expert advisor executes trades based on a combination of MACD signal levels and exponential moving average crossovers. It utilizes a 20-period and 6-period EMA to determine trend direction before initiating positions at specific MACD pip thresholds. The system employs a unique risk management approach

MT5 Trading robot Indicator crossoverTrend following
Updated 8 months ago None stated GitHub repository of MACD MME
12 stars

This MetaTrader 5 expert advisor implements a machine learning approach using a Decision Tree model to execute trades. It functions as a bridge between MetaTrader and a local Python-based server using sockets. The system utilizes MACD, RSI, and Exponential Moving Average indicators as primary data features for the neur

MT5 Trading robot AI / machine learningIndicator crossover
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
11 stars

This expert advisor acts as a trade manager for MetaTrader 4 and 5, focusing on automated stop-loss adjustments. It uses the Supertrend indicator to dynamically calculate and move the stop-loss level for existing positions. Users can filter which trades are managed based on symbol, magic number, trade type, or comments

MT4MT5 Trade manager
Updated 2 years ago Apache-2.0 GitHub repository of Supertrend Trailing Stop
11 stars

This MetaTrader 5 tool establishes a local socket server to facilitate communication between the trading platform and external Python applications. It uses a millisecond timer to monitor for incoming client connections and process received string commands. The utility acts as a bridge, allowing external scripts to inte

MT5 Copier & bridge
Updated 4 years ago None stated GitHub repository of Python MT4 Socket Server

Punlie Grid

by punlie
10 stars

Punlie Grid is a MetaTrader 5 expert advisor that executes a grid trading strategy tailored for gold, crude oil, and cryptocurrencies. It places orders at fixed point intervals and features a trend-following filter that uses daily timeframe data to align trades with the prevailing market direction. Risk controls includ

MT5 Trading robot GridTrend following High risk
Updated 1 year ago MIT GitHub repository of Punlie Grid

MyRandom

by EarnForex
10 stars

MyRandom is a proof-of-concept expert advisor for MetaTrader 4 and 5 that executes trades in random directions. Developed for educational purposes and backtesting research, the robot enters a position after a user-defined number of bars have passed. It includes standard risk management controls such as fixed lot sizing

MT4MT5 Trading robot
Updated 1 year ago Apache-2.0 GitHub repository of MyRandom

RSI Martingale EA

by peefpee
10 stars

This Expert Advisor for MetaTrader 5 implements a martingale trading strategy triggered by the Relative Strength Index (RSI). It opens an initial position when RSI reaches overbought or oversold thresholds. If price continues to move against the initial trade, the EA layers additional orders at set point intervals, mul

MT5 Trading robot MartingaleMean reversionGrid High risk

This repository contains a collection of MetaTrader 5 expert advisors designed for automated trading based on classic candlestick patterns. Each robot focuses on specific price action formations like Morning Star, Harami, or Engulfing candles, using oscillators such as Stochastic, RSI, CCI, or MFI for entry filtering.

MT5 Collection Mean reversion

Timed Order

by EarnForex
10 stars

Timed Order is a utility expert advisor that schedules market or pending orders to be executed at a specific time. It supports one-time execution or daily recurring trades on specified days of the week. The EA allows setting stop-loss and take-profit levels using fixed prices, point distances, ATR multipliers, or sprea

MT4MT5 Utility
Updated 1 year ago Apache-2.0 GitHub repository of Timed Order

The Falcon

by Lucas170
10 stars

The Falcon is a MetaTrader 4 expert advisor designed for automated trading using a combination of moving averages and Keltner Channels. It utilizes trend-following logic for entries and incorporates advanced position sizing features, including percentage-based risk, adaptive volatility sizing, and margin-per-lot constr

MT4 Trading robot Trend followingIndicator crossoverMartingale High risk
Updated 3 years ago None stated GitHub repository of The Falcon
10 stars

MT Live is a data streaming bridge for MetaTrader 5 that transmits real-time account information and trade data to the metatrader.live web service. It allows users to monitor their terminal activity remotely via a web browser, REST API, or WebSockets. The EA transmits details such as balance, equity, margin, and open p

MT5 Copier & bridge
10 stars

This expert advisor for MetaTrader 5 automates trade entries using a combination of Relative Strength Index (RSI), Money Flow Index (MFI), and multiple Moving Average periods. It identifies potential entry points based on overbought and oversold thresholds, specifically looking for RSI values below 30 or MFI values bel

MT5 Trading robot Mean reversionIndicator crossover
Updated 3 years ago None stated GitHub repository of Emreguven Forex Trading Bot
10 stars

This collection of MetaTrader 4 expert advisors focuses on technical analysis strategies such as moving average crossovers and chart patterns. The primary EA utilizes dual moving averages alongside fractal detection to identify entry points based on price momentum. It incorporates risk management tools including hard s

MT4 Collection Indicator crossoverScalpingTrend following
Updated 5 years ago None stated GitHub repository of Icus2 MT4 EA Collection
10 stars

This MetaTrader 4 expert advisor implements a reversal and trend-following strategy based on SOMAT3 and IRC Triplets indicators. It evaluates price action across consecutive bars to identify entries and offers an optional trend filter for signal validation. The system manages risk using fixed lot sizing, initial stop l

MT4 Trading robot Trend followingMean reversion
Updated 6 years ago None stated GitHub repository of PhD Appsolute System

MT4 Rest API Server

by mikha-dev
10 stars

This expert advisor functions as a bridge that transforms a MetaTrader 4 terminal into an HTTP REST server. It enables external applications to communicate with the trading platform using HTTP requests via a defined host and port. The tool manages command processing through a millisecond timer and includes an IP-based

MT4 Copier & bridge
Updated 7 years ago None stated GitHub repository of MT4 Rest API Server
10 stars

This expert advisor functions as a communication bridge between MetaTrader 4 and external software using the ZeroMQ messaging protocol. It enables a Python client to interact with the trading platform through a local server implementation on the MT4 terminal. The EA manages PUSH and PULL sockets to facilitate the excha

MT4 Copier & bridge
Updated 7 years ago None stated GitHub repository of MetaTrader 4 Zmq Server
10 stars

This Expert Advisor serves as a communication interface between MetaTrader 5 and external applications via the ZeroMQ messaging protocol. It establishes a TCP server using a REP socket to listen for incoming data and trading commands from external environments like Python. The EA runs on a high-frequency millisecond ti

MT5 Copier & bridge

Mayordomo

by AimakRokalno
10 stars

Mayordomo is a management expert advisor for MetaTrader 4 that facilitates account monitoring and remote trade intervention via Telegram. It periodically transmits balance, equity, and open position data to a designated Telegram channel. Beyond reporting, it acts as a controller, allowing users to close all active trad

MT4 Trade manager
Updated 8 years ago MIT GitHub repository of Mayordomo
9 stars

This tool provides an interface between MetaTrader 4 or 5 and an external AI-powered analysis server. It allows users to request market evaluations from over thirty-four different AI models through a custom Node.js API bridge. The provided example expert advisor visualizes analysis results—including market trend, trade

MT4MT5 Utility AI / machine learning
Updated 5 months ago Custom licence GitHub repository of Soluna AI Analysis Dashboard

MT5 Trade Panel

by maxime-fintech
9 stars

This MetaTrader 5 expert advisor acts as a manual trading assistant and management tool rather than an automated strategy. It provides a graphical interface for executing market, limit, and stop orders with integrated risk management. The panel automatically calculates lot sizes based on account percentage or fixed mon

MT5 Utility
Updated 8 months ago MIT GitHub repository of MT5 Trade Panel

MP Dashboard Collection

by codingfordummies911
9 stars

This repository serves as a collection of MetaTrader 4 tools and indicators, with its main script being a multi-pair trading dashboard. The dashboard operates as an on-chart utility, enabling users to execute manual buy, sell, and close orders across multiple instruments simultaneously using clickable buttons. It manag

MT4 Collection
Updated 9 months ago None stated GitHub repository of MP Dashboard Collection
9 stars

This MetaTrader 4 expert advisor acts as a bridge between Discord and the trading platform. It monitors specific text files in a local directory to receive commands and execute limit orders automatically. The bot utilizes Windows system calls via kernel32.dll for low-level file operations to synchronize with an externa

MT4 Copier & bridge
Updated 1 year ago None stated GitHub repository of Discord Limit Adder Bot

Zeus

by kecoma1
9 stars

Zeus is an expert advisor for MetaTrader 5 that employs a neural network to forecast future price targets. It analyzes historical price action by identifying relative highs and lows to generate inputs for its prediction model. The EA executes market orders when the model predicts a price move, automatically setting sto

MT5 Trading robot AI / machine learning
Updated 2 years ago MIT GitHub repository of Zeus

News Stopper

by faraz-hk
9 stars

News Stopper is a utility for MetaTrader 4 designed to manage trade exposure and platform activity around scheduled economic events. It fetches data from external news calendars to automatically disable the automated trading button, close open positions, or delete pending orders. The tool allows users to set specific t

MT4 News trading
Updated 2 years ago GPL-3.0 GitHub repository of News Stopper

Robot MA RSI

by DouglasVolcato
9 stars

Robot MA RSI is an automated trading expert advisor for MetaTrader 5 that employs a combination of exponential moving average crossovers and the Relative Strength Index. Users can choose between three entry strategies: moving average signals, RSI levels, or a combined approach requiring both conditions. The system mana

MT5 Trading robot Indicator crossoverMean reversion
Updated 2 years ago None stated GitHub repository of Robot MA RSI

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