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.

542 EAs match Clear filters

EA31337

by EA31337
1.3k stars

EA31337 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat

MT5 Trading robot Multi-strategyNewsTrend following
Updated 5 months ago GPL-3.0 GitHub repository of EA31337

Position Sizer

by EarnForex
594 stars

This risk management tool for MetaTrader 4 and 5 calculates optimal lot sizes based on user-defined risk parameters, account balance, and currency. It provides a graphical user interface for setting entry, stop loss, and take profit levels visually on the chart. The expert advisor accounts for commissions, swaps, and m

MT4MT5 Utility
Updated 8 days ago Apache-2.0 GitHub repository of Position Sizer
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

EA31337 Classes

by EA31337
269 stars

This development framework provides a comprehensive MQL library for building Expert Advisors, indicators, and scripts across MetaTrader 4 and 5 platforms. It facilitates cross-platform compatibility by offering a unified API that allows developers to port MQL4 code to MQL5 with minimal modifications. The library includ

MT5 Framework & template
Updated 5 months ago GPL-3.0 GitHub repository of EA31337 Classes

EA31337 Libre

by EA31337
252 stars

EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario

MT5 Trading robot Multi-strategyTrend followingMean reversion
Updated 1 year ago GPL-3.0 GitHub repository of EA31337 Libre

Darwinex DWX Connect

by darwinex
232 stars

DWX Connect is an open-source bridge that links external trading strategies written in Python, C#, or Java to MetaTrader 4 and 5. It functions as a server EA that facilitates communication via file-based messaging, allowing users to execute trades and subscribe to market data without coding in MQL. The EA manages trade

MT4MT5 Copier & bridge
Updated 1 year ago BSD-3-Clause GitHub repository of Darwinex DWX Connect

ICT Library MQ5

by xxvw
205 stars

This MetaTrader 5 library and expert advisor automates Smart Money Concepts (SMC) and Inner Circle Trader (ICT) methodologies. It identifies market structure shifts, breaks of structure, order blocks, and liquidity zones. The system features a confluence-based entry mechanism that evaluates signals against kill zones,

MT5 Framework & template SMC / ICT / price action
140 stars

This repository provides a collection of Expert Advisors for MetaTrader 5 and Python trading scripts developed for an educational YouTube series. It features various technical indicator-based strategies, including MACD, Relative Strength Index, Stochastic, and Bollinger Bands. The included MQL5 files implement multi-ti

MT5 Collection Indicator crossoverMean reversionTrend following
Updated 3 years ago None stated GitHub repository of Kecoma Trading Collection
131 stars

This collection of MetaTrader 5 expert advisor samples supplements the Darwinex educational video series on advanced MQL5 programming. It provides technical implementations for multi-symbol trade management and institutional-grade risk controls. The codebase includes specialized modules for calculating custom performan

MT5 Collection
Updated 4 years ago BSD-3-Clause GitHub repository of Darwinex Advanced MQL Samples

Account Protector

by EarnForex
124 stars

Account Protector is a risk management expert advisor for MetaTrader 4 and 5 designed to monitor account health and prevent excessive drawdowns. It allows users to set specific triggers based on floating profit or loss, equity levels, free margin, spread, or daily performance. When these conditions are met, the EA auto

MT4MT5 Risk & protection
Updated 7 months ago Apache-2.0 GitHub repository of Account Protector

Roffild Library

by Roffild
120 stars

Roffild Library is an extensive framework and collection of expert advisors for MetaTrader 5 that bridges MQL5 with modern data science tools. It provides functional implementations for machine learning models, specifically Multilayer Perceptron neural networks and Random Forests via the AlgLib library. The project fac

MT5 Framework & template AI / machine learning
Updated 6 years ago Apache-2.0 GitHub repository of Roffild Library
109 stars

MetaTrader 5 To Telegram is a utility expert advisor designed to bridge a MetaTrader 5 terminal with a Telegram bot. It monitors the trading account for updates and broadcasts notifications regarding orders, deals, and active positions to a specific user, group, or channel. The EA uses a timer-based system to process i

MT5 Copier & bridge
101 stars

This collection for MetaTrader 5 provides a library and several expert advisors optimized for Renko chart trading. It includes a primary automated robot that executes trades based on Renko bar signals, as well as specific examples for moving average and price crossovers. The included tools offer robust trade management

MT5 Collection Trend followingIndicator crossoverBreakout

MT5 REST API Server

