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
865 EAs match Clear filters
1 stars

This MetaTrader 4 utility provides a technical framework for generating custom candlestick timeframes, such as two-day and three-day charts. It processes data from standard sources like H1 or M1 and organizes the results into a series array for custom chart construction. The tool is designed to handle broker start hour

MT4 Utility
Updated 6 years ago None stated GitHub repository of Custom Candlestick Builder

DaFinantial MT4 Collection

by DanielAlbino
1 stars

This repository is a collection of MetaTrader 4 expert advisors and study scripts focused on technical analysis and automated execution. It includes modules for identifying support and resistance levels, templates for news-based trading, and tools for drawing visual objects based on price extremes. The projects serve a

MT4 Collection BreakoutNewsMean reversion

Mt4 Link Framework

by ChamalAB
1 stars

Mt4 Link is an MQL4 server-client communications framework designed for MetaTrader 4. It enables the terminal to interact with external web services via a centralized command system. The framework includes modules for file management, update speed control, and execution delays. A sample implementation demonstrates how

MT4 Framework & template
Updated 6 years ago Custom licence GitHub repository of Mt4 Link Framework

Estudos MQL5

by lucasmoreiradev
1 stars

This repository contains a collection of MetaTrader 5 expert advisors developed for educational purposes and study. The primary robot, Cruzamento Media EA, utilizes a moving average crossover strategy with configurable short and long periods. It incorporates essential risk management tools, including fixed stop loss, t

MT5 Collection Indicator crossover
Updated 6 years ago None stated GitHub repository of Estudos MQL5

Engulfing Pattern EA

by JaydenTan98
1 stars

This expert advisor for MetaTrader 4 executes trades based on the engulfing candle pattern, a classic price action signal. It identifies scenarios where the current candle completely covers the previous candle's range and filters entries using a Moving Average to ensure alignment with the prevailing trend. The EA place

MT4 Trading robot Trend followingSMC / ICT / price action
Updated 6 years ago None stated GitHub repository of Engulfing Pattern EA

MQL5 Strategy Collection

by pasindubawantha
1 stars

This repository provides a collection of MetaTrader 5 expert advisors, including standard MetaQuotes examples and specialized indicator-based bots. The expert advisors utilize technical analysis tools like MACD, Moving Averages, and Parabolic SAR to automate market entries. Risk management is handled through user-defin

MT5 Collection Trend followingIndicator crossover
Updated 6 years ago None stated GitHub repository of MQL5 Strategy Collection

Expert Trading Robots MQL5

by Kumbirai-Bodzo
1 stars

This repository provides a collection of MetaTrader 5 expert advisor templates and functional code modules. Designed as an educational resource, the code demonstrates how to implement technical indicators like Bollinger Bands, Bears Power, and the Average True Range within the MQL5 environment. The main file serves as

MT5 Collection Mean reversion
Updated 6 years ago None stated GitHub repository of Expert Trading Robots MQL5
1 stars

This MetaTrader 5 expert advisor serves as a bridge between the trading terminal and an external Python API server. It allows users to control the terminal and manage trades through remote infrastructure using JSON-based communication. The code includes specific functions for managing trailing take profits on active po

MT5 Copier & bridge

Order Management MT4

by jmahiques
1 stars

This MetaTrader 4 expert advisor functions as a trade management panel for manual traders. It features an on-chart user interface with buttons for executing buy and sell orders. The tool automates trade exits using multiple stages, including standard stop loss and take profit levels, as well as partial take profit and

MT4 Trade manager
Updated 6 years ago None stated GitHub repository of Order Management MT4
1 stars

This MetaTrader 4 expert advisor functions as a data bridge between the trading platform and external applications. It utilizes the WebRequest function to send real-time Bid and Ask prices to a local web server via POST requests every two seconds. Additionally, it can retrieve and parse event data from the server using

MT4 Copier & bridge
Updated 6 years ago None stated GitHub repository of MQL4 HTTP Data Collector

200 EMA

by twimprine
1 stars

This MetaTrader 4 expert advisor executes trades based on Exponential Moving Average conditions across multiple timeframes. Originally designed as a crossover strategy, it incorporates a dynamic stop loss mechanism that adjusts based on price distance from the entry point. The robot features built-in risk controls, inc

MT4 Trading robot Indicator crossoverTrend following
Updated 7 years ago None stated GitHub repository of 200 EMA
1 stars

This MetaTrader 4 repository contains a collection of expert advisors, including implementations of the standard MACD Sample and Moving Average strategies. The primary MACD robot enters trades based on MACD signal line crossovers filtered by an exponential moving average trend component. Risk management is handled thro

