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.

447 EAs match Clear filters
2 stars

This MetaTrader 4 expert advisor and modular framework provides advanced trade management and position scaling capabilities. It features a linear trailing stop that triggers at a predefined profit level and a pyramiding system to add positions to winning trades using a lot multiplier. The code is structured as a librar

MT4 Framework & template Trend followingIndicator crossoverGrid High risk

Hosopi

by harukihosono
2 stars

Hosopi operates as an automated trading robot for the MetaTrader 4 and MetaTrader 5 platforms. It utilizes a modular architecture to handle trade execution and account protection, incorporating indicator-based entry logic and volatility filtering. The software includes a Funds Guard to prevent orders during insufficien

MT4MT5 Trading robot Multi-strategy
Updated 2 months ago None stated GitHub repository of Hosopi
2 stars

SoftArsenal is a collection of MetaTrader 4 expert advisors and development tools. The repository features a custom expert advisor named Aberration, which utilizes Bollinger Bands to identify market breakouts. It places pending buy and sell stop orders at the outer bands and dynamically adjusts stop loss levels to the

MT4 Collection BreakoutTrend followingIndicator crossover
Updated 2 months ago None stated GitHub repository of SoftArsenal EA Collection
2 stars

This utility for MetaTrader 4 and 5 provides an on-chart interface for manual trade execution and position management. It automatically applies stop losses to new orders and features a trailing stop mechanism to manage open trades. Notable management tools include one-click break-even and the ability to close a specifi

MT4MT5 Trade manager

Pi EA Auxiliary Panel

by my05613828
2 stars

Pi EA Auxiliary Panel is a management tool for MetaTrader 4 and 5 designed to enhance manual order execution and automated trade handling. It features an interactive on-chart interface that allows users to split large orders into smaller positions, apply automated break-even levels, and execute trailing stops for indiv

MT4MT5 Trade manager
Updated 5 months ago None stated GitHub repository of Pi EA Auxiliary Panel
2 stars

MQL Realtime Dashboard is a monitoring utility for MetaTrader 4 and 5 that exports account information to a web-based dashboard in real time. It collects account metrics including balance, leverage, equity, and historical trade data such as win rates and drawdown statistics. The expert advisor establishes a TCP connect

MT4MT5 Utility

OverNight Close EA

by harukihosono
2 stars

OverNight Close EA is a trade management utility for MetaTrader 4 and 5 designed to automatically close open positions and delete pending orders at specified times. It allows users to set unique closing windows for each day of the week, making it useful for prop firm traders who need to avoid weekend carryover. The EA

MT4MT5 Trade manager
Updated 10 months ago None stated GitHub repository of OverNight Close EA

Buy Low Sell High EA

by yeainshukla
2 stars

This MetaTrader 4 expert advisor implements a cumulative profit strategy based on support and resistance levels. The system identifies potential trade entries by analyzing historical price extremes over a defined lookback period while excluding recent price action. It manages trade exits collectively, closing the entir

MT4 Trading robot Mean reversionHedging
Updated 1 year ago None stated GitHub repository of Buy Low Sell High EA

Mansa Mussa

by JohnBrandews
2 stars

This MetaTrader 4 expert advisor is an automated trading robot developed using the fxDreema visual building framework. It utilizes an adaptive Relative Strength Index for market analysis and trade execution. The system features risk management controls based on account percentages, including inputs for balance-based si

MT4 Trading robot Mean reversionMartingale High risk
Updated 1 year ago None stated GitHub repository of Mansa Mussa
2 stars

This expert advisor functions as a bridge connecting MetaTrader 4 to Python through a MySQL database and a custom C++ DLL. It facilitates the real-time extraction of market data, including tick prices, account equity, and order information, which are stored in database tables for advanced analysis. The tool also suppor

MT4 Copier & bridge
Updated 1 year ago None stated GitHub repository of MT4 MySQL Python Bridge

Position Sizer

