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.

New EAs by RSS
618 EAs match Clear filters

MQL4 File Module

by KeisukeIwabuchi
2 stars

This MetaTrader 4 module provides a simplified interface for file system operations within the MQL4 environment. It functions as a programming library to assist developers in managing files without complex low-level coding. The package includes methods to read and write text data, copy existing files, delete files, and

MT4 Framework & template
2 stars

MQL4 Environment Configuration Tool is a utility for MetaTrader 4 that enables developers to manage account settings and environment variables using external files. It supports reading key-value pairs from plain text or ini files located in the terminal data folder. This approach allows for the externalization of sensi

MT4 Utility

MQL4 Unit Test

by KeisukeIwabuchi
2 stars

This MetaTrader 4 framework provides a module for unit testing MQL4 code across multiple simulated account environments. It allows developers to verify function logic by comparing actual execution results against expected values. The tool can cycle through different broker settings using external configuration files to

MT4 Framework & template
Updated 8 years ago MIT GitHub repository of MQL4 Unit Test

Project Pips

by taldan333
2 stars

Project Pips is a MetaTrader 4 expert advisor that automates trades based on moving average crossover signals. It includes a variety of entry and exit parameters, such as the ability to close positions on opposite signals or reverse positions based on price distance. Risk management is highly configurable, offering fix

MT4 Collection Indicator crossoverTrend following
Updated 8 years ago None stated GitHub repository of Project Pips

EMA RSI Expert

by nasimalsajjad
2 stars

This MetaTrader 4 expert advisor implements a technical trading strategy based on the Exponential Moving Average and Relative Strength Index. It triggers buy orders when both indicators align bullishly and sell orders when they align bearishly. Specifically, it monitors RSI levels for overbought and oversold conditions

MT4 Trading robot Mean reversionTrend following
Updated 8 years ago None stated GitHub repository of EMA RSI Expert

EMA RSI Expert

by nasimalsajjad
2 stars

This MetaTrader 4 expert advisor executes trades based on the alignment of Exponential Moving Average and Relative Strength Index indicators. The system enters buy orders when RSI suggests an oversold condition alongside bullish EMA momentum, and sell orders for overbought bearish conditions. It uses a fixed lot size a

MT4 Trading robot Trend followingMean reversion
Updated 8 years ago None stated GitHub repository of EMA RSI Expert
2 stars

This MetaTrader 4 utility exports candlestick data for a specific financial instrument across various timeframes into a local SQLite database. It retrieves historical price action and continues to update the database as new ticks arrive. The program allows users to set a custom time zone offset and specify the instrume

MT4 Utility Archived
Updated 8 years ago None stated GitHub repository of MT4 Realtime Chart Dumper

Period Ranging Pro

by lingao90
2 stars

A MetaTrader 4 expert advisor collection primarily focused on range breakout and BBMA strategies. The breakout EA identifies price ranges within a specific time window, executing trades based on price movement outside these boundaries. It includes risk management features such as stop loss, take profit with step-based

MT4 Collection BreakoutMulti-strategy
Updated 8 years ago None stated GitHub repository of Period Ranging Pro
2 stars

This repository contains five MetaTrader 4 Expert Advisors focused on technical indicator strategies. The robots implement multi-timeframe stochastic logic, single exponential moving average crosses for mean reversion or trend following, and classic dual moving average crossovers. Each system manages its own exits thro

MT4 Collection Indicator crossoverMulti-strategy

TW Star Bot

by TradingWizards
2 stars

This MetaTrader 4 expert advisor implements an automated trading strategy based on a combination of technical indicators, including the Relative Strength Index, Moving Averages, and MACD. The bot evaluates price action against these indicators to determine trade entries. It manages active positions using a fixed lot si

MT4 Trading robot Trend followingIndicator crossover
Updated 9 years ago None stated GitHub repository of TW Star Bot

Stat Euclidean Metric

by suvorovkonstantin
2 stars

