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.

619 EAs match Clear filters
4 stars

This repository contains a collection of MetaTrader 4 expert advisors designed for educational purposes. The primary strategy, named Belinda, executes trades based on moving average crossovers using a 10-period and 40-period SMA, filtered by volatility via the Average True Range indicator. The collection features sever

MT4 Collection Indicator crossoverScalpingTrend following
Updated 3 years ago None stated GitHub repository of Learning MQL4 EA Collection

MT Copier Client

by Basttyy
4 stars

This MetaTrader 4 expert advisor functions as a client-side trade copier designed to receive and execute signals from a remote server. It utilizes socket communication to establish a link with a specified hostname and port, identifying the client by account number upon connection. The EA monitors for incoming data usin

MT4 Copier & bridge
Updated 3 years ago None stated GitHub repository of MT Copier Client

Supply Demand Trader

by iamshakibulislam
4 stars

This MetaTrader 4 robot automates a supply and demand strategy by identifying price pivots within a specific historical window. It analyzes candle structures to detect significant price moves and structural clearance for potential entries. The expert advisor manages risk by allowing users to set a fixed dollar amount p

MT4 Trading robot SMC / ICT / price action
Updated 4 years ago None stated GitHub repository of Supply Demand Trader

Simple Bot

by rockmeowstar
4 stars

Simple Bot is an automated trading robot for MetaTrader 4 that utilizes Bill Williams Fractals and the Relative Strength Index to execute trades. The system monitors the one-minute timeframe for fractal formation while using daily RSI values as a filter for entry. It includes built-in risk management features such as f

MT4 Trading robot Mean reversion
Updated 4 years ago GPL-3.0 GitHub repository of Simple Bot

Falcon R

by vzhomeexperiments
4 stars

Falcon R is a rule-based expert advisor for MetaTrader 4 designed to identify and trade within ranging market conditions. It utilizes a combination of Keltner Channels and Moving Averages to determine entry points. The robot provides extensive trade management options, including fixed or volatility-based stop loss and

MT4 Trading robot Mean reversion
Updated 5 years ago MIT GitHub repository of Falcon R

Data Writer

by vzhomeexperiments
4 stars

Data Writer is a MetaTrader 4 expert advisor designed to log historical asset data into CSV files. Rather than executing trades, it functions as a data collection tool for traders looking to build external prediction models or conduct deep learning analysis. Users can configure the EA to record specific price points in

MT4 Utility
Updated 5 years ago MIT GitHub repository of Data Writer

WatchDog

by vzhomeexperiments
4 stars

WatchDog is a connectivity utility for MetaTrader 4 designed to ensure a trading terminal remains logged into an account. It monitors chart update activity and triggers an automated reconnection procedure if the connection stalls for a user-defined period. The tool utilizes Windows DLL calls to interact with the termin

MT4 Utility
Updated 5 years ago None stated GitHub repository of WatchDog
4 stars

This MetaTrader 4 collection provides several scripts designed to analyze price action and candlestick patterns. It includes modules for moving average crossovers, Bollinger Bands, and a specialized candlestick analysis tool. The software identifies specific formations such as hammers, dojis, and engulfing candles by c

MT4 Collection SMC / ICT / price actionIndicator crossoverMean reversion
Updated 5 years ago None stated GitHub repository of Candlestick Charts System

Mql4 Trading Alerts

by alexmcmillan86
4 stars

This repository provides a collection of MetaTrader 4 utilities and expert advisors focused on technical signaling and market monitoring. The primary EA identifies exponential moving average crossovers, triggering terminal alerts when a fast EMA crosses a slow EMA on the completion of a candle. The collection includes

MT4 Collection Indicator crossover
Updated 6 years ago None stated GitHub repository of Mql4 Trading Alerts
4 stars

Soportes y Resistencias is a MetaTrader 4 utility designed to automatically identify and mark support and resistance levels on a price chart. It operates by scanning the price history for local maximums and minimums based on user-defined look-back and look-forward parameters. When a peak or trough is identified, the ex

