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.

831 EAs match Clear filters
2 stars

This expert advisor for MetaTrader 4 and 5 implements a hedging recovery strategy to handle losing positions. When an initial trade moves against the user, the robot enters a recovery zone, placing counter-orders with scaled lot sizes to achieve a collective exit at a profit or break-even point. The EA includes risk co

MT4MT5 Trading robot HedgingMartingale High risk
Updated 3 years ago GPL-3.0 GitHub repository of Forex Recovery Zone

Swing NNFX Framework

by BenoitDurandIndep
2 stars

This MetaTrader 4 framework provides a modular environment for developing and backtesting expert advisors based on the No Nonsense Forex methodology. It includes functional swing trading robots that utilize baseline indicators, multiple confirmation layers, and volatility filters to identify entries. The system feature

MT4 Framework & template Trend followingMulti-strategy
Updated 3 years ago GPL-3.0 GitHub repository of Swing NNFX Framework

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

Trading Bot FX

by dre10155
2 stars

Trading Bot FX is an automated expert advisor for MetaTrader 4 designed to trade twenty-seven currency pairs. It implements a trend-following strategy using a customizable baseline moving average, such as LWMA or SMA, alongside the SSL Channel indicator to determine market direction. To filter entries, the robot utiliz

MT4 Trading robot Trend followingIndicator crossover
Updated 4 years ago None stated GitHub repository of Trading Bot FX

Forex Setka Trader

by Aomforex
2 stars

Forex Setka Trader is an automated grid trading robot designed for the MetaTrader 4 platform. It operates primarily on the M1 timeframe, opening a series of trades at fixed intervals defined by a step parameter. The expert advisor employs martingale-style lot scaling through a multiplier factor to manage basket positio

MT4 Trading robot GridMartingale High risk
Updated 4 years ago None stated GitHub repository of Forex Setka Trader

Donchian Channel Bot

by amirsafaricg
2 stars

This MetaTrader 4 expert advisor executes a trend-following strategy based on a 20-period Donchian Channel and a 200-period Exponential Moving Average. It enters long positions when price breaks above the 20-candle high while staying above the EMA 200, and short positions when price falls below the 20-candle low while

MT4 Trading robot Trend followingBreakout
Updated 4 years ago None stated GitHub repository of Donchian Channel Bot

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

This repository contains a collection of MetaTrader 4 expert advisors, with a primary focus on the XMT-Scalper system. The software implements a tick-scalping strategy that identifies reversals from channel breakouts using indicators such as Bollinger Bands and Moving Averages. It includes risk management features incl

MT4 Collection ScalpingBreakoutMean reversion High risk
Updated 5 years ago None stated GitHub repository of XMT Scalper Collection

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

EA 5120

by thevictorwhyte
2 stars

EA 5120 is a MetaTrader 4 robot that executes trades based on a trend-following system using several exponential moving averages. The strategy utilizes multiple EMA periods, such as 5, 13, 25, and 120, to determine market momentum and generate signals. Trade management includes options for fixed or dynamically calculat

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

This repository contains a collection of MetaTrader 4 and MetaTrader 5 tools, including automated trading robots and technical utilities. The primary expert advisor features a hybrid system that supports both straddle and fade execution modes. It provides built-in risk management via stop loss, take profit, trailing st

MT4MT5 Collection BreakoutMean reversionMulti-strategy

ATR Breakout EA

by MarkyMark1000
2 stars

This MetaTrader 4 expert advisor executes trades based on Average True Range volatility patterns. It identifies breakout opportunities by comparing current ATR levels against the previous day's peak and trough, targeting periods of increasing volatility at the start of the trading session. The robot places pending limi

MT4 Trading robot Breakout
Updated 6 years ago None stated GitHub repository of ATR Breakout EA

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

Uncle Bean BWMFI MA

by TheUncleWhoGrowsBeans
2 stars

This MetaTrader 4 expert advisor utilizes a strategy combining Bill Williams Market Facilitation Index colors and Moving Averages. It features a multi-currency scanner that allows the robot to monitor and trade multiple symbols from a single chart using a comma-separated input list. Traders can toggle a filter to only

MT4 Trading robot Trend followingIndicator crossover
Updated 6 years ago None stated GitHub repository of Uncle Bean BWMFI MA
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
2 stars

This expert advisor for MetaTrader 4 executes a trend-following strategy using technical indicators. It calculates entry signals by monitoring moving averages and utilizes price envelopes as a volatility filter. The system also tracks the Average True Range to evaluate momentum and market shifts. Risk management includ