by techteam92
2 stars

The Position Sizer is a trade management tool for MetaTrader 4 and 5 that calculates the appropriate lot size based on account balance and risk tolerance. It allows traders to define risk as a percentage or fixed monetary amount, adjusting the position size dynamically as stop-loss and take-profit lines are moved on th

MT4MT5 Utility
Updated 1 year ago Apache-2.0 GitHub repository of Position Sizer

TonTai Simple Copier

by piyawatton
2 stars

This MetaTrader 4 expert advisor functions as a trade copying utility designed to synchronize orders between different accounts. It utilizes a master-slave architecture where the master instance exports trade data to a common CSV file and the slave instance replicates those positions. The tool provides options for lot

MT4 Copier & bridge
Updated 1 year ago None stated GitHub repository of TonTai Simple Copier

Ario Averaging

by ariogunawan
2 stars

This MetaTrader 4 expert advisor implements an averaging strategy that manages trades by opening additional layers at predefined intervals when the market moves against the initial position. It features modes for both averaging up and down, with the ability to alternate between buy and sell orders. The EA includes risk

MT4 Trading robot GridMartingaleHedging High risk
Updated 2 years ago None stated GitHub repository of Ario Averaging
2 stars

This repository functions as a large collection of over 170 MetaTrader 4 expert advisors provided in source code format for further development. The library includes various automated trading robots based on popular technical indicators such as Heiken Ashi, RSI, Stochastic, and MACD crossovers. The included files utili

MT4 Collection Indicator crossoverTrend followingMean reversion High risk

Framework4o

by Capital-Advisory-Technology
2 stars

Framework4o is a modular system building framework and expert advisor for MetaTrader 4. It provides a structured environment for developing trading models with pre-defined modules for position and risk management. The core functionality handles entry and exit logic using indicators like DEMA, EMA, and RSI. It includes

MT4 Framework & template Trend followingIndicator crossover
Updated 2 years ago GPL-3.0 GitHub repository of Framework4o
2 stars

This MetaTrader 4 utility acts as a bridge between custom technical indicators and Telegram channels for signal distribution. It monitors specific indicator buffers to identify trade entries and transmits alerts to a designated chat via the Telegram API. The tool is specifically configured for binary options workflows,

MT4 Copier & bridge Martingale High risk

FaSt EA

by Hohlas
2 stars

FaSt is an automated trading robot for MetaTrader 4 that determines entries based on price extremes and trend direction indicators. The system employs Average True Range (ATR) to calculate dynamic stop loss and take profit levels, ensuring volatility-adjusted risk control. It includes multiple signal filters, trailing

MT4 Trading robot Trend followingBreakout
Updated 3 years ago None stated GitHub repository of FaSt EA

Telegram Alert MT4 Bot

by miniTalDev
2 stars

This expert advisor for MetaTrader 4 acts as a bridge between the trading terminal and Telegram. It monitors the account for new, modified, or closed orders and automatically sends the details to a specified Telegram channel or group using the Telegram Bot API. The tool functions as a signal transmitter, allowing users

MT4 Copier & bridge
Updated 3 years ago None stated GitHub repository of Telegram Alert MT4 Bot

MQL4 To CSharp Bridge DNNE

by DennisGundersen
2 stars

This framework provides a prototype and tutorial for connecting MetaTrader 4 MQL code to modern .NET 6+ managed code using Dot Net Native Exports. It functions as a technical bridge rather than a trading robot, allowing developers to extend MetaTrader 4 capabilities with C# libraries. The included Expert Advisor serves

MT4 Framework & template

MQL4 Tutorial Collection

by a-forghani-y79
2 stars

This MetaTrader 4 repository serves as a research and development environment for MQL4 algorithmic trading. It includes multiple experimental files focusing on pivot point identification and volume-based price analysis. The code explores custom data structures for price action and seeks to implement specific strategies

