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.

1,037 EAs match Clear filters

This repository provides a collection of MetaTrader 4 and MetaTrader 5 tools, centered around a local trade copying system. The primary expert advisors allow users to publish and subscribe to trade signals between terminal instances using file-based communication. The copier supports lot sizing via ratios or fixed valu

MT4MT5 Collection Mean reversion
1 stars

This MetaTrader 4 expert advisor acts as a trade manager designed to automate the protection of open positions. The utility monitors active orders and adjusts stop loss levels to a break-even point or manages take profit targets based on logic contained within its internal class. It operates using both tick events and

MT4 Trade manager
Updated 4 years ago None stated GitHub repository of Break Even Take Profit

Soup EA

by ArminKardan
1 stars

This MetaTrader 4 expert advisor implements a trend-following strategy using a 50-period Exponential Moving Average on the one-minute timeframe. It places pending buy stop or sell stop orders at a configurable distance from the current price when specific spread conditions are met. The system manages risk using fixed s

MT4 Trading robot Trend following
Updated 4 years ago None stated GitHub repository of Soup EA

BBTrader Trade Executer

by ArminKardan
1 stars

This expert advisor for MetaTrader 4 functions as a communication bridge between the trading terminal and an external application via WebSockets. It utilizes the JAson library to handle JSON data and a specialized socket library to maintain a connection with a server. The tool reads local configuration files to manage

MT4 Copier & bridge
Updated 4 years ago None stated GitHub repository of BBTrader Trade Executer
1 stars

This expert advisor for MetaTrader 4 is a multi-strategy robot focused on the recovery zone management technique. It offers a wide array of entry signals, including RSI, MACD, Bollinger Bands, and mean-reversion models. When initial trades move into a loss, the system employs an averaging recovery strategy with lot mul

MT4 Trading robot Multi-strategyMean reversionIndicator crossover High risk

Signal Service Buddy

by domiflichi
1 stars

Signal Service Buddy is a signal provider utility for MetaTrader 4 that bridges trading activity to Telegram channels via a SQLite database. It acts as a monitoring tool rather than an execution robot, watching the account for new trades. Once a trade is detected, the EA logs entry prices, stop loss, and take profit le

MT4 Copier & bridge
Updated 4 years ago None stated GitHub repository of Signal Service Buddy

Siren EA

by tyohare
1 stars

Siren is a MetaTrader 4 expert advisor that automates trading based on technical indicators and multi-timeframe price levels. It utilizes the ZigZag indicator alongside multiple Exponential Moving Averages, including the 10, 20, 100, and 200 periods, to identify market trends. The EA monitors price action relative to p

MT4 Trading robot Trend followingIndicator crossover
Updated 4 years ago CC0-1.0 GitHub repository of Siren EA

Deep Q Trading DWX Server

by SimonMonnier
1 stars

This MetaTrader 5 expert advisor acts as a communication bridge between the terminal and external applications, specifically tailored for reinforcement learning and Python-based algorithmic trading. It exports real-time market data, bar history, and account information to local files while processing trade commands fro

MT5 Copier & bridge AI / machine learning
Updated 4 years ago None stated GitHub repository of Deep Q Trading DWX Server
1 stars

Synergy Trade Copier is a trade duplication utility for MetaTrader 4 that mirrors orders from a source account to multiple receiver accounts on the same machine. It uses a file-based communication system to transfer trade data between export and import modules. Users can configure the tool to use fixed lot sizes or app

MT4 Copier & bridge
Updated 4 years ago None stated GitHub repository of Synergy Trade Copier

PDSF Mean Reversion

by L-M-Digital
1 stars

This MetaTrader 5 expert advisor is an educational prototype developed for a digital signal processing course at the University of Brasília. It utilizes a mean-reversion strategy based on the Volume Weighted Average Price (VWAP), entering trades when price deviates from the indicator by a specific distance. The robot s

MT5 Trading robot Mean reversion
Updated 4 years ago None stated GitHub repository of PDSF Mean Reversion
1 stars

This expert advisor serves as a bridge connecting MetaTrader 4 to external applications via the ZeroMQ messaging protocol. It enables remote control of the trading terminal, allowing external systems to execute, modify, and close market or pending orders. The EA facilitates real-time data streaming of account balances,

MT4 Copier & bridge
Updated 4 years ago None stated GitHub repository of MetaTrader 4 ZeroMQ Bridge
1 stars

This MetaTrader 4 expert advisor functions as a manual trading panel for execution and strategy testing. It creates an on-chart graphical user interface with buttons for opening buy and sell positions and fields for defining lot sizes, stop losses, and take profits. The utility provides quick management options to clos

MT4 Utility
Updated 4 years ago None stated GitHub repository of EA Backtest Manual Trader

Malcom EA

by silkflo
1 stars