MT4 Trading robot Trend followingIndicator crossoverMartingale High risk
Updated 6 years ago None stated GitHub repository of Forex Trend Trader

Currency Pair Scanner

by kurt-apple
2 stars

This MetaTrader 4 expert advisor functions as a technical scanner and trade automation tool. It iterates through multiple currency pairs to evaluate market conditions and sort them according to technical criteria. The system includes logic for automated order preparation, performing real-time risk assessments before ex

MT4 Trading robot Multi-strategy
2 stars

This repository contains the Forex Algos Collection, a suite of over forty MetaTrader 4 expert advisors centered around the Aeron Forex Auto Trader robot. This primary EA implements a grid-based entry system combined with martingale lot scaling, where position sizes increase significantly via a multiplier factor after

MT4 Collection GridMartingaleHedging High risk
Updated 6 years ago None stated GitHub repository of Forex Algos Collection

Ray Scalper

by ThePathsOfSaga
2 stars

Ray Scalper is an automated expert advisor for MetaTrader 4 that uses technical indicators to trade both trend-following and counter-trend strategies. It monitors Bollinger Bands, Moving Averages, and Stochastic crossovers to trigger entries. The robot allows users to toggle between trend and anti-trend modes and inclu

MT4 Trading robot ScalpingIndicator crossoverTrend following
Updated 6 years ago None stated GitHub repository of Ray Scalper

Mt4 Develop Collection

by xianGuiye
2 stars

This repository features a collection of MetaTrader 4 expert advisors designed for various trading approaches. The included M5_M30integral EA utilizes moving average crossovers across multiple timeframes for trend detection. Other scripts employ envelope scalping at specific standard deviations and Bollinger Band strat

MT4 Collection Indicator crossoverMean reversionScalping High risk

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

This MetaTrader 4 expert advisor collection includes two distinct robots designed for trend-following and trend-breakout strategies. The system utilizes technical indicators such as Moving Averages and Bollinger Bands to identify market entry points and monitor price action. It features hardcoded logic for managing tra

MT4 Collection Trend followingBreakout
Updated 7 years ago None stated GitHub repository of Auto Trade Trend Keep

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

Supremacy BO Expert

by UncleSemyon
2 stars

This MetaTrader 4 expert advisor is designed for both Binary Options and standard Forex trading. It operates using a martingale lot scaling system that increases position sizes based on calculated steps and profit targets. The EA includes risk management features such as fixed lot sizing or balance-based percentage ris

MT4 Trading robot Martingale High risk
Updated 7 years ago None stated GitHub repository of Supremacy BO Expert

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

Scalpy Scalping Algorithm

by pedrojespina
2 stars

Scalpy is an automated scalping robot for MetaTrader 4 that utilizes multiple Exponential Moving Averages across different timeframes to identify entry signals. The system analyzes the 8 and 21 EMAs on the H1 timeframe for trend anchoring while using the 8, 13, and 21 EMAs on the M5 chart for execution. It includes a m

MT4 Trading robot ScalpingIndicator crossoverTrend following
Updated 7 years ago None stated GitHub repository of Scalpy Scalping Algorithm

Anton Voronezh EA Collection

by AntonVoronezh
2 stars

This repository contains a collection of MetaTrader 4 expert advisors designed for automated forex trading. The robots implement a loss-recovery mechanism that scales lot sizes based on the cumulative deficit of previous losing trades. Each EA includes adjustable parameters for stop loss and take profit targets to mana

MT4 Collection MartingaleMulti-strategy High risk

Falcon C

by vzhomeexperiments
2 stars

Falcon C is a MetaTrader 4 expert advisor that implements a rule-based strategy using moving average crossovers and Keltner Channels. It relies on an external deep learning framework built in R to categorize current market regimes, such as normal or volatile bull and bear phases. Based on these categories, the robot sw

MT4 Trading robot Indicator crossoverAI / machine learningTrend following
Updated 7 years ago MIT GitHub repository of Falcon C

Auto Trade EA

by leonharvey
2 stars

This MetaTrader 4 expert advisor executes automated trades based on Moving Average crossover logic and the Chandelier Exit method. It utilizes multiple Moving Average periods and shifts alongside Average True Range and price extremes to identify market trends and potential exit points. Risk is managed through fixed lot

MT4 Trading robot Indicator crossoverTrend following
Updated 7 years ago AGPL-3.0 GitHub repository of Auto Trade 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 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