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.

865 EAs match Clear filters
16 stars

This framework provides MQL5 header files and example expert advisors designed to trade on non-time-based Range Bar charts within MetaTrader 5. It includes template robots for moving average crossovers and Super Trend strategies. The included code manages trade execution with configurable stop loss, take profit, break-

MT5 Framework & template Indicator crossoverTrend following

Elephant Walk

by erlonfs
16 stars

Elephant Walk is a MetaTrader 5 expert advisor based on the trading methodology of Oliver Velez. It automates entries using moving average crossovers and price action patterns often associated with large bars or elephant candles. The EA provides extensive trade management options, including trailing stops, break-even a

MT5 Trading robot Indicator crossoverSMC / ICT / price action
Updated 7 years ago MIT GitHub repository of Elephant Walk
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

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

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

This MetaTrader 5 repository features a diverse collection of automated trading strategies, including indicator-based scalpers and price action robots. The experts utilize technical filters such as Average True Range periods and baseline moving averages to identify entry signals. Key risk management features integrated

MT5 Collection Trend followingBreakoutScalping

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

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

RL Agent Trader

by rezakarbasi
12 stars

RL Agent Trader is an expert advisor for MetaTrader 5 that integrates with a Python-based reinforcement learning environment via network sockets. It implements a breakout strategy based on the highest and lowest prices of previous candles. The core functionality relies on a Deep Q-Network (DQN) in Python to dynamically

MT5 Trading robot BreakoutAI / machine learning
Updated 2 years ago None stated GitHub repository of RL Agent Trader
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

Fimathe EA

by yolisses
12 stars

Fimathe EA is a MetaTrader 5 robot designed to automate the Fimathe trading technique. It replaces manual channel drawing by analyzing a user-defined range of historical candles to determine reference channels and neutral zones. The system identifies price partitions and uses the median distance to set entry levels. Fo

MT5 Trading robot BreakoutTrend followingSMC / ICT / price action
Updated 5 years ago None stated GitHub repository of Fimathe EA
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

Falcon F2

by vzhomeexperiments
11 stars

Falcon F2 is an expert advisor for MetaTrader 4 that implements model-based trading by interpreting external signals. The robot acts as an execution interface for predictions generated outside the platform, such as those from R-based models or a Decision Support Centre. It enters trades when predicted price changes exc

MT4 Trading robot AI / machine learning
Updated 5 years ago MIT GitHub repository of Falcon F2
11 stars

This MetaTrader 4 expert advisor automates trading by combining the Relative Strength Index (RSI) with Ichimoku Kumo signals. It scans every instrument listed in the Market Watch window to identify entries across multiple pairs simultaneously. The robot includes a built-in spread filter to avoid high-cost executions an

MT4 Trading robot Trend followingMean reversion
Updated 6 years ago None stated GitHub repository of RSI Ichimoku Trader Bot

MQL5 Algorithms

by MoritzGoeckel
11 stars

This collection provides automated trading scripts and utilities for the MetaTrader 5 platform. The primary expert advisor, MATrader, utilizes a moving average crossover strategy specifically designed for the one-minute timeframe. It monitors the relationship between fast and slow moving averages to identify trends, en

MT5 Collection Indicator crossoverTrend following
Updated 9 years ago None stated GitHub repository of MQL5 Algorithms

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
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 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 MetaTrader 5 Expert Advisor implements a neural network-based trading strategy using the ONNX format for model deployment. It bridges a Python-trained machine learning model with the MQL5 platform to automate trade execution based on price change predictions. The system includes integrated risk management controls

MT5 Trading robot AI / machine learning
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

Neural Network Tester Improved

by PhiAlphaInvestments
9 stars

Neural Network Tester Improved is a MetaTrader 5 expert advisor designed as a framework for integrating machine learning models into automated trading. The repository includes a main tester file that references an external neural network library. Currently, the source code provides a basic structure for initialization

MT5 Framework & template AI / machine learning

Aurum79

by oknoorap
9 stars

Aurum79 is a connectivity bridge that links MetaTrader 5 to external JavaScript environments via a local socket server. The expert advisor transmits live price ticks and historical candle data to a Node.js client, which can then process the information using external libraries such as TensorFlow.js. It receives and exe

MT5 Copier & bridge AI / machine learning
Updated 3 years ago MIT GitHub repository of Aurum79

Tick Collector MySQL

by Lxbinary
9 stars

This MetaTrader 5 tool records real-time tick data directly into an external MySQL database. It utilizes the libmysql library to establish a direct connection, requiring DLL execution to be enabled within the terminal. The expert can monitor a specific list of symbols provided in the settings or automatically collect d

MT5 Utility
Updated 7 years ago GPL-3.0 GitHub repository of Tick Collector MySQL

Repeat EA

by KeisukeIwabuchi
9 stars

This MetaTrader 4 expert advisor executes trades repeatedly at a user-defined price level. The robot monitors price action and opens a buy or sell position when the market reaches the specified entry price. Once a trade is closed via the designated take profit target, the EA resets and prepares to re-enter the market a

MT4 Trading robot
Updated 8 years ago MIT GitHub repository of Repeat EA

Suvorov MQL4 Expert Collection

by suvorovkonstantin
9 stars

This repository contains a collection of MetaTrader 4 expert advisors focusing on technical analysis and pattern recognition. The included tools range from robots utilizing Volume Spread Analysis (VSA) and fractal-based trend detection to indicators like NeuroMACD and ACD patterns. The primary EA uses ZigZag and fracta

MT4 Collection Trend followingSMC / ICT / price actionIndicator crossover

MetaTrader AI

by jblanked
8 stars

This AI-driven trading assistant integrates Large Language Models like OpenAI and DeepSeek into the MetaTrader 5 platform. It functions as an interactive chat-based assistant and robot, capable of opening, closing, and modifying positions based on natural language prompts. The system can fetch real-time market data, ca

MT5 Trading robot AI / machine learning

Autumn Harvest

by wait4signal
8 stars

Autumn Harvest is a multi-strategy MetaTrader 5 expert advisor incorporating technical patterns such as RSI reversals, peak reversals, and the ignored bar strategy. It functions as both an automated trading robot and a position manager, allowing it to maintain external trades or its own. The EA includes risk controls l

MT5 Trading robot Mean reversionTrend followingMulti-strategy
Updated 1 year ago GPL-3.0 GitHub repository of Autumn Harvest

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