This MetaTrader 4 expert advisor executes trades based on moving average trends and price action triggers. It identifies entries by counting consecutive candles on specific sides of the MA20 and validates the broader trend using an additional MA period. The system incorporates pattern recognition to detect market types

MT4 Trading robot Trend followingIndicator crossover
Updated 4 years ago None stated GitHub repository of Malcom EA

Vela Martillo

by rrg890
1 stars

Vela Martillo is a MetaTrader 4 expert advisor that identifies hammer and shooting star candlestick patterns through price action analysis. It evaluates the ratio of candle wicks to the total range using a configurable spike percentage threshold. The robot monitors new bar formations to detect potential reversals and f

MT4 Trading robot SMC / ICT / price action
Updated 4 years ago None stated GitHub repository of Vela Martillo

MQL HTTP Client

by acro5piano
1 stars

This MetaTrader 4 expert advisor acts as a technical bridge between the trading terminal and external web applications. It captures real-time market data, including bid and ask prices for the active symbol, and transmits this information to a user-defined server via HTTP POST requests in JSON format. The EA is designed

MT4 Copier & bridge
Updated 4 years ago MIT GitHub repository of MQL HTTP Client

HPCS Scalper EA

by arvindbis29
1 stars

This MetaTrader 4 expert advisor utilizes an Exponential Moving Average alignment strategy for short-term trading. It identifies trend direction by comparing several EMA periods, including 5, 8, and 13, to execute market entries. The robot features built-in risk controls, including hard stop loss and take profit settin

MT4 Collection Indicator crossoverScalpingMartingale High risk
Updated 4 years ago None stated GitHub repository of HPCS Scalper EA

Expert Advisors Collection

by johnsmith-mql
1 stars

This repository provides a collection of standard template expert advisors for both MetaTrader 4 and MetaTrader 5. It includes the classic MACD Sample and Moving Average robots, which demonstrate indicator-based trading logic. The MACD Sample enters positions based on MACD signal levels filtered by a moving average tre

MT4MT5 Collection Indicator crossoverTrend following
Updated 4 years ago None stated GitHub repository of Expert Advisors Collection

PyMQL5

by mandrecavalcanti
1 stars

PyMQL5 is a bridge that connects Python 3 to MetaTrader 5 through a UDP socket communication layer. This expert advisor acts as a server within the MetaTrader 5 terminal, allowing external Python scripts to request market data, retrieve account information, and execute trading operations. It supports opening and closin

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

Icarus EA

by Aomforex
1 stars

Icarus EA is a MetaTrader 4 robot that executes a grid trading strategy with lot size progression. It opens sequences of trades at fixed intervals and uses a multiplier to scale lot sizes, identifying it as a martingale-style system. Risk controls include an equity warning threshold, a maximum number of concurrent posi

MT4 Trading robot GridMartingaleHedging High risk
Updated 4 years ago None stated GitHub repository of Icarus EA

MQL4 Trade Panel

by InvestorX
1 stars

This MetaTrader 4 expert advisor acts as a communication bridge using a socket-based architecture. It provides server and client examples to facilitate message exchange between the terminal and external applications. The tool supports basic command handling, such as retrieving current price quotes via telnet connection

MT4 Copier & bridge
Updated 4 years ago None stated GitHub repository of MQL4 Trade Panel
1 stars

This MetaTrader 5 expert advisor provides a foundation for automated trading using a multi-timeframe framework. It utilizes the Average True Range (ATR) indicator to determine dynamic stop loss levels and calculates take profit targets based on a predefined risk-to-reward ratio. The system includes built-in risk contro

MT5 Framework & template Trend following
Updated 4 years ago None stated GitHub repository of Pro Forex MQL5 Template

3 Bar Play EA

by i7657043
1 stars

This expert advisor for MetaTrader 5 automates trades based on the recognition of a specific three-bar candlestick formation. It looks for a small middle bar, termed a baby bar, flanked by larger outer bars to identify entry points. The system incorporates an Exponential Moving Average to filter trend direction and all

MT5 Trading robot SMC / ICT / price action
Updated 4 years ago None stated GitHub repository of 3 Bar Play EA
1 stars

This MetaTrader 4 expert advisor implements a neural network approach to trade financial markets. It generates signals by processing Moving Average data through various activation functions, including Sigmoid, TanH, and ReLu. The EA provides standard risk management features such as fixed take profit, stop loss, and a

MT4 Trading robot AI / machine learningTrend following

Aiden

by Torabi-srh
1 stars

Aiden is a MetaTrader 5 expert advisor that utilizes a multi-indicator weighting system to determine market entries. It calculates trade signals by aggregating 'chances' from several technical indicators including ZigZag, Stochastic, Moving Average crossovers, Parabolic SAR, RSI, MACD, and Momentum. The EA manages risk