by mikha-dev
97 stars

This utility for MetaTrader 5 transforms the trading terminal into a REST API server, enabling external software to control trading operations via HTTP. It facilitates remote account monitoring, price retrieval, and full trade execution, including market orders, pending orders, and partial closes. The system supports a

MT5 Copier & bridge
Updated 7 years ago None stated GitHub repository of MT5 REST API Server

Trade Split Manager

by codedpro
79 stars

This MetaTrader 5 expert advisor serves as an AI-friendly bridge, connecting external platforms to the terminal via REST API and TCP sockets. It specializes in intelligent order splitting, where a single trade signal is divided into up to ten individual positions with staggered take-profit levels and custom volume dist

MT5 Trading robot Multi-strategy
Updated 2 months ago Custom licence GitHub repository of Trade Split Manager
73 stars

This collection of MetaTrader 5 expert advisors provides a series of educational templates and multi-symbol trading robots. Developed as a companion to coding tutorials, the repository includes frameworks for building strategies using entry triggers and multiple filters. The included programs feature automated risk man

MT5 Collection Indicator crossoverTrend followingMulti-strategy
67 stars

This MetaTrader expert advisor functions as a trade manager that automates stop loss adjustments for existing positions. It specifically waits until a trade reaches a user-defined profit threshold in points before initiating a trailing stop. The tool includes flexible filtering options to manage specific symbols, magic

MT4MT5 Trade manager
Updated 3 months ago Apache-2.0 GitHub repository of Trailing Stop On Profit

Trading Panel

by Kashu7100
64 stars

This MetaTrader 5 tool acts as a discretion helper for manual traders to simplify order execution. It automates trade entries by applying calculated risk percentages and setting predefined stop loss and take profit values in pips. The utility features integrated trailing stop functionality, allowing users to define spe

MT5 Utility
Updated 2 years ago GPL-2.0 GitHub repository of Trading Panel
61 stars

This collection features several expert advisors for the MetaTrader 5 platform, each built around a different technical indicator such as MACD, RSI, Parabolic SAR, and Ichimoku Kinko Hyo. The robots execute trades based on classic signal logic, including zero-line crossings and signal line crossovers. Users can configu

MT5 Collection Indicator crossoverTrend followingMean reversion
Updated 6 years ago Custom licence GitHub repository of Pipbolt MT5 Expert Collection

Hitback ZMQ Bridge

by EricSchles
59 stars

This expert advisor functions as a data bridge for streaming real-time market information from MetaTrader 4 and 5 to external applications. It utilizes the ZeroMQ library to transmit price ticks and order book updates to a remote server. The tool is intended for developers building quantitative trading platforms or dat

MT4MT5 Copier & bridge
Updated 6 years ago Apache-2.0 GitHub repository of Hitback ZMQ Bridge

Sharing Is Caring

by wait4signal
58 stars

Sharing Is Caring is a MetaTrader 5 trade copier designed for local or remote synchronization between trading accounts. It operates in either provider or receiver mode, utilizing CSV files for local communication and FTP or HTTP for remote data transfer. The tool supports proportional lot sizing adjusted for balance an

MT5 Copier & bridge
Updated 2 years ago GPL-3.0 GitHub repository of Sharing Is Caring

AutoTrading Scheduler

by EarnForex
55 stars

This expert advisor provides automated schedule management for the MetaTrader 4 and MetaTrader 5 platforms. It allows users to define specific time windows for each day of the week to toggle the platform's global AutoTrading status. Beyond simple scheduling, the utility can close active positions and delete pending ord

MT4MT5 Risk & protection
Updated 6 months ago Apache-2.0 GitHub repository of AutoTrading Scheduler

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

This repository provides a series of educational code examples designed to help algorithmic traders transition from MetaTrader 4 to MetaTrader 5. The collection focuses on highlighting the technical improvements and syntax changes between the two versions of the MQL language. The included scripts demonstrate how to acc

MT4MT5 Collection
53 stars

This repository contains a collection of personal trading tools for MetaTrader 4 and MetaTrader 5. According to the author, the included expert advisors do not operate as fully automated trading robots. Instead, they function as execution assistants that help with manual trading by handling automatic position sizing an

MT4MT5 Collection
Updated 7 years ago None stated GitHub repository of Trading Tools Collection

Neo Trader

by diliproshitha
51 stars

