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.

125 EAs match Clear filters
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

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

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

Nafi Deep RL

by neoricalex
3 stars

Nafi is a MetaTrader 5 expert advisor framework designed for deep reinforcement learning in forex trading. It bridges Python-based training environments, such as OpenAI Gym and PyTorch, with MetaTrader to facilitate automated trade execution. The system features standard risk management controls including fixed lot siz

MT5 Trading robot AI / machine learningTrend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Nafi Deep RL

Genesis Trading Platform

by FabricioProjects
3 stars

This MetaTrader 5 repository provides a collection of expert advisors centered around a data science framework for financial markets. The system implements deep learning classification methods, including deep neural networks and fractal analysis, to identify market patterns. It includes specific modules for Brazilian f

MT5 Collection AI / machine learningMulti-strategy
Updated 9 years ago None stated GitHub repository of Genesis Trading Platform
2 stars

This repository contains a collection of MetaTrader 5 expert advisors focused on advanced quantitative and machine learning techniques. The featured EA utilizes a technical summary approach inspired by TradingView, combining moving averages and oscillators with neural network confirmation via Hopfield and Restricted Bo

MT5 Collection AI / machine learningTrend followingBreakout
Updated 2 weeks ago None stated GitHub repository of Medium Papers EA Collection

Mt4 Ai Trading

by 160037lk
2 stars

This MetaTrader 4 expert advisor connects to a Python FastAPI backend to facilitate automated trading based on Claude AI signals. The system transmits market data to the server, which performs multi-indicator analysis and sentiment processing before returning trade recommendations. It features multi-timeframe trend fil

MT4 Collection AI / machine learningTrend followingNews
Updated 4 months ago None stated GitHub repository of Mt4 Ai Trading

GoldForge ML

by pw4654918-jpg
2 stars

GoldForge ML is a MetaTrader 5 expert advisor specialized for gold trading on the M15 timeframe using a machine learning ensemble. It combines CatBoost, XGBoost, and LightGBM models via ONNX with Smart Money Concepts such as liquidity sweeps and order blocks. The EA manages risk through ATR-based stop losses, trailing

MT5 Trading robot AI / machine learningSMC / ICT / price actionTrend following
Updated 5 months ago None stated GitHub repository of GoldForge ML
2 stars

This expert advisor acts as an execution bridge between MetaTrader 4 or 5 and an external AI-powered signal provider. It operates by polling a local API endpoint for trade instructions and transmitting order updates back to a central analytics dashboard. The system manages both market and pending orders, including buy

MT4MT5 Trading robot AI / machine learning

Oslib MT5 Collection

by marcoc68
2 stars

Oslib is an extensive repository of Expert Advisors and indicators for MetaTrader 5, encompassing various quantitative trading approaches. The collection includes statistical arbitrage robots that trade spreads between two correlated symbols, machine learning experts utilizing Support Vector Machines (SVM), and high-fr

MT5 Collection ArbitrageAI / machine learningMean reversion High risk
Updated 11 months ago GPL-3.0 GitHub repository of Oslib MT5 Collection

GGTH AI Modules

by syngyn
2 stars

This collection of MetaTrader 5 expert advisors integrates external machine learning models via a local HTTP daemon for trade execution. The core system, GGTH-SR, utilizes sophisticated position sizing based on the Kelly Criterion with confidence-based scaling and smoothing. It includes an adaptive scalping module with

MT5 Trading robot AI / machine learningScalping
Updated 1 year ago None stated GitHub repository of GGTH AI Modules

Cortex5 AI Trading

by toniibrahim
2 stars

This artificial intelligence expert advisor for MetaTrader 5 utilizes a Double-Dueling Deep Recurrent Q-Network with LSTM memory to automate forex trading. The system processes a 45-dimensional state space to execute trades based on reinforcement learning. It includes extensive risk management features such as ATR-base

MT5 Trading robot AI / machine learningMartingale High risk
Updated 1 year ago None stated GitHub repository of Cortex5 AI Trading

AI Assisted EAs

by cgmond
2 stars

This MetaTrader 5 repository contains a collection of expert advisors, including a scalping robot built with AI assistance for Forex, Gold, Crypto, and Indices. The main EA integrates technical indicators like RSI, Moving Averages, and ADX for entry signals. Risk management is handled through percentage-based lot sizin

MT5 Collection ScalpingHedgingMean reversion
Updated 1 year ago None stated GitHub repository of AI Assisted EAs

The AI Quantum Learning Advanced Trailing Stop EA is an automated trading robot for MetaTrader 5 that employs neural network structures and quantum probability calculations. It monitors market patterns by analyzing price changes, volume, volatility, and indicators like RSI. The EA manages risk using fixed stop loss and

MT5 Trading robot AI / machine learningMean reversion

Scalping Robot ML