MT5 Collection Multi-strategyIndicator crossoverTrend following Archived
Updated 4 years ago MIT GitHub repository of Aiden

This repository is a collection of MetaTrader 4 expert advisors that focus on technical indicator signals. The primary EA combines four Moving Averages with Bollinger Bands to detect trend alignment and volatility conditions. It features dual-level stop loss and take profit settings, along with filters for Bollinger Ba

MT4 Collection Trend followingIndicator crossoverMean reversion
1 stars

This MetaTrader 4 expert advisor implements a basic trend-following strategy using a Simple Moving Average. It triggers buy orders when the current price exceeds the 12-period SMA by a specific point threshold. The system manages risk through a fixed stop loss and a multi-stage trailing stop that adjusts based on favor

MT4 Trading robot Trend following
Updated 4 years ago None stated GitHub repository of Spe Candy From Strangers
1 stars

This repository contains a collection of Expert Advisors for MetaTrader 4, featuring the Combined Ergodic SSL Channel EA and a MACD-based strategy. The primary EA uses trend-following indicators for entries and provides various order management options, including trailing stops, break-even settings, and position accumu

MT4 Collection Trend followingIndicator crossover
1 stars

MtApi Connection Bridge is a technical utility designed to link MetaTrader 4 and 5 terminals with external software environments. It acts as an API gateway using a dedicated DLL to pass commands and data between the platform and a remote application over a specified network port. The expert advisor handles various even

MT4MT5 Copier & bridge
Updated 4 years ago None stated GitHub repository of MtApi Connection Bridge
1 stars

This MetaTrader 4 expert advisor is a trade management tool designed to automate the trailing stop process for existing positions. It monitors open buy and sell orders on the current chart, adjusting the stop loss level based on a user-defined gap. The utility uses a magic number filter to target specific trades or can

MT4 Trade manager

EMA H4 Crossover

by TatsuyaYam
1 stars

EMA H4 Crossover is an automated trading robot for MetaTrader 4 designed to execute trades based on moving average crossovers. The strategy utilizes two Exponential Moving Averages with configurable periods, specifically targeting the H4 timeframe for trend identification. It initiates long entries on golden crosses an

MT4 Trading robot Indicator crossoverTrend following
Updated 4 years ago None stated GitHub repository of EMA H4 Crossover

Arbitrage Expert

by wawaw237zz
1 stars

Arbitrage Expert is a MetaTrader 4 expert advisor that focuses on a zone recovery hedging strategy rather than traditional arbitrage. Based on the OGT Zone Recovery system, it manages trades by opening counter-positions within a defined price zone when an initial trade goes into drawdown. The system employs a lot multi

MT4 Trading robot HedgingMartingaleMean reversion High risk
Updated 4 years ago None stated GitHub repository of Arbitrage Expert

MT5 Docker Bridge

by kevin-bruton
1 stars

This repository provides a containerized MetaTrader 5 environment running on Alpine Linux via Wine, including a VNC server for remote graphical access. It features a bridge expert advisor that enables communication between MetaTrader 5 and external programming languages like Python through file-based data exchange. The

MT5 Copier & bridge
Updated 5 years ago BSD-3-Clause GitHub repository of MT5 Docker Bridge

Sandbox MT5 Study

by greenfield-br
1 stars

This MetaTrader 5 expert advisor serves as a study for basic trading logic and operational limits. It executes simple buy orders based on the relationship between price and a moving average. Specifically, it opens a long position when the current price is above the moving average and the previous candle closed bullish,

MT5 Trading robot Trend following
Updated 5 years ago None stated GitHub repository of Sandbox MT5 Study

This MetaTrader 4 expert advisor uses a simple perceptron neural network to identify market entry and exit points. The system evaluates price action through four adjustable weight parameters to generate signals and includes a reversal mechanism for active positions. Risk management is handled through a fixed stop loss

MT4 Trading robot AI / machine learning

Sniper Profit

by mcvdt07
1 stars

Sniper Profit is a MetaTrader 4 management utility that monitors aggregate floating profit and loss across all open positions. It utilizes a trailing take profit mechanism that activates once a specific equity trigger is reached, allowing the total basket profit to trail by a set distance. The tool includes risk manage

MT4 Trade manager
Updated 5 years ago None stated GitHub repository of Sniper Profit

Bot Mql5

by TheusBoot
1 stars

This MetaTrader 5 expert advisor serves as a basic template or coding exercise for automated trading. It uses simple price action logic by analyzing the open and close prices of a specific candle, defined by a user-inputted index. The EA is designed to open a single position based on whether the selected candle is bull

MT5 Trading robot
Updated 5 years ago None stated GitHub repository of Bot Mql5

Autotrader TFA

by Finansya-Lab
1 stars