MT4 Collection Multi-strategy
Updated 3 years ago None stated GitHub repository of MQL4 Tutorial Collection

Rest API MT4 Order

by LilyRisa
2 stars

This bridge for MetaTrader 4 enables external control of the trading platform via a REST API. By connecting to a PHP-based web server through a socket, it allows users to perform trading operations like opening and closing orders, fetching trade history, and listing symbols using standard HTTP requests. The expert advi

MT4 Copier & bridge
Updated 3 years ago None stated GitHub repository of Rest API MT4 Order

HFT V1

by mojtaba-abedini
2 stars

HFT V1 is a MetaTrader 4 expert advisor designed to execute trades based on historical data analysis. The robot calculates dynamic price levels, including mid-lines and breath levels, by evaluating a minimum threshold of previous account history. It manages risk through fixed stop loss and take profit settings, with lo

MT4 Trading robot Mean reversionBreakout
Updated 4 years ago None stated GitHub repository of HFT V1

Bot Trend Line

by thanhntt89
2 stars

Bot Trend Line is an automated trading tool for MetaTrader 4 that executes orders based on price interactions with trendlines. The expert advisor monitors lines to trigger market or pending orders when specific price conditions are met. It manages risk through a fixed risk-per-deal setting and includes account-level sa

MT4 Trading robot BreakoutSMC / ICT / price action
Updated 4 years ago None stated GitHub repository of Bot Trend Line

Mt4api ZeroMQ

by RedDawe
2 stars

This expert advisor for MetaTrader 4 acts as a bridge using the ZeroMQ protocol to connect the trading terminal with external environments. It facilitates bidirectional communication, allowing users to send trade commands and retrieve market data or account status via TCP sockets. The system supports multiple instrumen

MT4 Copier & bridge
Updated 5 years ago None stated GitHub repository of Mt4api ZeroMQ

Trade Manager EA

by Oukaharry
2 stars

Trade Manager EA is a utility for MetaTrader 4 designed to simplify order placement and position management. It features a graphical user interface that allows users to open trades and visually define multiple stop loss and take profit levels. The expert advisor includes logic for partial closing of orders and uses a t

MT4 Trade manager
Updated 5 years ago None stated GitHub repository of Trade Manager EA

Mql Open Trade

by shohdi
2 stars

This MetaTrader 4 collection provides several expert advisors designed to automate trade entry with integrated risk controls. The tools calculate lot sizes based on a user-defined percentage of account capital, ensuring consistent exposure. Users can configure the trade direction, expected duration, and risk-to-reward

MT4 Collection Indicator crossoverMulti-strategy
Updated 5 years ago None stated GitHub repository of Mql Open Trade

ZeroMQ MetaTrader Bridge

by bendicsekb
2 stars

This MetaTrader 4 Expert Advisor acts as a communication interface using the ZeroMQ library to link the terminal with external software. It functions as a server through REP and PUSH sockets, allowing external logic to execute trades via TCP ports. The tool includes standard risk controls such as stop loss and take pro

MT4 Copier & bridge
Updated 5 years ago None stated GitHub repository of ZeroMQ MetaTrader Bridge

Dv Tools

by dorev
2 stars

Dv Tools is an open-source development framework and utility library for MetaTrader 4. It provides MQL4 programmers with modern C++ inspired data structures, including vectors and maps for handling both primitive types and objects. The library simplifies chart graphic management through a dedicated UI manager and offer

MT4 Framework & template
Updated 5 years ago MIT GitHub repository of Dv Tools
2 stars

This MetaTrader 4 utility calculates and displays a five percent daily drawdown limit directly on the chart. It determines the daily starting balance by analyzing the account history and subtracting current-day profits from the total balance. Designed as a monitoring tool for traders following specific risk management

MT4 Risk & protection
Updated 5 years ago None stated GitHub repository of Daily Drawdown Monitor

Allin Breakout MT4

by 4Bet-Allin
2 stars