MT4 Utility
Updated 6 years ago None stated GitHub repository of Soportes y Resistencias

AutoNAS

by everchens
4 stars

AutoNAS is an automated trading robot designed for the NAS100 index and USOil on the MetaTrader 4 platform. It employs a custom price-action strategy based on a variable threshold to determine entry points. The expert advisor monitors price movements relative to an initial anchor price, opening positions when specific

MT4 Trading robot BreakoutTrend following
Updated 7 years ago None stated GitHub repository of AutoNAS
4 stars

This collection provides a suite of trade management and execution assistants for MetaTrader 4 and MetaTrader 5. Designed to support manual trading, these utilities facilitate automatic position sizing and order placement via on-chart buttons rather than autonomous algorithmic decision-making. The repository includes s

MT4MT5 Collection NewsIndicator crossover
Updated 7 years ago None stated GitHub repository of Trading Tools Collection
4 stars

This MetaTrader 4 expert advisor implements a trend-following breakout strategy using Heiken Ashi candle sequences. The system defines local highs and lows based on consecutive candle color changes and enters trades when these price levels are breached. It operates on a reversal basis, closing active trades and initiat

MT4 Trading robot Trend followingBreakout
4 stars

This MetaTrader 4 expert advisor implements a price action strategy based on candlestick engulfing patterns. It identifies bullish and bearish formations to enter long or short positions automatically. The bot manages active trades by closing existing positions whenever a new opposing signal is detected, effectively re

MT4 Trading robot SMC / ICT / price action
Updated 8 years ago None stated GitHub repository of JCSPatterns Engulfing Bot

MQL4 Order Module

by KeisukeIwabuchi
4 stars

MQL4 Order Module is a developer framework and library for MetaTrader 4 designed to simplify the selection and management of trading orders. It provides a structured interface for filtering open positions, pending orders, and historical trade data based on magic numbers or ticket IDs. The module includes functionality

MT4 Framework & template

SMA Cross Advisor

by tomtom87
4 stars

This MetaTrader 4 expert advisor executes trades based on the crossover of two smoothed moving averages. It monitors direction changes between a fast and slow period to trigger market entries. Risk management is handled through fixed stop loss and take profit parameters, along with a break-even function that secures po

MT4 Trading robot Indicator crossoverTrend following
Updated 9 years ago None stated GitHub repository of SMA Cross Advisor

Falcon EA Template

by Lucas170
4 stars

Falcon EA Template is an automated trading robot for MetaTrader 4 that utilizes dual moving averages and Keltner Channels to determine market entries. The system prioritizes risk management through percentage-based position sizing and various exit strategies. It features fixed and volatility-based stop loss and take pr

MT4 Trading robot Indicator crossoverTrend following
Updated 9 years ago None stated GitHub repository of Falcon EA Template
4 stars

This repository contains a collection of expert advisors for the MetaTrader 4 platform. The primary strategy, BearishEngulfing, utilizes price action to identify specific candlestick patterns for executing sell orders. It includes essential risk management parameters such as fixed lot sizing, stop loss, take profit, an

MT4 Collection SMC / ICT / price actionIndicator crossover

NZT USDJPY

by felipemiramontesr
4 stars

NZT USDJPY is a MetaTrader 4 expert advisor specifically tailored for the USD/JPY forex pair. The EA monitors tick-by-tick price movements to manage active long and short positions. It employs logic that triggers order closures or modifications based on bid and ask fluctuations relative to reference prices. The softwar

MT4 Trade manager Hedging
Updated 10 years ago None stated GitHub repository of NZT USDJPY
4 stars

This collection of MetaTrader 4 expert advisors features several distinct trading robots including Daybreaker, Stradle, and the Signature System. The primary Daybreaker EA utilizes custom task scheduling and lookback periods to identify market entries based on volatility. It includes risk management controls such as pe