by Red-misst
2 stars

This expert advisor for MetaTrader 5 performs scalping by identifying price levels based on a configurable lookback period. It incorporates a machine learning signal filter, requiring a separate Python environment to classify high-probability trade setups using historical market data. The robot manages entries within s

MT5 Trading robot ScalpingAI / machine learning
Updated 1 year ago None stated GitHub repository of Scalping Robot ML
2 stars

This MetaTrader 5 expert advisor utilizes an Echo State Network, which is a type of recurrent neural network, to analyze price action and execute trades. The system computes various statistical inputs, including price volatility, mean values, and Hurst exponent metrics, to feed its reservoir computing model. Risk is ma

MT5 Trading robot AI / machine learningMartingale High risk
Updated 2 years ago None stated GitHub repository of Echo State Network Tester

Forecasting LSTM

by frkn2076
2 stars

This MetaTrader 5 expert advisor utilizes a Long Short-Term Memory (LSTM) machine learning model to forecast price movements for the GBPUSD currency pair. It operates by triggering an external Python script every hour to perform incremental learning and generate price predictions. The robot enters trades when predicted

MT5 Trading robot AI / machine learning
Updated 2 years ago None stated GitHub repository of Forecasting LSTM
2 stars

This MetaTrader 5 expert advisor serves as a technical bridge to integrate Python-based trading models into the platform. It facilitates the testing and validation of external models within the MetaTrader Strategy Tester by utilizing the ONNX format for cross-platform compatibility. The system allows developers to leve

MT5 Copier & bridge AI / machine learning
2 stars

This MetaTrader 5 expert advisor implements a trade execution strategy based on a linear regression model. It calculates entries using specific coefficients for an intercept and five independent variables, which include volatility, relative strength index, and average directional index data. The bot supports intraday o

MT5 Trading robot AI / machine learningMean reversion

Saxby Andrew ML EA

by saxbyandrew
2 stars

This MetaTrader 5 expert advisor is a legacy project focused on machine learning and neural network forecasting. The system implements logic for training models and generating forecasts using technical indicators like ADX and ZigZag. It includes several optional modules for long, short, hedging, and martingale trading

MT5 Trading robot AI / machine learningMartingaleHedging High risk
Updated 5 years ago None stated GitHub repository of Saxby Andrew ML EA

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

Trader App ZeroMQ Bridge

by FarzanehCS
2 stars

This expert advisor serves as a bridge between MetaTrader 4 and external applications using the ZeroMQ messaging protocol. It allows external programs to communicate with the terminal over TCP sockets to send trading commands or retrieve market data. The EA functions as a server, hosting REP and PUSH sockets to handle

MT4 Copier & bridge AI / machine learning
Updated 7 years ago None stated GitHub repository of Trader App ZeroMQ Bridge

Stat Euclidean Metric

by suvorovkonstantin
2 stars

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

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

Xau Cloud AI Sniper

by Lamarrsdrip
1 stars

Xau Cloud AI Sniper is an automated trading robot for MetaTrader 5 designed for gold trading. It utilizes a multi-layered entry pipeline involving a pattern engine, breakout detection, and trend alignment, often synchronized with external cloud-based market outlooks. The system features an AI-filter mode to validate tr

MT5 Collection BreakoutTrend followingMean reversion High risk
Updated yesterday None stated GitHub repository of Xau Cloud AI Sniper

AI Game Theory Trader

by can87683
1 stars

AI Game Theory Trader is a MetaTrader 5 expert advisor that employs Nash-style statistical signals for automated trade execution. It utilizes adaptive logic to calculate lot sizes based on user-defined risk percentages. The EA manages risk through stop losses, take profits, and trailing stops, which can be fixed or ATR

MT5 Trading robot AI / machine learning
Updated yesterday BSD-3-Clause GitHub repository of AI Game Theory Trader

Xau Ai Pro

by apolopanda500
1 stars

This expert advisor for MetaTrader 5 is a sophisticated trading system specifically optimized for gold. It operates as part of a hybrid ecosystem, utilizing a Python-based desktop interface for local machine learning model training and market analysis while executing trades via the MQL5 robot. The EA employs a multi-la

MT5 Trading robot AI / machine learningTrend followingNews
Updated 2 days ago None stated GitHub repository of Xau Ai Pro

BotTrade ML

by soemsri
1 stars

This MetaTrader 5 expert advisor collection focuses on machine learning strategies, specifically Lorentzian Classification and Nadaraya-Watson Kernel Regression. It is primarily designed for trading gold on the H4 timeframe but offers configurable parameters for broader market use. The system supports both mean-reversi

MT5 Collection AI / machine learningMean reversionBreakout High risk
Updated 2 days ago MIT GitHub repository of BotTrade ML

Adaptive DDQN MT5

by chyr-rpg
1 stars