MT4 Collection Indicator crossoverTrend following
Updated 7 years ago None stated GitHub repository of MQL4 Trader Collection
1 stars

This MetaTrader 5 utility identifies and visualizes horizontal levels based on the Ichimoku Kinko Hyo indicator components. It specifically scans for flat segments of the Tenkan Sen, Kijun Sen, and Senkou Span B lines where values remain constant for a user-defined number of consecutive periods. The software draws thes

MT5 Utility
Updated 7 years ago None stated GitHub repository of Ichimoku Horizontal Lines
1 stars

Tao Stock Simple Arrow is a MetaTrader 4 expert advisor that serves as a visual signal generator for price breakouts. The program identifies the highest and lowest price levels within the most recent 100 candles. If the current price breaks these established boundaries, it places buy or sell arrow objects directly on t

MT4 Utility Breakout
Updated 7 years ago None stated GitHub repository of Tao Stock Simple Arrow
1 stars

This repository contains a large collection of over 300 MetaTrader 4 expert advisors and scripts, including standard MetaQuotes samples and custom experimental tools. The primary file, Algo Prueba, utilizes the Relative Vigor Index (RVI) to determine market entries and exits. It features basic trade management by filte

MT4 Collection Indicator crossover
Updated 7 years ago None stated GitHub repository of Algo Prueba FX Collection

Laguna EA Collection

by dannylius
1 stars

Laguna EA is an automated trading robot for MetaTrader 5 that utilizes the Average Directional Index and Exponential Moving Averages to identify market trends. It filters entries by requiring a minimum ADX value to ensure sufficient trend strength before executing trades. The system manages risk with fixed lot sizing a

MT5 Collection Trend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Laguna EA Collection

TFEX Competition 555

by assazzin
1 stars

This MetaTrader 4 expert advisor is an automated trading robot developed for a 2019 trading competition. It executes trades based on a price range breakout strategy, calculating entry levels from the high and low values of previous candles. The algorithm filters entries using a 10-period Exponential Moving Average and

MT4 Trading robot Trend followingBreakout
Updated 7 years ago None stated GitHub repository of TFEX Competition 555
1 stars

This repository is a collection of MetaTrader 5 expert advisors and scripts designed as educational materials for a beginner-to-master MQL5 course. The codebase includes various modules demonstrating fundamental programming elements, such as arithmetic operations, loops, arrays, and data types. The included expert advi

MT5 Collection
Updated 7 years ago None stated GitHub repository of Udemy MQL5 Course Examples

Pivot Points EA

by Skryrq
1 stars

This MetaTrader 4 expert advisor automates trading based on pivot point technical levels. It focuses on systematic trade execution with integrated risk management, featuring automated lot sizing calculated as a percentage of account balance relative to stop loss distance. The EA includes a trailing stop mechanism that

MT4 Trading robot Mean reversionBreakout
Updated 7 years ago None stated GitHub repository of Pivot Points EA
1 stars

This expert advisor serves as a communication bridge between MetaTrader 5 and external applications using the ZeroMQ messaging protocol. It functions as a server that listens for incoming requests on a specified TCP port, enabling data exchange and command execution from external scripts such as Python. The tool utiliz

MT5 Copier & bridge
1 stars

This MetaTrader 5 repository contains a collection of experimental expert advisors focused on trend-following and crossover logic. The primary codebase utilizes the Average Directional Index (ADX) to gauge trend strength and Moving Average crossovers to determine trade entries. The included tools feature hardcoded stop

MT5 Collection Trend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Expert Advisor Experiment

MACD MA Cross

by b79528
1 stars

MACD MA Cross is a MetaTrader 4 expert advisor that automates entries based on the alignment of MACD signals and Moving Average crossovers. The strategy triggers trades when indicators confirm a trend, using Linear Weighted Moving Averages (LWMA) for direction. The EA features an unconventional exit strategy where posi

MT4 Trading robot Indicator crossoverTrend following
Updated 7 years ago None stated GitHub repository of MACD MA Cross

Tema Atr EA

by marcellmanfrin
1 stars

This MetaTrader 5 expert advisor implements a mean-reversion strategy using the Triple Exponential Moving Average and Average True Range indicators. It constructs dynamic volatility bands by applying a multiplier to the ATR value relative to the TEMA. The robot enters a sell position when the market price breaks above

MT5 Trading robot Mean reversion
Updated 7 years ago None stated GitHub repository of Tema Atr EA