Stat Euclidean Metric is a MetaTrader 4 expert advisor that utilizes pattern recognition via Euclidean distance calculations and k-nearest neighbor logic. The robot compares current market price vectors against historical data stored in external binary files to identify trade opportunities. It enters positions when cal

MT4 Trading robot AI / machine learning
Updated 9 years ago None stated GitHub repository of Stat Euclidean Metric
2 stars

This MetaTrader 4 utility provides a graphical user interface for manual trade management. It creates interactive on-chart buttons that allow traders to execute bulk exit commands with a single click. The tool facilitates closing all open positions, specifically targeting sell orders, or focusing on buy orders. It also

MT4 Utility
Updated 9 years ago None stated GitHub repository of Magic Trading Button

Parabolic SAR EA

by vinchess
2 stars

This MetaTrader 4 expert advisor implements a trend-following strategy based on the Parabolic SAR indicator. It monitors indicator flips to identify potential entry points, opening buy positions when the SAR dots move below the price and sell positions when they move above. The robot manages trades using fixed stop los

MT4 Trading robot Trend followingIndicator crossover

Stop Loss EA UI

by kosztik
2 stars

This MetaTrader 4 trade manager provides a graphical user interface for closing open positions based on technical indicator conditions. It does not open new trades but manages existing ones using RSI levels, ADX filters, and volatility-based logic. The utility includes a break-even function and adjustable ATR settings

MT4 Trade manager Archived
Updated 9 years ago None stated GitHub repository of Stop Loss EA UI

My First Strategy

by toticavalcanti
2 stars

This MetaTrader 4 expert advisor implements a multi-indicator technical strategy generated using the FxPro Quant tool. The robot identifies entry points by analyzing the confluence of an Exponential Moving Average, Relative Strength Index, MACD, and Bollinger Bands. It specifically looks for rising momentum and trend a

MT4 Trading robot Trend followingIndicator crossover
Updated 10 years ago None stated GitHub repository of My First Strategy

ATR Session EA

by dsinnig
2 stars

ATR Session EA is an automated trading robot for MetaTrader 4 that utilizes session-based logic and the Average True Range indicator. The software monitors market activity through a session factory, identifying potential entries based on price thresholds for higher highs and lower lows. It employs a structured trade ma

MT4 Trading robot BreakoutTrend following
Updated 11 years ago None stated GitHub repository of ATR Session EA

AntiLatency Sniper EA

by themusafirr
1 stars

This algorithmic scalping robot for MetaTrader 4 and 5 uses a five-factor confluence engine to identify trade entries. It monitors RSI extremes, Bollinger Band breakouts, MACD momentum, EMA ribbons, and volume acceleration. The EA employs percentage-based risk management with a strict stop loss and a flexible take prof

MT4MT5 Trading robot ScalpingTrend followingMean reversion
Updated 5 days ago None stated GitHub repository of AntiLatency Sniper EA

Gold Liquidity Scalper

by amirmohamadkazemi0933
1 stars

This MetaTrader 4 expert advisor is designed for XAUUSD scalping on the M1 timeframe. It switches logic based on market regimes: in trending markets, it follows the higher timeframe direction using EMA reversals and breakout entries, while in ranging markets, it executes trades based on liquidity sweeps at price extrem

MT4 Trading robot ScalpingSMC / ICT / price actionTrend following
Updated 2 months ago None stated GitHub repository of Gold Liquidity Scalper

VWAP Z-Score EA

by espinosaneol
1 stars

This MetaTrader 4 expert advisor implements a mean-reversion strategy using Z-score analysis of VWAP log-returns. Instead of fixed parameters, the system dynamically calculates an optimal lookback window by comparing observed price volatility against theoretical random walk models. The EA enters trades when price retur

MT4 Trading robot Mean reversion
Updated 2 months ago MIT GitHub repository of VWAP Z-Score EA

Options Trading Moving Average

by SankarSrinivasan1
1 stars

This MetaTrader 4 expert advisor implements a foundational trend-following strategy based on a 20-period Exponential Moving Average. It enters long positions when the market price trades above the average and short positions when it trades below. The code is designed as a template for users of the book Options Trading