This MetaTrader 5 expert advisor is a research-oriented reinforcement learning system implemented natively in MQL5. It utilizes a Deep Q-Network to make trading decisions based on market states derived from technical indicators, volatility, and supply-demand zones. The system manages trades using a grid-based basket ap

MT5 Trading robot AI / machine learningGridMartingale High risk
Updated 2 days ago None stated GitHub repository of Adaptive DDQN MT5

GoldEngine Sentinel

by vivekpanchal2489
1 stars

GoldEngine Sentinel is a specialized expert advisor for MetaTrader 5, designed specifically for trading spot gold. It utilizes an advanced architecture combining dual-AI ONNX models: SuperGRU for macro bias and Master AI for micro order flow analysis. Trade execution is filtered through Gaussian Kernel Channels and Nad

MT5 Trading robot AI / machine learningMean reversionSMC / ICT / price action
Updated 5 days ago None stated GitHub repository of GoldEngine Sentinel

Conquest EA

by MunchonGithub
1 stars

Conquest EA is a self-adjusting expert advisor for MetaTrader 5 that utilizes Smart Money Concepts such as Fair Value Gaps and Break of Structure for entries. It features a built-in learning module that evaluates its own trade outcomes to adjust strategy weighting and confidence in real-time. Risk management includes a

MT5 Trading robot SMC / ICT / price actionAI / machine learningTrend following
Updated 4 weeks ago Apache-2.0 GitHub repository of Conquest EA

Quantum Alpha MT5 ONNX

by yole-shop-oficial
1 stars

This expert advisor for MetaTrader 5 combines traditional quantitative strategies with machine learning via the ONNX runtime. It features multiple trading modes including Order Blocks, market structure analysis, and a hybrid AI strategy using neural network predictions trained in PyTorch. The system incorporates compre

MT5 Trading robot SMC / ICT / price actionAI / machine learningTrend following High risk
Updated 5 weeks ago None stated GitHub repository of Quantum Alpha MT5 ONNX
1 stars

This MetaTrader 5 expert advisor utilizes a Naive Bayes probabilistic model integrated with Smart Money Concepts and ICT principles to identify trading opportunities. It primarily targets gold bias and pullbacks but includes logic for universal symbol support. The system uses a machine learning engine that self-retrain

MT5 Trading robot AI / machine learningSMC / ICT / price actionMulti-strategy

Ichimoku Strategy Bot

by Mrben509
1 stars

This MetaTrader 5 expert advisor utilizes the Ichimoku Kinko Hyo indicator system integrated with a machine learning boosting model to execute trades. It analyzes technical factors including RSI, ATR, Z-scores, and price slopes to determine a success probability before opening positions. The robot features built-in ris

MT5 Trading robot Trend followingAI / machine learning
Updated 6 weeks ago None stated GitHub repository of Ichimoku Strategy Bot
1 stars

This automated trading system for MetaTrader 5 utilizes machine learning models via the ONNX runtime to forecast currency trends. It implements an ensemble approach, combining predictions from Logistic Regression, Support Vector Machines, Random Forest, and XGBoost. The system operates in two primary modes: technical i

MT5 Trading robot AI / machine learningNewsTrend following

LSTM Pure MTF EA

by RemindCZ
1 stars

This MetaTrader 5 expert advisor implements a multi-layer Long Short-Term Memory (LSTM) neural network for automated trading. It leverages a custom CUDA-accelerated DLL to handle intensive GPU computations, including asynchronous training and batch inference. The strategy processes data from three configurable timefram

MT5 Trading robot AI / machine learning
Updated 8 weeks ago Custom licence GitHub repository of LSTM Pure MTF EA

Neural Network EA

by farhadmonavar
1 stars

This MetaTrader 5 expert advisor implements a single-layer neural network to generate market signals without requiring external machine learning libraries. It utilizes native MQL5 matrix and vector operations to train a model directly on historical data, using the Relative Strength Index and Bollinger Bands as primary

MT5 Utility AI / machine learning
Updated 8 weeks ago None stated GitHub repository of Neural Network EA

XM Gold AI Trader

by fuquan728-lang
1 stars

XM Gold AI Trader is an automated expert advisor for MetaTrader 5 that leverages a Python-based backend powered by DeepSeek AI. The system processes market data using indicators such as RSI, MACD, and Bollinger Bands to generate signals, which are transmitted via WebSocket or TCP sockets. It includes robust risk contro

MT5 Collection AI / machine learningTrend followingMean reversion High risk
Updated 2 months ago None stated GitHub repository of XM Gold AI Trader

AI Canvas EA

by mahfujchowdhury
1 stars

This MetaTrader 5 expert advisor integrates with OpenAI API models, specifically GPT-4o, to analyze market data and generate trading signals. The tool sends a configurable number of recent chart bars to the AI model for processing and can execute trades automatically based on the response. It includes a chat-style inte