Neo Trader is an order execution bridge that facilitates the transfer of trade data from TradingView to MetaTrader 4 and 5 terminals. Operating through a local socket server and a browser extension, it allows users to execute trades directly from TradingView position drawing tools. The expert advisor handles market and

MT4MT5 Copier & bridge
Updated 1 year ago Apache-2.0 GitHub repository of Neo Trader
46 stars

This repository provides a collection of standard MetaTrader 5 expert advisors bundled within a Docker container environment. It includes classic MetaQuotes examples such as the MACD Sample and Moving Average, which execute trades based on technical indicator crossovers and trend filters. The primary MACD expert featur

MT5 Collection Indicator crossoverTrend following
Updated 9 years ago None stated GitHub repository of MT5 Docker EA Collection

Telegram Trading Bot

by fabioo29
41 stars

This MetaTrader 5 expert advisor functions as a remote management bridge, enabling users to execute and oversee trades through Telegram messages. It supports market and limit orders with user-defined stop losses and handles trade modifications such as closing positions or adjusting stop levels remotely. The tool featur

MT5 Copier & bridge
40 stars

This educational collection provides a foundation for building MetaTrader 5 expert advisors through a series of modular code snippets and a primary RSI-based trading robot. The included expert advisor executes trades based on Relative Strength Index overbought and oversold levels, supporting both live and closed candle

MT5 Collection Mean reversionIndicator crossoverTrend following

AR Trading Panel

by Andrukas8
37 stars

This MetaTrader 5 utility is a comprehensive manual trading panel and risk management suite. It simplifies order execution by calculating lot sizes based on a defined risk percentage of account equity. Users can manage trades via automated break-even points, multi-mode trailing stops including Fractals, Moving Averages

MT5 Utility SMC / ICT / price actionIndicator crossoverMulti-strategy
Updated 1 year ago None stated GitHub repository of AR Trading Panel

Chart Pattern Helper

by EarnForex
34 stars

This utility for MetaTrader 4 and 5 automates trade execution based on trader-defined chart patterns. Users draw trendlines, horizontal lines, or channels, which the expert advisor monitors to place pending breakout orders. It handles trade entries, stop losses, and take profits according to specific object naming conv

MT4MT5 Utility Breakout
Updated 1 year ago Apache-2.0 GitHub repository of Chart Pattern Helper
31 stars

This MetaTrader 5 expert advisor serves as a foundational framework for developing automated trading strategies. It streamlines the creation process by providing pre-built modules for position sizing, risk management, and trade execution. The system includes parameters for ATR-based stop-loss and take-profit calculatio

MT5 Framework & template

MT5 MA Crossover Bot

by LucasMarianoVieira
31 stars

This MetaTrader 5 expert advisor implements a classic dual moving average crossover strategy. It tracks short-term and long-term moving averages, entering a buy position when the faster line crosses above the slower line and a sell position when it crosses below. Upon receiving a new signal, the bot automatically close

MT5 Trading robot Indicator crossoverTrend following
Updated 9 years ago None stated GitHub repository of MT5 MA Crossover Bot

This repository provides a diverse collection of MetaTrader 5 expert advisors focusing on technical indicator automation. The core component aggregates signals from a wide array of standard tools, including trend-following moving averages, oscillators like RSI and MACD, and Bill Williams indicators. It includes specifi

MT5 Collection Trend followingIndicator crossoverMulti-strategy

Vnpy Mt5 Gateway

by veighna-global
29 stars

This expert advisor serves as a bridge between MetaTrader 5 and the VeighNa Evo quantitative trading framework. It uses ZeroMQ sockets and JSON messages to enable remote control of the terminal via Python. The system supports market data subscriptions, order execution, and history queries. It is designed specifically f

MT5 Copier & bridge

MQL Trading Panel

by SSinist3r
28 stars

This expert advisor functions as a manual trading assistant for MetaTrader 4 and MetaTrader 5, designed to simplify discretionary order management. It provides a graphical interface on the chart, allowing users to execute trades with pre-defined risk parameters. The tool includes options for percentage-based risk calcu

MT5 Utility
Updated 5 years ago GPL-2.0 GitHub repository of MQL Trading Panel
27 stars

This MetaTrader 5 expert advisor serves as a foundational template for building automated trading systems. The README is minimal, but the code provides a structured framework for beginners to implement custom entry and exit logic using price data and technical indicators. It includes examples of Exponential Moving Aver

MT5 Framework & template Indicator crossoverSMC / ICT / price action

Telegram Signal Trader

