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.

20 EAs match Clear filters

EA31337 Classes

by EA31337
269 stars

This development framework provides a comprehensive MQL library for building Expert Advisors, indicators, and scripts across MetaTrader 4 and 5 platforms. It facilitates cross-platform compatibility by offering a unified API that allows developers to port MQL4 code to MQL5 with minimal modifications. The library includ

MT5 Framework & template
Updated 5 months ago GPL-3.0 GitHub repository of EA31337 Classes
234 stars

This is a modular MetaTrader 5 expert advisor framework designed to accelerate the development of custom trading strategies. It provides a standardized base that includes position management, risk controls, and multi-symbol support. The template features configurable entry and exit logic, integrated stop loss and take

MT5 Framework & template Martingale High risk

ICT Library MQ5

by xxvw
205 stars

This MetaTrader 5 library and expert advisor automates Smart Money Concepts (SMC) and Inner Circle Trader (ICT) methodologies. It identifies market structure shifts, breaks of structure, order blocks, and liquidity zones. The system features a confluence-based entry mechanism that evaluates signals against kill zones,

MT5 Framework & template SMC / ICT / price action

This Expert Advisor framework for MetaTrader 4 provides a modular template for building custom trading strategies. It handles complex trade management tasks, including multi-symbol execution, margin-based position capping, and various lot-sizing algorithms such as risk percentage or fixed volume. Risk controls include

MT4 Framework & template Martingale High risk

MT5 Agent Toolkit

by smizxe
18 stars

MT5 Agent Toolkit is a developer framework and collection of expert advisors designed to automate the creation and testing of MQL5 strategies using AI agents. It provides headless PowerShell scripts to bypass common MetaTrader 5 command-line failures during compilation and backtesting. The included example robots, such

MT5 Framework & template Mean reversionIndicator crossover
Updated 3 weeks ago Custom licence GitHub repository of MT5 Agent Toolkit

MT5 Quant Lib

by xMattC
7 stars

MT5 Quant Lib is an MQL5 development framework and an included trend-following Expert Advisor for MetaTrader 5. It provides a modular infrastructure for trade execution, multi-symbol management, and risk control. The included strategy enters trades based on RSI triggers and CCI trend confirmation, utilizing trendline a

MT5 Framework & template Trend following
Updated 4 months ago None stated GitHub repository of MT5 Quant Lib
5 stars

This MetaTrader 5 expert advisor provides a comprehensive framework for training and deploying deep learning models natively within the MQL5 environment. It bypasses external dependencies by implementing Multilayer Perceptron, Recurrent Neural Network, and Long Short-Term Memory architectures directly in the platform.

MT5 Framework & template AI / machine learning
Updated 8 weeks ago None stated GitHub repository of MQL5 Neural Network Library

Mql5 Pro

by hushamQA
3 stars

Mql5 Pro is a comprehensive development framework and template collection for MetaTrader 5, specifically optimized for AI-assisted coding and Pine Script conversion. It provides standardized structures for creating Expert Advisors, custom indicators, and graphical user interfaces. The system includes built-in risk mana

MT5 Framework & template SMC / ICT / price actionMulti-strategy
Updated 2 months ago None stated GitHub repository of Mql5 Pro
2 stars

This MetaTrader 4 expert advisor and modular framework provides advanced trade management and position scaling capabilities. It features a linear trailing stop that triggers at a predefined profit level and a pyramiding system to add positions to winning trades using a lot multiplier. The code is structured as a librar

MT4 Framework & template Trend followingIndicator crossoverGrid High risk

MQL5 Skill EA Template

by ductri-dev
2 stars

This MetaTrader 5 expert advisor provides a foundational template for developing automated trading robots using standard MQL5 classes. It features a basic crossover strategy where trades are triggered when the price crosses a Moving Average on the close of a candle. The system includes a tick freshness check to prevent

MT5 Framework & template Indicator crossover
Updated 2 months ago None stated GitHub repository of MQL5 Skill EA Template

Zed MQL5

by MichalBPL
2 stars