MT5 Trading robot AI / machine learning
Updated 2 months ago None stated GitHub repository of AI Canvas EA

PASR Modular

by sakuninfinix-svg
1 stars

PASR Modular is a MetaTrader 5 expert advisor designed for automated trading using a modular framework. It employs technical indicators like ATR for dynamic stop losses and take profits, alongside ADX for trend filtering. The system integrates machine learning components for trade inference and multi-timeframe analysis

MT5 Trading robot AI / machine learningTrend followingMulti-strategy
Updated 2 months ago None stated GitHub repository of PASR Modular

MoneyMaker EA Collection

by akshayboora342-cell
1 stars

This MetaTrader 5 collection features the Prime Quantum AI expert advisor alongside a Python-based FastAPI dashboard for strategy management. The primary robot utilizes a hybrid logic, combining traditional indicators like ADX and the Bill Williams Alligator with external artificial intelligence models for market analy

MT5 Collection AI / machine learningTrend followingGrid High risk
Updated 3 months ago Apache-2.0 GitHub repository of MoneyMaker EA Collection

Conquest Platinum SMC EA

by MunchonGithub
1 stars

This MetaTrader 5 expert advisor implements a comprehensive Smart Money Concepts strategy, detecting market structure shifts through Break of Structure and Change of Character events. It monitors Fair Value Gaps and liquidity sweeps to identify entry points across multiple timeframes. The system offers several executio

MT5 Trading robot SMC / ICT / price actionScalpingTrend following
Updated 3 months ago Apache-2.0 GitHub repository of Conquest Platinum SMC EA
1 stars

LQS AI Institutional Engine is a MetaTrader 5 robot designed for trading gold using market microstructure analysis. It combines four analytical modules focusing on liquidity sweeps, order flow divergence, Wyckoff accumulation and distribution phases, and multiple anchored VWAP levels. The system features an integrated

MT5 Trading robot SMC / ICT / price actionAI / machine learningMean reversion High risk
Updated 4 months ago None stated GitHub repository of Lqs Ai Institutional Engine

MT5 Experts AI

by tahaalhafid
1 stars

This expert advisor for MetaTrader 5 utilizes an advanced modular architecture focused on market regimes and decision consensus. It implements a Council-based execution system that evaluates quality scores, spread fractions, and consensus levels before triggering trades. The system features an AI evolution engine desig

MT5 Trading robot AI / machine learningMulti-strategy
Updated 4 months ago None stated GitHub repository of MT5 Experts AI

Gold Scalper AI Bridge

by almightymoon
1 stars

This MetaTrader 5 expert advisor acts as a bridge between the trading terminal and an external Python-based AI server. It extracts market data and technical indicators—including EMA, RSI, ATR, and ADX across multiple timeframes—to request trade signals via ZeroMQ, TCP, or file-based communication. The EA manages trade

MT5 Trading robot AI / machine learningScalpingIndicator crossover Archived
Updated 4 months ago None stated GitHub repository of Gold Scalper AI Bridge
1 stars

This collection for MetaTrader 5 provides a suite of trading algorithms and risk management utilities. The primary expert advisor features an adaptive machine learning system using a neural network and evolutionary genetic algorithms. It analyzes market structure, volume profiles, and candlestick patterns to execute tr

MT5 Collection AI / machine learningSMC / ICT / price action

GoldenGauss EA V4

by combjuda
1 stars

GoldenGauss EA V4 is a neural network-based trading robot for MetaTrader 5 that utilizes machine learning models to identify market entries. It employs an Average True Range based system for calculating dynamic stop loss, take profit, and trailing stop levels. The EA includes a time filter for specific trading sessions

MT5 Trading robot AI / machine learning
Updated 4 months ago None stated GitHub repository of GoldenGauss EA V4

XGBoost Classifier MT5

by alexandruchirita4192
1 stars

This MetaTrader 5 expert advisor utilizes an XGBoost machine learning model exported via the ONNX format to identify trading opportunities. It enters trades based on classification probabilities and a minimum gap between prediction classes. The system features extensive risk controls, including stop loss and take profi

MT5 Trading robot AI / machine learningTrend following
Updated 5 months ago GPL-3.0 GitHub repository of XGBoost Classifier MT5

Pro Trader AI

by salmanrki
1 stars

This MetaTrader 5 expert advisor integrates Large Language Models such as OpenAI and Anthropic Claude with technical analysis to automate trading across forex, gold, crypto, and indices. It utilizes a confluence scoring system based on Smart Money Concepts, Ichimoku Cloud, and standard indicators like RSI and MACD. The

MT5 Trading robot SMC / ICT / price actionAI / machine learningNews
Updated 5 months ago None stated GitHub repository of Pro Trader AI

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