MT4 Collection BreakoutMulti-strategy

Adjustable MA 3G

by EarnForex
3 stars

This expert advisor for MetaTrader 4 and 5 executes trades based on crossovers of the 3rd Generation Moving Average indicator. It utilizes two instances of the custom indicator with adjustable periods and sampling settings to identify trend shifts. The robot enters positions when the difference between the fast and slo

MT4MT5 Trading robot Indicator crossover
Updated 5 months ago Apache-2.0 GitHub repository of Adjustable MA 3G

Sanqing EA

by caoruihua
3 stars

An automated trading system for MetaTrader 4 specifically designed for gold (XAUUSD) on the M5 timeframe. It features two core strategies: trend continuation and price pullbacks. The expert advisor utilizes a dual exponential moving average framework for direction and ATR for volatility filtering. Risk management is ha

MT4 Trading robot Trend followingMean reversionIndicator crossover
Updated 5 months ago None stated GitHub repository of Sanqing EA

Edelweiss EA

by Attornado
3 stars

Edelweiss EA is an educational trading robot for MetaTrader 4 that utilizes a multi-indicator framework to generate buy and sell signals. It combines exponential moving averages, stochastic oscillators, the awesome oscillator, ADX, and Bollinger Bands to identify market entries. Trade management includes dynamic ATR-ba

MT4 Trading robot Indicator crossoverMean reversionTrend following
Updated 11 months ago MIT GitHub repository of Edelweiss EA

24Hours Bot

by fathiaomar
3 stars

This MetaTrader 4 expert advisor is a basic automation script designed to reach a specific profit target. Upon initialization, the bot checks the current account profit against a hardcoded threshold. If the target is not met, it immediately executes a market buy order with a fixed lot size. It features an alert system

MT4 Trading robot
Updated 1 year ago MIT GitHub repository of 24Hours Bot

Super Fondeo HFT

by TonyPrograma
3 stars

This high-frequency trading robot is designed for MetaTrader 4 and MetaTrader 5 to assist users in passing proprietary firm evaluation challenges. It employs a strategy that requires zero-slippage execution to function correctly, as it utilizes extremely tight or zero-point stop loss settings. The expert advisor includ

MT4MT5 Trading robot Scalping
Updated 2 years ago None stated GitHub repository of Super Fondeo HFT

Falcon D

by vzhomeexperiments
3 stars

Falcon D is a MetaTrader 4 expert advisor designed for the H1 timeframe, focusing on price retracement entries filtered by technical indicators. It opens positions when price deviates significantly from the daily start point in opposition to the established trend. The system incorporates filters including a long-period

MT4 Trading robot Mean reversionIndicator crossover
Updated 2 years ago MIT GitHub repository of Falcon D

Buy Hold Sell Close

by kmafutah
3 stars

This expert advisor acts as a communication bridge between MetaTrader 4 or 5 and external Python applications. Based on the Darwinex Labs server framework, it uses text files to exchange market data and trade commands, allowing users to implement machine learning models or reinforcement learning strategies. It includes

MT4MT5 Copier & bridge AI / machine learning
Updated 2 years ago None stated GitHub repository of Buy Hold Sell Close
3 stars

MetaTrader Predictor is an expert advisor for MetaTrader 4 designed to interface with an external web service for market analysis and trade execution. The EA functions as a data bridge, using WebRequest to transmit candle data including Open, High, Low, and Close prices from multiple timeframes to a specified host. It

MT4 Trading robot AI / machine learning
Updated 2 years ago None stated GitHub repository of MetaTrader Predictor

Discord Telegram Client

by nguemechieu
3 stars

This MetaTrader 4 utility serves as a bridge between the trading terminal and external platforms like Telegram and Discord. It functions as a comprehensive manual trading panel, enabling users to execute various order types and manage positions directly from the chart interface. The EA integrates indicator-based signal

MT4 Copier & bridge Multi-strategy