Fuzzy Trade EA Collection

by TsutomuSakata01
1 stars

This collection for MetaTrader 4 and 5 includes various expert advisors exploring fuzzy logic and standard technical indicators. The primary logic demonstrated in the source files utilizes Simple Moving Averages to identify trend direction and price positioning. It features standard risk controls including fixed lot si

MT4MT5 Collection Trend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Fuzzy Trade EA Collection
1 stars

This collection of MetaTrader 4 and 5 expert advisors provides various utilities for trade management and entry automation. The primary tool, Multi TP, monitors specific order tickets to execute partial closes and modify stop losses when price targets are hit. Additional scripts automate entries based on price action p

MT4MT5 Collection BreakoutMean reversionMulti-strategy
1 stars

This MetaTrader 4 expert advisor collection features a robot based on Stochastic oscillator crossovers. It monitors the M15 timeframe to identify shifts in momentum, entering trades when the fast indicator line crosses the slow line. The system automatically manages exits by closing opposing positions before opening ne

MT4 Collection Indicator crossover
Updated 7 years ago None stated GitHub repository of Quantize EA Collection

Hattyuu Samurai Zero

by bushidofx
1 stars

Hattyuu Samurai Zero is a manual trading panel for MetaTrader 4 that provides a graphical user interface for order execution and management. Built using the mt4gui2 library, it features on-chart buttons for entering and exiting trades, along with dedicated controls for trailing stops. The utility displays real-time met

MT4 Utility
Updated 7 years ago None stated GitHub repository of Hattyuu Samurai Zero
1 stars

This Expert Advisor for MetaTrader 5 implements a trend-following strategy based on four moving averages. It determines market direction to trigger buy or sell entries during specified trading hours. The robot features time-restricted operations, allowing trade execution only between set start and end times. Risk manag

MT5 Trading robot Trend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Four Moving Average Advisor

Auto Mini Dolar

by ibbxinovacao
1 stars

This MetaTrader 5 expert advisor automates trading for the Brazilian Mini Dollar market. It operates as an intraday robot, utilizing specific time-based filters to control when the system can open new positions and when it must liquidate all open trades before the daily market close. The EA includes standard risk contr

MT5 Trading robot
Updated 7 years ago None stated GitHub repository of Auto Mini Dolar

Breakout Exp

by galaxysp1
1 stars

Breakout Exp is a MetaTrader 4 expert advisor that implements a breakout-based trading strategy. It utilizes adjustable fast and slow period parameters to determine market entry and exit points. The system manages trades using fixed lot sizes and identifies its own positions via a unique magic number. It includes funct

MT4 Trading robot Breakout
Updated 7 years ago None stated GitHub repository of Breakout Exp

TrendLine Trade Robot

by szczudlo6
1 stars

This MetaTrader 4 expert advisor automates trading based on trendline analysis. It identifies price trends within a specific lookback period and executes entries when price aligns with these detected structures. The robot manages risk through a percentage-based money management system, requiring a stop loss and minimum

MT4 Trading robot Trend following
Updated 7 years ago None stated GitHub repository of TrendLine Trade Robot
1 stars

This MetaTrader 4 repository provides a set of tools and scripts designed around Pivot Point price levels. It includes a module for drawing pivots on the chart and a statics Expert Advisor that performs historical analysis. The statics tool scans thousands of candles to determine if price successfully touched weekly pi

MT4 Collection Mean reversion
Updated 7 years ago None stated GitHub repository of Pivot Points MT4 Collection

Simple RSI

by dominiconorton
1 stars

This expert advisor for MetaTrader 5 provides a foundational implementation of the Relative Strength Index (RSI). It calculates the RSI value using a standard 14-period setting on the current chart and timeframe. The code focuses on data retrieval and processing, using the iRSI function and price buffers to determine t

MT5 Utility
Updated 7 years ago MIT GitHub repository of Simple RSI
1 stars

This expert advisor for MetaTrader 4 automates trading based on the Pin Bar candlestick pattern. It identifies entries by evaluating candle geometry, specifically the ratio of the body to the total length and the minimum size of the candle. Users can adjust the sensitivity of the detection logic and limit the maximum n

MT4 Trading robot SMC / ICT / price action
Updated 7 years ago None stated GitHub repository of Pin Bar Trade Robot
1 stars

This MetaTrader 5 expert advisor serves as an equity monitoring utility designed to alert traders when their account equity hits a specific target. It operates by continuously scanning the account status and comparing the live equity value against a user-defined parameter. When the threshold is met, the program sends a