Zed MQL5 provides comprehensive MetaTrader 5 development tools for the Zed editor. It delivers advanced coding features including syntax highlighting for over 400 built-in functions, context-aware autocompletion, and a native language server. The repository includes a sample expert advisor that implements a classic dua

MT5 Framework & template Indicator crossover
Updated 3 months ago MIT GitHub repository of Zed MQL5

MQT Microstructure Analysis

by gregorian-09
1 stars

MQT Microstructure Analysis is a comprehensive header-only framework for MetaTrader 5 designed to process high-frequency market data. It transforms raw tick, quote, and Depth of Market events into structured measurements for order flow, liquidity depth, and price impact. The system includes specialized modules for calc

MT5 Framework & template

Dino Open Engine

by GiacomoGhi
1 stars

Dino Open Engine is a data-driven algorithmic trading framework for MetaTrader 5 designed to decouple strategy logic from MQL5 code. Instead of recompiling binaries, users define strategies using a fluent C# API and store them in a shared SQLite database. A single compiled expert advisor executes these strategies based

MT5 Framework & template Multi-strategy
Updated 8 weeks ago GPL-3.0 GitHub repository of Dino Open Engine

Ultimate ICT Gold Scalper

by srinivashacks
1 stars

Ultimate ICT Gold Scalper is a modular expert advisor framework for MetaTrader 5, primarily focused on gold trading using institutional concepts. It provides a robust risk management foundation, including daily, weekly, and monthly drawdown limits and maximum consecutive loss protections. The system handles position ma

MT5 Framework & template SMC / ICT / price actionScalping
Updated 2 months ago None stated GitHub repository of Ultimate ICT Gold Scalper

Disook Skill

by disook
1 stars

Disook is a development framework and AI agent skill for MetaTrader 5 designed to assist in creating, debugging, and testing MQL5 expert advisors. It provides an interface for AI coding tools to manage complex logic including trend, grid, and martingale strategies. The repository contains a basic educational template t

MT5 Framework & template
Updated 2 months ago None stated GitHub repository of Disook Skill

MQL5 State Machine

by easaikyo-netizen
1 stars

This MetaTrader 5 expert advisor serves as a development framework and diagnostic tool for organizing complex trading logic. It implements an object-oriented finite state machine to manage transitions between initialization, signal monitoring, order execution, and news restriction states. By replacing nested conditiona

MT5 Framework & template
Updated 2 months ago None stated GitHub repository of MQL5 State Machine

MQL5 Unit Testing Framework

by easaikyo-netizen
1 stars

This lightweight, macro-based unit testing framework is designed for MetaTrader 5 developers to verify Expert Advisor logic and trading calculations. It provides a set of simple assertion macros for checking booleans, integers, and double-precision values directly within the terminal environment. The framework is entir

MT5 Framework & template
Updated 2 months ago None stated GitHub repository of MQL5 Unit Testing Framework

Gartal Inc

by bsAmirHeydar
1 stars

Gartal Inc is a modular trading automation framework and strategy development template for MetaTrader 4. It provides a structured environment for testing various entry and exit logic, including Fair Value Gaps, moving average crossovers, and Donchian channels. The repository focuses on backtesting workflows, featuring

MT4 Framework & template SMC / ICT / price actionIndicator crossoverTrend following
Updated 3 months ago None stated GitHub repository of Gartal Inc

HpFX Framework

by mbelgin
1 stars

High Performance Forex (hpFX) is an indicator-agnostic framework for MetaTrader 4 designed for large-scale backtesting and strategy automation. It allows traders to define complex rules by combining up to ten custom indicators as entry signals, confirmation filters, or exit triggers using a flexible string-based encodi

MT4 Framework & template Trend followingIndicator crossoverMulti-strategy
Updated 3 months ago MIT GitHub repository of HpFX Framework

Trade Solutxn Masterclass EA Framework

by tradesolutxn-creator
1 stars

This MetaTrader 5 expert advisor serves as a modular boilerplate and educational framework for algorithmic trading development. It provides a base structure for students to build custom execution strategies, transitioning from manual price action to automated logic. The current implementation includes basic risk manage

MT5 Framework & template

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