Me Close All

by ForexfactoryVietnam
3 stars

This MetaTrader 4 trade management utility provides a graphical interface for handling open positions. It enables users to perform bulk actions such as closing all active orders, deleting pending orders, or modifying stop loss and take profit levels for existing trades. The tool includes an automated break-even functio

MT4 Trade manager
Updated 2 years ago None stated GitHub repository of Me Close All

Banik MQL4 EA Collection

by Chiradeep-Banik
3 stars

This MetaTrader 4 repository features a collection of expert advisors, including a dual moving average retracement strategy and a Morning Star candlestick pattern robot. The primary moving average EA identifies trends using fast and slow Simple Moving Averages, entering trades when price retraces to the short-term aver

MT4 Collection Trend followingIndicator crossover
Updated 3 years ago None stated GitHub repository of Banik MQL4 EA Collection

News Trading EA

by Badzoneyv4n
3 stars

News Trading EA is a volatility-capture robot for MetaTrader 4 and MetaTrader 5 designed to trade high-impact economic events. The EA places simultaneous buy stop and sell stop orders at a specific user-defined time before news releases. Once one order triggers, the robot is designed to close the opposite pending order

MT4MT5 Trading robot News
Updated 3 years ago None stated GitHub repository of News Trading EA

RSI MA Cross Custom

by OrchardForexTutorials
3 stars

This Expert Advisor for MetaTrader 4 executes trades based on the confluence of Relative Strength Index levels and Moving Average crossovers. It enters long positions when the RSI is oversold and a fast exponential moving average crosses above a slow one, and short positions when the RSI is overbought during a downward

MT4 Trading robot Indicator crossoverMean reversion
Updated 3 years ago GPL-3.0 GitHub repository of RSI MA Cross Custom

Trailing Stop on Profit

by levimatther
3 stars

This trade management expert advisor for MetaTrader 4 and 5 automates stop-loss adjustments based on specific profit targets. Unlike standard trailing stops, this tool remains inactive until a position reaches a user-defined profit threshold in points. It offers flexible trade selection by filtering positions based on

MT4MT5 Trade manager

EJTrader Order Flow

by ejtraderLabs
3 stars

EJTrader Order Flow is a technical utility for MetaTrader 4 that implements Level 2 market depth and tape reading tools. It utilizes the Bitcoin Nano API to stream order flow data directly onto the chart using various visual layouts like BookMap and volume aggression indicators. The EA manages manual trade execution wi

MT4 Utility SMC / ICT / price action
Updated 3 years ago None stated GitHub repository of EJTrader Order Flow

Pouriakouhzadeh MQL4 Collection

by pouriakouhzadeh
3 stars

This repository contains a collection of over 70 Expert Advisors developed for the MetaTrader 4 platform. The primary file, NNA_Expert, utilizes DLL imports and shell execution to exchange data via CSV files, suggesting integration with external prediction engines or neural networks. Other included experts focus on Fib

MT4 Collection Multi-strategyIndicator crossover

NNA Expert

by pouriakouhzadeh
3 stars

NNA Expert is an automated trading robot for MetaTrader 4 that utilizes external deep-learning models to analyze cryptocurrency markets. The system operates by generating market data files on every new bar and triggering an external batch script via Windows shell commands to obtain trade signals. It supports long and s

MT4 Trading robot AI / machine learning
Updated 3 years ago None stated GitHub repository of NNA Expert

Algogene MetaTrader DLL

by algogene-fintech
3 stars

This repository provides a framework and example Expert Advisors that bridge MetaTrader 4 and MetaTrader 5 with the Algogene platform. It utilizes external dynamic-link libraries to establish a WebSocket connection, allowing the system to receive tailored trading signals from Algogene servers for trade entries. Additio

MT4MT5 Framework & template
Updated 4 years ago None stated GitHub repository of Algogene MetaTrader DLL
3 stars