MT5 Risk & protection
1 stars

Michael Balack EA is a collection of MetaTrader 4 scripts and automated trading tools, primarily focusing on session-based range breakouts. The main expert advisor identifies the minimum and maximum price levels during a specific user-defined time window. It manages trades using fixed lot sizing and includes parameters

MT4 Collection Breakout
Updated 7 years ago None stated GitHub repository of Michael Balack EA
1 stars

This utility for MetaTrader 5 monitors open positions to alert the user when a specific profit target is achieved. It continuously checks the floating profit of active trades against a user-defined input parameter. When a trade meets or exceeds this threshold, the expert advisor sends a mobile push notification to the

MT5 Utility

MA Crossover

by Daiwv
1 stars

This MetaTrader 4 expert advisor executes trades based on the crossover of two Simple Moving Averages. It identifies trend shifts by comparing the relationship between a fast and a slow moving average over the two most recent bars. The robot enters a buy position and closes existing sell trades when the fast MA crosses

MT4 Trading robot Indicator crossoverTrend following
Updated 7 years ago None stated GitHub repository of MA Crossover

Engulfing One

by WebDevPDX
1 stars

This MetaTrader 4 expert advisor implements a basic price action strategy based on bullish and bearish engulfing candlestick patterns. It identifies trade signals by comparing the current candle body to the previous one at the start of each new bar. The logic includes dynamic stop loss placement at recent candle extrem

MT4 Trading robot SMC / ICT / price action
Updated 7 years ago None stated GitHub repository of Engulfing One

HGSS Candle Bob

by odrisb
1 stars

HGSS Candle Bob is an automated trading system for MetaTrader 4 that identifies trade setups using candle sequences and external library signals. It evaluates market conditions via the HGI library to detect trends and ranges, allowing for both trend-following and pullback strategies. Risk management includes fixed lot

MT4 Trading robot Trend followingMean reversionMulti-strategy
Updated 7 years ago None stated GitHub repository of HGSS Candle Bob
1 stars

This MetaTrader 5 utility functions as a trade manager that monitors open positions for specific profit levels. It automatically closes a position once the floating profit reaches or exceeds a user-defined monetary threshold. The tool operates by scanning symbols in the market watch on every price tick. It automates ex

MT5 Trade manager
Updated 7 years ago None stated GitHub repository of Close Position On Profit

Hartono Wen MT4 Scripts

by hartono-wen
1 stars

This MetaTrader 4 repository provides a collection of utility scripts intended for personal use. Its main Expert Advisor functions as a logic framework for developers, specifically designed to execute code exactly once at the start of each new price bar. By comparing the current bar time to the last recorded timestamp,

MT4 Framework & template
1 stars

This MetaTrader 5 expert advisor implements J. Welles Wilder's momentum concept as described in his foundational technical trading literature. The tool functions as a price scanner that calculates the mathematical difference between the most recent closed bar and a historical reference bar. It outputs these calculation

MT5 Utility
1 stars

This MetaTrader 5 tool scans historical price data to identify candlesticks with identical characteristics to the most recently closed candle. It functions as a pattern recognition utility for identifying Japanese Candlestick formations such as the Homing Pigeon and Marubozu across various timeframes. The expert operat

MT5 Utility SMC / ICT / price action

This repository contains a collection of utility scripts for MetaTrader 4 designed for manual order management. The tools allow users to automate the closing of all open market positions or the deletion of pending orders in bulk. These scripts identify and process order types including Buy Limit, Sell Limit, Buy Stop,

MT4 Collection
1 stars

This collection for MetaTrader 4 provides a set of expert advisors designed for testing technical indicator logic and trade management. The primary EA, Optimal Close, integrates Bollinger Bands and Stochastic oscillators to analyze market conditions across multiple timeframes. It features a built-in trailing stop mecha

MT4 Collection Indicator crossoverMean reversion
1 stars

This MetaTrader 4 expert advisor executes trades based on short-term price momentum across three consecutive candles. It monitors closing prices to identify price direction, initiating a buy order when prices are rising or a sell order when prices are falling. The system includes configurable fixed stop loss and take p

MT4 Trading robot Trend following

Quantum Reverse EA

by nohros
1 stars

The Quantum Reverse EA is a low-frequency counter-trend trading robot developed for the MetaTrader 5 platform. It aims to identify potential market reversals to enter trades against the current trend direction. Based on the provided repository contents, the expert advisor is in a foundational state, as the main source

MT5 Trading robot Mean 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 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