MT4 Trading robot Indicator crossoverTrend following

Gartal Inc

by bsAmirHeydar
1 stars

Gartal Inc is a modular trading automation framework and strategy development template for MetaTrader 4. It provides a structured environment for testing various entry and exit logic, including Fair Value Gaps, moving average crossovers, and Donchian channels. The repository focuses on backtesting workflows, featuring

MT4 Framework & template SMC / ICT / price actionIndicator crossoverTrend following
Updated 3 months ago None stated GitHub repository of Gartal Inc

HpFX Framework

by mbelgin
1 stars

High Performance Forex (hpFX) is an indicator-agnostic framework for MetaTrader 4 designed for large-scale backtesting and strategy automation. It allows traders to define complex rules by combining up to ten custom indicators as entry signals, confirmation filters, or exit triggers using a flexible string-based encodi

MT4 Framework & template Trend followingIndicator crossoverMulti-strategy
Updated 3 months ago MIT GitHub repository of HpFX Framework

Trade Manager EA

by BodhiOng
1 stars

This utility for MetaTrader 4 provides an interactive on-chart graphical interface for manual order execution and advanced position management. Users can execute buy and sell orders with customizable lot sizes and manage open trades through various closing utilities, including close-all, close-by-type, and partial clos

MT4 Trade manager
Updated 4 months ago MIT GitHub repository of Trade Manager EA

My EA Algo Trade

by WaithakanTony
1 stars

This MetaTrader 4 expert advisor is an automated trading system primarily configured for Gold (XAUUSD). It incorporates a robust suite of risk controls, including daily equity drawdown limits and overall balance protection. The EA features mandatory cooldown periods after a stop loss or take profit is hit to prevent ov

MT4 Collection Trend following
Updated 5 months ago None stated GitHub repository of My EA Algo Trade

My Algo EA

by WaithakanTony
1 stars

My Algo EA is a modular expert advisor developed for trading XAUUSD on the MetaTrader 4 platform. It utilizes a trend-following approach based on Exponential Moving Averages and the Average True Range indicator. The robot manages entries through a dedicated module that considers current market sessions, spread limits,

MT4 Trading robot Trend following
Updated 5 months ago None stated GitHub repository of My Algo EA

BullShift

by JupitX
1 stars

BullShift is a MetaTrader 4 expert advisor that functions as a socket server bridge to connect the trading platform with external software applications. It facilitates automated trading in forex and cryptocurrency markets by listening for incoming data on a user-defined port. The EA manages socket connections, handles

MT4 Copier & bridge
Updated 5 months ago None stated GitHub repository of BullShift

XAUUSD ProBot

by KodaL0
1 stars

This automated trading system for MetaTrader 4 is specifically designed for Gold (XAUUSD) on the fifteen-minute timeframe. It identifies market direction using an Exponential Moving Average crossover on the hourly chart and executes trades on the M15 chart during pullbacks to short-term moving averages. Risk management

MT4 Trading robot Trend followingIndicator crossover
Updated 6 months ago None stated GitHub repository of XAUUSD ProBot

Liquidity Scalper

by torOxO
1 stars

Liquidity Scalper is an automated expert advisor for XAUUSD (Gold) on MetaTrader 4 and 5. It executes trades based on institutional order flow and Smart Money Concepts, specifically targeting liquidity sweeps followed by market displacement. The system identifies order blocks and enters on either retests or momentum-ba

MT4MT5 Trading robot SMC / ICT / price actionScalpingBreakout
Updated 7 months ago None stated GitHub repository of Liquidity Scalper

FFC Data Feeder

by awran5
1 stars

FFC Data Feeder is a utility expert advisor for MetaTrader 4 designed to fetch and manage economic calendar information. It acts as a backend data provider for the FFC Canvas Economic Calendar indicator by downloading JSON data directly from servers using the native WebRequest function. The tool operates without extern

MT4 Utility
Updated 8 months ago MIT GitHub repository of FFC Data Feeder
1 stars