This MetaTrader 4 repository contains a collection of expert advisors and utilities. The primary robot, Up and Down Trader, employs a Fisher-style transformation of price action to identify entry points across three different trading modes. It features a spread filter to avoid trading during illiquid conditions and all

MT4 Collection Mean reversion

PipFinite Breakout EA

by martycode49
3 stars

This automated expert advisor for MetaTrader 4 utilizes the PipFinite suite of indicators to identify market entries. It integrates the PipFinite Breakout Analyzer and Strength Meter to execute long and short positions when specific threshold levels and entry percentages are met. The EA manages risk through user-define

MT4 Trading robot BreakoutTrend following
Updated 4 years ago None stated GitHub repository of PipFinite Breakout EA

Slime Mold RSI

by Kei-Sanada
3 stars

Slime Mold RSI is an experimental MetaTrader 4 expert advisor that implements a single-layer perceptron model to determine trade entries. The robot calculates a weighted signal value by processing Relative Strength Index data across multiple timeframes, specifically the fifteen-minute, thirty-minute, and one-hour chart

MT4 Trading robot AI / machine learning
Updated 4 years ago None stated GitHub repository of Slime Mold RSI
3 stars

This MetaTrader 4 expert advisor implements a classic moving average crossover strategy designed for scalping forex pairs and metals. It monitors two exponential moving averages, defaulting to 8 and 21 periods, to identify momentum shifts. When a crossover is detected, the robot places pending stop orders with a specif

MT4 Trading robot Indicator crossoverScalping
Updated 5 years ago None stated GitHub repository of Simple EMA Cross Scalper

Falcon B

by vzhomeexperiments
3 stars

Falcon B is an automated trading robot for MetaTrader 4 that utilizes moving average crossovers and Keltner Channels for market entries. It is specifically designed to function within a larger framework, integrating with R-based decision support software through CSV command files. The EA provides robust risk management

MT4 Trading robot Indicator crossoverTrend following
Updated 5 years ago MIT GitHub repository of Falcon B

Reji Breakout

by ziyouzy
3 stars

This MetaTrader 4 expert advisor implements a scheduled breakout strategy. It functions by placing Buy Stop and Sell Stop orders at a specified distance from the current market price once a pre-set local computer time is reached. The system includes risk management controls such as fixed stop loss, take profit, and a t

MT4 Trading robot Breakout
Updated 5 years ago None stated GitHub repository of Reji Breakout

NNFX EA

by dnshouse
3 stars

This MetaTrader 4 expert advisor implements the No Nonsense Forex methodology using a clean, object-oriented programming architecture. The robot manages trade entries and exits based on a modular indicator stack, allowing users to easily swap or add technical indicators via wrapper classes. It is specifically designed

MT4 Trading robot Trend following
Updated 5 years ago MIT GitHub repository of NNFX EA
3 stars

Horror EA, short for Horizontal Expert Advisor, is a manual trade management tool for MetaTrader 4. It enables traders to execute and manage positions through on-chart buttons and horizontal lines rather than standard order windows. The tool supports specific entry types based on candle highs, lows, or close prices and

MT4 Utility
Updated 5 years ago GPL-3.0 GitHub repository of Horror Horizontal EA
3 stars

This MetaTrader 4 expert advisor implements a mean-reversion strategy using Bollinger Bands and the Relative Strength Index (RSI). Intended as an educational starting point for programmers, it enters trades when the price crosses specific standard deviation bands while RSI confirms overbought or oversold conditions. Th

MT4 Trading robot Mean reversion
Updated 5 years ago None stated GitHub repository of Bollinger Band Strategy 1

This repository offers a collection of MetaTrader 4 expert advisors focused on technical indicator triggers and price action. The suite includes tools for trading moving average crossovers, ADX momentum, and Stochastic oscillators. A dedicated EA identifies specific candlestick patterns such as Three White Soldiers and

MT4 Collection Indicator crossoverTrend followingMean reversion

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