by nguemechieu
25 stars

This expert advisor bridges MetaTrader 4 and MetaTrader 5 with Telegram to facilitate signal-based trading and remote account management. It can execute trades from external signals or generate its own alerts using built-in indicators such as Ichimoku, Bollinger Bands, and Momentum. The software includes the ability to

MT4MT5 Copier & bridge NewsMulti-strategy
Updated 2 years ago Apache-2.0 GitHub repository of Telegram Signal Trader
24 stars

Metatrader WebSocket Tickers is a data bridge for MetaTrader 5 that streams real-time ticker updates to external servers. It allows developers to export live market data for use in third-party applications or custom analysis tools via the WebSocket protocol. The utility monitors a specific list of symbols and employs a

MT5 Copier & bridge

Amazing

by EarnForex
24 stars

Amazing is a news trading expert advisor for MetaTrader 4 and 5 designed to capture volatility during scheduled economic announcements. It operates as a semi-automatic tool, requiring the user to manually input the specific date and time of an upcoming news event. The EA places two symmetrical pending orders at a defin

MT4MT5 News trading News
Updated 3 years ago Apache-2.0 GitHub repository of Amazing
24 stars

This repository contains a diverse collection of MetaTrader 5 Expert Advisors and tools developed for instructional purposes. The included robots cover various trading methodologies, such as moving average crossovers, RSI divergences, gap reversals, and candlestick patterns like the Red-White-Red strategy. The EAs typi

MT5 Collection Indicator crossoverMean reversionMulti-strategy
Updated 4 years ago None stated GitHub repository of Victor Algo MQL5 Collection
22 stars

This repository provides a collection of MetaTrader 5 expert advisors and indicators developed for experimental purposes. It features a range of trading systems, including standard MetaQuotes examples and custom implementations like NERV and RNN-based logic. The primary expert advisors utilize technical indicators such

MT5 Collection Indicator crossoverMulti-strategyAI / machine learning

TradeSync Transmitter

by GeneralTradingSarl
21 stars

TradeSync Transmitter is a MetaTrader 5 expert advisor designed to broadcast trading activity from a host terminal to external receivers. It functions as the transmitter component of a trade copying system, sending real-time trade requests and periodic position summaries to a remote server or local CSV files. The utili

MT5 Collection
Updated 4 days ago None stated GitHub repository of TradeSync Transmitter

Galaxy Trader

by phamngocvinh
21 stars

Galaxy Trader is a collection of MetaTrader 5 expert advisors focused on trend following using the Ichimoku Kinko Hyo indicator. The primary component, Trend Catcher, monitors up to three distinct timeframes simultaneously to identify bullish or bearish market conditions. It executes trades based on cloud positions for

MT5 Collection Trend followingMulti-strategy Archived
Updated 4 years ago GPL-3.0 GitHub repository of Galaxy Trader

Basic Bollinger Bands EA

by terencebeauj
21 stars

This MetaTrader 5 expert advisor utilizes the Bollinger Bands and Parabolic SAR indicators to execute trades based on market volatility. It functions as an entry-level algorithmic trading template, allowing users to modify strategy logic or optimize parameters using the MT5 Strategy Tester. The bot manages risk through

MT5 Trading robot Mean reversionTrend following
21 stars

This MetaTrader 5 repository provides a suite of utility scripts designed for data extraction and system monitoring. The primary tool automates the exportation of historical price data, including OHLC values, tick volumes, and spreads, into CSV files for external analysis. It supports a predefined list of forex pairs,

MT5 Collection
Updated 6 years ago None stated GitHub repository of MQL5 Data Export Collection

Trader Pad

by erlonfs
20 stars

Trader Pad is a trade management utility for MetaTrader 5 designed to automate position exits and risk control after an entry is initiated. The software handles stop-loss and take-profit placement in ticks, providing advanced trailing stop logic and break-even functionality. It allows users to scale out of positions th

MT5 Trade manager
Updated 4 years ago MIT GitHub repository of Trader Pad

Makets GA

by nopaixx
20 stars

Makets GA is a neural network trading system for MetaTrader 5 that utilizes genetic algorithms to optimize weights for multi-layer perceptrons. Instead of standard price prediction, the EA evolves trading strategies by processing price data across several major currency pairs simultaneously. It implements evolutionary

MT5 Trading robot AI / machine learningMulti-strategy
Updated 8 years ago None stated GitHub repository of Makets GA

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