This MetaTrader 4 expert advisor executes a breakout strategy based on price extremes established during specific trading hours. It identifies the high and low levels from recent hourly candles and enters positions when price breaches these thresholds. The EA includes automated risk management features such as dynamic

MT4 Trading robot Breakout
Updated 5 years ago None stated GitHub repository of Allin Breakout MT4
2 stars

This MetaTrader 4 expert advisor utilizes technical indicators to execute trades based on trend and momentum. The logic employs two simple moving averages (15 and 50 periods) alongside the Relative Strength Index to identify entries. It seeks buy or sell opportunities when moving averages crossover, provided the RSI co

MT4 Trading robot Indicator crossoverTrend following
Updated 6 years ago None stated GitHub repository of My X Series Trading Robots

MA Cross

by rrg890
2 stars

This MetaTrader 4 expert advisor automates trading based on the crossover of two Simple Moving Averages. The robot enters a buy position when the short-term moving average crosses above the long-term moving average and a sell position when it crosses below. It manages exits by monitoring for reverse signals to close ac

MT4 Trading robot Indicator crossoverTrend following
Updated 6 years ago None stated GitHub repository of MA Cross
2 stars

This MetaTrader 4 expert advisor implements a trend-following strategy using exponential moving average crossovers. It automates trade entries when momentum shifts and manages exits based on a user-defined reward-to-risk ratio. The system features a dynamic position sizing algorithm to adjust lot sizes relative to acco

MT4 Trading robot Indicator crossoverMartingaleHedging High risk
2 stars

A collection of MetaTrader 4 expert advisors designed for trend-following strategies. The primary logic uses Donchian Channel breakouts with configurable periods for entries and exits. It features robust risk management, including percentage-based lot sizing and volatility-based stop loss and take profit levels calcula

MT4 Collection Trend followingBreakout
Updated 6 years ago None stated GitHub repository of Simple Trend EA Collection

Ichimoku EA

by anwarminarso
2 stars

This MetaTrader 4 expert advisor executes trades based on the Ichimoku Kinko Hyo indicator. It incorporates four distinct trading methods: the Ideal Strategy, Tenkan-Kijun-Chikou crossing, Kumo breakout, and Chikou Span crossing. The robot manages risk through fixed stop loss and take profit levels, a maximum trade lim

MT4 Trading robot Trend followingBreakoutIndicator crossover
Updated 6 years ago None stated GitHub repository of Ichimoku EA
2 stars

This MetaTrader 4 repository contains a collection of Expert Advisors and a core module for order management. It includes standard trading strategies based on Moving Average and MACD crossovers. The main module provides logic for calculating open and historical trade metrics, tracking total profit and loss across speci

MT4 Collection Indicator crossoverMulti-strategy
Updated 6 years ago None stated GitHub repository of Antaluqi MT4 EA Collection

KEG Order EA

by IceSeeds
2 stars

KEG Order EA is a manual trading utility for MetaTrader 4 designed to streamline order execution and position management. It features a graphical panel for one-click trading and allows users to close all open positions or filter by specific currency pairs. The tool provides visual feedback on pips and floating profit o

MT4 Utility
Updated 6 years ago None stated GitHub repository of KEG Order EA

Mql Trading Signals

by udy8007
2 stars

Mql Trading Signals is a collection of expert advisors for MetaTrader 4 and 5 designed for automated trading and signal notification. The repository contains various strategy iterations, primarily utilizing Simple Moving Average (SMA) crossovers to identify trends. The main experts include logic for sending trade detai

MT4MT5 Collection Indicator crossoverTrend followingMartingale High risk
Updated 6 years ago None stated GitHub repository of Mql Trading Signals
2 stars

This utility bridges MetaTrader 4 to Telegram by sending real-time trading notifications to specific channels or groups. It monitors the trading terminal for various execution events, including new market orders, pending order placements, order fills, and trade closures. The tool uses the Telegram Bot API to deliver fo

