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.

196 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

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

This is a modular MetaTrader 5 expert advisor framework designed to accelerate the development of custom trading strategies. It provides a standardized base that includes position management, risk controls, and multi-symbol support. The template features configurable entry and exit logic, integrated stop loss and take

MT5 Framework & template Martingale High risk

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

Orchard Forex Framework 3

by OrchardForexTutorials
64 stars

Orchard Forex Framework 3 is an educational development library for MetaTrader 5. It provides a structured foundation for building Expert Advisors using object-oriented programming. The repository includes base classes for handling trades, managing positions, and integrating common technical indicators like RSI, MACD,

MT5 Framework & template Grid High risk

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

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

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 features a collection of MetaTrader 5 trading utilities and management tools. The central component is the ASQ Command Desk, a manual trading dashboard that offers one-click execution and hotkey support. It manages positions using a three-stage partial take-profit logic and provides various trailing sto

MT5 Collection ScalpingMartingale High risk

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

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

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

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

This MetaTrader 5 collection features two primary components: a manual risk management panel and an automated confluence robot. The TyAlgo advisor executes trades using the No Nonsense Forex method, aggregating signals from various technical indicators via global variables. Risk is managed through the TyphooN tool, whi

MT5 Collection Trend followingMulti-strategyMartingale High risk

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

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

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

ATR Trailing Stop

by EarnForex
19 stars

This trade manager for MetaTrader 4 and 5 automatically adjusts the stop-loss levels of open positions using the Average True Range indicator. It allows users to define the trailing distance through a configurable ATR period and multiplier. The expert advisor includes filtering logic to apply the trailing stop only to

MT4MT5 Trade manager
Updated 6 months ago Apache-2.0 GitHub repository of ATR Trailing Stop

MT4 Ticks To MT5

by JafferWilson
19 stars

This utility synchronizes tick data and historical price information from MetaTrader 4 to MetaTrader 5 in real-time. It utilizes a socket communication library to transmit data between the two platforms, requiring an active expert advisor on both terminals. The receiver component creates custom symbols in the MetaTrade

MT4MT5 Copier & bridge
Updated 6 years ago LGPL-3.0 GitHub repository of MT4 Ticks To MT5

PyMQL5

by MaiconBaggio
19 stars

PyMQL5 is a bridging tool that connects Python 3 environments with MetaTrader 5 via a UDP socket. The Expert Advisor functions as a local server, allowing external Python scripts to query historical time series data, current market prices, and account status. It provides comprehensive trading capabilities, enabling the

MT5 Copier & bridge
Updated 6 years ago MIT GitHub repository of PyMQL5

Python Mql5 Sockets

by RafaelFenerick
19 stars

This MetaTrader 5 utility establishes a bridge between the trading platform and Python environments using socket communication. It operates as a client that connects to a specified server to exchange string data at regular intervals. The tool facilitates bi-directional data transmission, allowing users to send messages

MT5 Copier & bridge
Updated 8 years ago GPL-3.0 GitHub repository of Python Mql5 Sockets

X-Tick Chart SDK

by 9nix6
18 stars

This repository provides a software development kit and a collection of example Expert Advisors for MetaTrader 5 designed to work with custom tick and volume bar charts. It includes template robots that execute trades based on moving average crossovers or price action relative to moving averages on non-time-based chart

MT5 Framework & template Indicator crossover
Updated 5 years ago GPL-3.0 GitHub repository of X-Tick Chart SDK

Mql5 Json Api

by parrondo
18 stars

This expert advisor acts as a server bridge for MetaTrader 5, facilitating communication with external applications via ZeroMQ sockets and JSON messaging. It enables remote control from languages like Python to request account details, trade history, and current positions. The system supports the execution of market an

MT5 Copier & bridge Martingale High risk
Updated 6 years ago GPL-3.0 GitHub repository of Mql5 Json Api

Heiken Ashi Naive

by EarnForex
17 stars

Heiken Ashi Naive is a trading robot for MetaTrader 4 and 5 that executes trades based on Heiken Ashi candle characteristics, including body length and wick presence. It evaluates candle sequences to enter positions and can be configured to either follow the trend or operate in an inverted mode for mean-reversion. Risk

MT4MT5 Trading robot Trend followingMean reversion
Updated 1 year ago Apache-2.0 GitHub repository of Heiken Ashi Naive

PSAR Trailing Stop

by EarnForex
16 stars

PSAR Trailing Stop is a management utility for MetaTrader 4 and 5 that automates the adjustment of stop-loss levels for open positions. Instead of manual movement, it follows the Parabolic SAR indicator values to lock in profits or minimize losses as a trend progresses. The software includes filtering options to target

MT4MT5 Trade manager
Updated 2 years ago Apache-2.0 GitHub repository of PSAR Trailing Stop
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

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

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

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

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

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