This collection of MetaTrader 4 expert advisors implements directional strategies using the Relative Strength Index and Keltner Channels. The tools are designed for intraday trading with specific time-window filters, frequently configured for index markets. Entry logic is restricted to specific hours, while risk manage

MT4 Collection Mean reversionIndicator crossover
1 stars

This repository contains a collection of MetaTrader 4 and MetaTrader 5 utilities focused on technical analysis and automated trading. Key expert advisors include a binary options dashboard that monitors RSI levels and trendline breakouts across multiple timeframes, and a currency strength trader for automated entries.

MT4 Collection Trend followingBreakoutMean reversion
Updated 8 months ago None stated GitHub repository of MetaTrader Indicators and EAs

MQL4 Utilities FX

by MichalHerda
1 stars

MQL4 Utilities FX is a collection of auxiliary Expert Advisors for MetaTrader 4 designed to streamline trade management and account protection. The repository includes tools for setting automatic stop loss and take profit levels, managing break-even points, and calculating average entry prices. A core component is a pe

MT4 Collection
Updated 8 months ago None stated GitHub repository of MQL4 Utilities FX

Aud Nzd EMA Crossover

by AnMoreNight
1 stars

This MetaTrader 4 expert advisor automates trading using an exponential moving average crossover strategy, specifically targeting the AUD/NZD currency pair. It filters entries using ADX for trend strength and ATR for volatility, ensuring trades occur under specific market conditions. Risk management is handled through

MT4 Trading robot Indicator crossover
Updated 8 months ago None stated GitHub repository of Aud Nzd EMA Crossover

ÆEA

by NataliaTanyatia
1 stars

ÆEA is an automated trading robot for MetaTrader 4 that employs an ensemble of technical indicators to identify market imbalances. The strategy, described by the author as the Proportionality Principle, triggers trades when a specific ratio of bullish to bearish indicator signals is met. It calculates inputs from a wid

MT4 Trading robot Mean reversionIndicator crossover
Updated 9 months ago Apache-2.0 GitHub repository of ÆEA

Hosopi3 Tanpoji

by harukihosono
1 stars

Hosopi3 Tanpoji is a single-position trading robot for MetaTrader 4 and MetaTrader 5, specifically developed to avoid martingale and averaging techniques. It triggers entries using various built-in technical indicators such as Moving Averages, RSI, Bollinger Bands, and Stochastics, or through external custom indicator

MT4MT5 Trading robot Indicator crossoverMean reversionMulti-strategy
Updated 10 months ago None stated GitHub repository of Hosopi3 Tanpoji
1 stars

This expert advisor for MetaTrader 4 automates trade execution based on user-defined price levels. It places pending sell orders at a specific entry price and monitors market movement to trigger positions. The logic includes an automated exit routine that closes trades when the price returns to the initial entry level.

MT4 Trading robot Mean reversion
Updated 10 months ago None stated GitHub repository of Mt4 Trading Bot Telegram

Gotobi Basic EA

by harukihosono
1 stars

Gotobi Basic EA is a trading robot for MetaTrader 4 and MetaTrader 5 designed to exploit the Japanese Gotobi anomaly. It targets days divisible by five, when demand for the US Dollar typically increases among Japanese firms for settlement. The EA enters a long position at the market open, closes it at the 9:55 AM Nakan

MT4MT5 Trading robot News
Updated 10 months ago None stated GitHub repository of Gotobi Basic EA

Set Fixed SL and TP EA

by EarnForex
1 stars

Set Fixed SL and TP EA is a management tool for MetaTrader 4 and 5 that automatically monitors open positions and pending orders to apply protective exit levels. The utility assigns stop-loss and take-profit values based on user-defined points, specific price levels, or a percentage of the stop-loss. It features granul

MT4MT5 Trade manager
Updated 11 months ago Apache-2.0 GitHub repository of Set Fixed SL and TP EA

Gann Fan Bot

by AbasNiknam
1 stars