MT4 Copier & bridge
Updated 6 years ago None stated GitHub repository of Telegram Signal Alert

ADX Martingale EA

by MatthewWebster10
2 stars

This MetaTrader 4 expert advisor uses the Average Directional Index to identify and trade market trends. It implements a volatility-based risk management system using the Average True Range to calculate stop loss and take profit levels dynamically. The strategy includes a configurable martingale lot scaling mechanism a

MT4 Trading robot Trend followingMartingale High risk
Updated 6 years ago None stated GitHub repository of ADX Martingale EA

Gordon Day Trading

by xcai004
2 stars

Gordon Day Trading is a MetaTrader 4 expert advisor designed for automated intraday trading. It combines signals from multiple Exponential Moving Averages, the Relative Strength Index, and Bollinger Bands to determine trade entries. The software includes visualization features for Fibonacci levels and unretraced zones

MT4 Trading robot Indicator crossoverMean reversion
Updated 7 years ago None stated GitHub repository of Gordon Day Trading

Martingale Manager

by moataz-metwally
2 stars

This MetaTrader 4 expert advisor is a management tool designed to execute and handle trading strategies using martingale lot scaling. It uses HTTP and JSON libraries to potentially interface with external configurations or signals, supporting multiple strategies at once. The EA features a 20-level lot sequence system,

MT4 Trade manager MartingaleHedging High risk
Updated 7 years ago None stated GitHub repository of Martingale Manager

MT4 Executor

by jmahiques
2 stars

This MetaTrader 4 expert advisor functions as a communication bridge between the trading platform and an external web-based backend server. It utilizes the WebRequest function to send real-time bid and ask prices, synchronize instrument details, and perform connectivity probes with a server. Designed as an educational

MT4 Copier & bridge
Updated 7 years ago GPL-3.0 GitHub repository of MT4 Executor

NNF Confirmation Indicator Testers

by marinelligiovanna
2 stars

This MetaTrader 4 collection provides a testing framework for trend confirmation indicators based on the No Nonsense Forex methodology. It includes three Expert Advisors designed to evaluate different signal types: Zero Line crosses, Two Line crosses, and Chart indicators. The system simulates trades at candle closes u

MT4 Utility Trend followingIndicator crossover

Telegram Trader Bot

by nathanzilgo
2 stars

This expert advisor acts as a communication bridge between MetaTrader 4/5 and external applications via the ZeroMQ protocol, specifically aimed at executing trades from a Telegram group. It runs a local server within the terminal to receive trading instructions and optionally publish market data. The Python-based backe

MT4MT5 Copier & bridge
Updated 7 years ago None stated GitHub repository of Telegram Trader Bot

Generador Mean Reversion

by jesuscovam
2 stars

This MetaTrader 4 expert advisor uses a mean-reversion approach based on a long-period Exponential Moving Average on the M5 timeframe. It opens a single buy position when the previous candle closes below the 1000-period EMA and a sell position when it closes above. The EA includes standard risk controls such as fixed l

MT4 Trading robot Mean reversion
Updated 7 years ago None stated GitHub repository of Generador Mean Reversion

Pivot Point EA

by Endon55
2 stars

Pivot Point EA is an automated trading robot for MetaTrader 4 that utilizes daily pivot points to identify potential support and resistance levels. The system calculates these levels at the start of each day and monitors price proximity to execute trades based on bounces or breakouts. It includes built-in risk controls

MT4 Trading robot Mean reversion
Updated 7 years ago None stated GitHub repository of Pivot Point EA

Suminsky EA

by zegitz
2 stars

Suminsky EA is an automated trading tool for the MetaTrader 4 platform that utilizes a level-based execution strategy. The robot places orders within a specified price range, divided into multiple lines or levels to manage entries. It features risk management settings including fixed lot sizing, a take profit target, a

MT4 Trading robot GridHedging High risk Archived
Updated 7 years ago None stated GitHub repository of Suminsky EA

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