This MetaTrader 5 expert advisor automates trading by analyzing market conditions through multiple technical indicators, including Stochastic, RSI, MACD, and dual Moving Averages. It employs an object-oriented approach to identify entry points based on indicator crossovers and trend momentum. Risk management is handled

MT5 Trading robot Indicator crossoverTrend following
Updated 5 years ago None stated GitHub repository of Autotrader TFA

Percent Rank Expert Advisor

by joserubiofernandez
1 stars

This MetaTrader 5 robot executes trades based on the percentile rank of recent price ranges. It incorporates the Average Directional Index as a trend filter to ensure entries occur during specific market conditions. Risk management is handled through automated lot sizing based on a risk percentage and a maximum monetar

MT5 Trading robot Trend followingMean reversion
Updated 5 years ago None stated GitHub repository of Percent Rank Expert Advisor

Swift Trader

by Krazy-Owl
1 stars

Swift Trader is a manual trading utility for MetaTrader 4 that assists users in executing trades using visual chart objects. It creates horizontal lines representing entry, stop loss, and take profit levels, allowing traders to position their orders graphically. The tool includes risk management features such as fixed

MT4 Utility
Updated 5 years ago None stated GitHub repository of Swift Trader
1 stars

This MetaTrader 5 expert advisor collection provides a series of educational scripts for automated trading. The primary robot executes trades based on the relationship between the last market price and a Simple Moving Average. It initiates a buy order when the price is above the average and a sell order when below, pro

MT5 Collection Trend followingIndicator crossover

Analise Do Grafico IQ

by carlosnowatzki
1 stars

Analise Do Grafico IQ is a MetaTrader 4 expert advisor that automates trading based on technical indicator signals. The robot utilizes the Moving Average Convergence Divergence (MACD) indicator to identify momentum shifts and an Exponential Moving Average (EMA) to filter for the prevailing trend. It opens buy and sell

MT4 Trading robot Indicator crossoverTrend following
Updated 5 years ago None stated GitHub repository of Analise Do Grafico IQ
1 stars

MT4 Common Functions Library is a developer-focused utility framework for the MetaTrader 4 platform. It provides a collection of encapsulated helper functions designed to simplify common programming tasks in MQL4. The primary functionality involves a flexible file management system capable of creating, reading, and app

MT4 Framework & template

Forex Bot Collection

by MrMohebi
1 stars

This collection of MetaTrader 4 expert advisors serves as a practice environment for MQL4 development. The scripts primarily focus on moving average crossover logic, utilizing 50-period Simple Moving Average and 15-period Exponential Moving Average indicators. Additionally, the code implements swing high and low detect

MT4 Collection Indicator crossoverSMC / ICT / price actionScalping
Updated 5 years ago None stated GitHub repository of Forex Bot Collection
1 stars

This MetaTrader 4 expert advisor monitors tick volume patterns to identify periods of increasing market activity. It analyzes the volume of the four most recent candles, triggering signals when volume increases consecutively over four bars. Upon detection, the EA generates a terminal alert, displays a message box, and

MT4 Utility
Updated 5 years ago None stated GitHub repository of Volume Indicator Alert

Mql Framework EA

by lvhaiyang
1 stars

This MetaTrader 5 expert advisor serves as a template and demonstration for automated trading systems. It implements a basic moving average crossover strategy using two configurable periods to determine market entries. The code is structured around a custom trading class that provides utility functions for analyzing hi

MT5 Framework & template Indicator crossoverHedging
Updated 5 years ago None stated GitHub repository of Mql Framework EA

Portuguese

by gandra70
1 stars

Portuguese is a MetaTrader 5 expert advisor designed as a trend-following robot utilizing multiple moving average indicators. It employs five distinct moving average periods and shifts to identify trade signals. The system manages positions through a comprehensive set of risk controls including fixed stop loss and take

MT5 Trading robot Indicator crossoverTrend following
Updated 5 years ago None stated GitHub repository of Portuguese

Inside Inside Out EA

by smzimelaJHB
1 stars

This MetaTrader 5 expert advisor executes trades based on a strategy involving nested Bollinger Bands and a 200-period moving average filter. The robot monitors price action relative to two sets of volatility bands with differing standard deviations to identify breakout opportunities. It enters positions when a specifi

MT5 Trading robot Trend followingBreakout
Updated 5 years ago None stated GitHub repository of Inside Inside Out EA

Algotrader Germany Samples

by algotrader-germany
1 stars

This repository provides sample Expert Advisors for MetaTrader 4 and 5, focusing on a Donchian Channel breakout system. The robot identifies entries based on price breaking through the highest high or lowest low of a defined lookback period. Risk management is handled through percentage-based stop losses, take profits,

MT4MT5 Collection BreakoutTrend following
Updated 5 years ago None stated GitHub repository of Algotrader Germany Samples

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