This MetaTrader 4 expert advisor automates trading based on Gann Fan theory by identifying trend angles from recent swing highs and lows. It enters the market using buy and sell stop orders placed at specific distances from detected Gann lines. The robot includes risk management features such as fixed stop loss, take p

MT4 Trading robot Trend followingBreakoutHedging
Updated 11 months ago None stated GitHub repository of Gann Fan Bot

RSI MA Combo EA

by trinity56
1 stars

This MetaTrader 4 expert advisor combines the Relative Strength Index, Moving Average, and Average Directional Index to identify trend-following entries. The strategy executes trades when price positioning relative to the moving average aligns with RSI exhaustion levels and ADX trend strength. It includes built-in risk

MT4 Trading robot Trend followingMean reversion
Updated 11 months ago MIT GitHub repository of RSI MA Combo EA

CyberiaTrader

by SumeetD003
1 stars

This rule-based automated trading system for MetaTrader 4 utilizes several modular logic components to identify market entries and exits. It includes integrated modules for MACD, Moving Averages, and proprietary CyberiaLogic and MoneyTrain algorithms. The EA provides flexible risk controls including automated lot sizin

MT4 Trading robot Indicator crossoverMulti-strategy
Updated 1 year ago None stated GitHub repository of CyberiaTrader

Arbitrage Gold Bot

by Nazrullox
1 stars

This expert advisor for MetaTrader 4 and 5 executes trades based on price interaction with a Simple Moving Average. It monitors market positions on the H1 timeframe, entering buy or sell orders with predefined stop loss and take profit levels. The package includes an external Python script that works with a CSV log to

MT4MT5 Trading robot Trend followingIndicator crossover
Updated 1 year ago None stated GitHub repository of Arbitrage Gold Bot

MT4 MT5 Bridge

by okorie22
1 stars

This collection of tools for MetaTrader 4 and 5 provides a bridge between trading terminals and external communication channels. It includes an alert system that broadcasts trade events, terminal screenshots, and signals to Telegram groups or channels. Additionally, it features an execution module that reads trading si

MT4MT5 Copier & bridge
Updated 1 year ago None stated GitHub repository of MT4 MT5 Bridge

Pathfinder 2025

by huilige888-spec
1 stars

Pathfinder 2025 is a breakout expert advisor for MetaTrader 4 that manages dynamic Buy Stop and Sell Stop orders relative to the current market price. It continuously updates pending orders based on price movement thresholds and time intervals to capture volatility. Trade entries are filtered by candlestick body size t

MT4 Trading robot Breakout
Updated 1 year ago None stated GitHub repository of Pathfinder 2025
1 stars

This MetaTrader 4 expert advisor executes trades based on a specific price level and provides real-time monitoring via Telegram. The EA sets a trade at a user-defined entry price for a specific symbol, such as indices or forex pairs. It features automated entry when the price reaches the target level and closes the pos

MT4 Trading robot Mean reversion

Flask SQL MT4 Price Bridge

by autodidacttrade
1 stars

This MetaTrader 4 expert advisor functions as a data bridge to external web services. It automatically captures bid and ask prices for specific financial instruments and transmits them to a Python Flask server via HTTP POST requests. The system packages market data into JSON format on every tick and sends it to a confi

MT4 Copier & bridge
Updated 1 year ago None stated GitHub repository of Flask SQL MT4 Price Bridge

Metatrader Copy Trader

by Monkeyattack
1 stars

This MetaTrader 4 expert advisor system facilitates local trade copying between different terminals using shared CSV files. It consists of a master EA to broadcast trades and a follower EA to execute them. The follower includes flexible risk management such as percentage-based lot sizing, daily loss limits, and a lot m

MT4 Copier & bridge

Cloud Copy MT4

by bizkut
1 stars

Cloud Copy MT4 is a trade copying utility for MetaTrader 4 that enables order synchronization between different terminal instances via a cloud-based server. The system uses a Sender and Receiver architecture, transmitting trade data such as ticket numbers, lot sizes, and price levels using JSON over socket connections.

MT4 Copier & bridge
Updated 1 year ago None stated GitHub repository of Cloud Copy MT4

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