Synced with GitHub · updated hourly
1,978 free, open-source expert advisors for MetaTrader 4 and 5, each linked to its source code on GitHub.
| Expert advisor | Platform | Type | Strategy | Stars | Updated | Licence | GitHub |
|---|---|---|---|---|---|---|---|
EA31337 ClassesEA31337 |
MT5 | Framework & template | — | 269 | 5 months ago | GPL-3.0 | GitHub repository of EA31337 Classes |
ProfitRobots MQL5 Templatesibvic · High risk |
MT5 | Framework & template | Martingale | 234 | 2 months ago | MIT | GitHub repository of ProfitRobots MQL5 Template |
ICT Library MQ5xxvw |
MT5 | Framework & template | SMC / ICT / price action | 205 | yesterday | MIT | GitHub repository of ICT Library MQ5 |
Roffild LibraryRoffild |
MT5 | Framework & template | AI / machine learning | 120 | 6 years ago | Apache-2.0 | GitHub repository of Roffild Library |
Advanced MQ4 Expert Advisor Templatessibvic · High risk |
MT4 | Framework & template | Martingale | 86 | 2 months ago | MIT | GitHub repository of Advanced MQ4 Expert Advisor Templates |
Orchard Forex Framework 3OrchardForexTutorials · High risk |
MT5 | Framework & template | Grid | 64 | 2 years ago | GPL-3.0 | GitHub repository of Orchard Forex Framework 3 |
Modular Trade Systemmichaelwade · High risk |
MT4 | Framework & template | Martingale, Indicator crossover | 58 | 6 years ago | Apache-2.0 | GitHub repository of Modular Trade System |
FSB Pro Expert AdvisorPopovMP · High risk |
MT4 · MT5 | Framework & template | Multi-strategy, Martingale | 36 | 4 years ago | None stated | GitHub repository of FSB Pro Expert Advisor |
MT5 Expert Advisor TemplateEarnForex |
MT5 | Framework & template | — | 31 | 1 year ago | Apache-2.0 | GitHub repository of MT5 Expert Advisor Template |
| MT5 | Framework & template | Indicator crossover, SMC / ICT / price action | 27 | 8 months ago | None stated | GitHub repository of MQL5 Auto Trading Bot Template | |
MT5 Agent Toolkitsmizxe |
MT5 | Framework & template | Mean reversion, Indicator crossover | 18 | 3 weeks ago | Custom licence | GitHub repository of MT5 Agent Toolkit |
X-Tick Chart SDK9nix6 |
MT5 | Framework & template | Indicator crossover | 18 | 5 years ago | GPL-3.0 | GitHub repository of X-Tick Chart SDK |
| MT5 | Framework & template | Indicator crossover, Trend following | 16 | 5 years ago | GPL-3.0 | GitHub repository of Range Bars EA Framework | |
Orchard Simple EA TemplateOrchardForexTutorials |
MT5 | Framework & template | Indicator crossover, Trend following | 13 | 3 years ago | GPL-3.0 | GitHub repository of Orchard Simple EA Template |
MQL4 TemplateKeisukeIwabuchi |
MT4 | Framework & template | — | 13 | 6 years ago | MIT | GitHub repository of MQL4 Template |
New Robotandreolvgomes |
MT5 | Framework & template | Breakout, Trend following | 10 | 5 years ago | None stated | GitHub repository of New Robot |
Neural Network Tester ImprovedPhiAlphaInvestments |
MT5 | Framework & template | AI / machine learning | 9 | 3 years ago | None stated | GitHub repository of Neural Network Tester Improved |
Aninditha EAheviooot |
MT5 | Framework & template | — | 8 | 6 years ago | None stated | GitHub repository of Aninditha EA |
MQL4 Trade ManagerKeisukeIwabuchi |
MT4 | Framework & template | — | 8 | 8 years ago | MIT | GitHub repository of MQL4 Trade Manager |
MT5 Quant LibxMattC |
MT5 | Framework & template | Trend following | 7 | 4 months ago | None stated | GitHub repository of MT5 Quant Lib |
Falcon Trading Bot TemplateJoeG777 · High risk |
MT4 | Framework & template | Trend following, Mean reversion, Martingale | 7 | 5 years ago | None stated | GitHub repository of Falcon Trading Bot Template |
MQL4 Logger ClassRGunning |
MT4 | Framework & template | — | 6 | 6 years ago | GPL-3.0 | GitHub repository of MQL4 Logger Class |
MQL4 PriceKeisukeIwabuchi |
MT4 | Framework & template | — | 6 | 8 years ago | MIT | GitHub repository of MQL4 Price |
MQL5 Neural Network Library4SIGHTalgo |
MT5 | Framework & template | AI / machine learning | 5 | 8 weeks ago | None stated | GitHub repository of MQL5 Neural Network Library |
MQL5 Architect Trading FrameworkJMS-tesoy |
MT5 | Framework & template | AI / machine learning | 5 | 8 months ago | MIT | GitHub repository of MQL5 Architect Trading Framework |
Metatrader License FrameworkMQL-Development |
MT4 · MT5 | Framework & template | — | 5 | 1 year ago | None stated | GitHub repository of Metatrader License Framework |
MQL4 Project Templateskolier |
MT4 | Framework & template | — | 5 | 9 years ago | None stated | GitHub repository of MQL4 Project Templates |
MQL5 Walk Forward Optimization LibraryRustyKanuck |
MT5 | Framework & template | — | 4 | 1 year ago | None stated | GitHub repository of MQL5 Walk Forward Optimization Library |
Orchard Simple EA TemplateOrchardForexTutorials |
MT4 | Framework & template | Indicator crossover | 4 | 3 years ago | GPL-3.0 | GitHub repository of Orchard Simple EA Template |
MQL4 Order ModuleKeisukeIwabuchi |
MT4 | Framework & template | — | 4 | 8 years ago | MIT | GitHub repository of MQL4 Order Module |
Mql5 ProhushamQA |
MT5 | Framework & template | SMC / ICT / price action, Multi-strategy | 3 | 2 months ago | None stated | GitHub repository of Mql5 Pro |
Algogene MetaTrader DLLalgogene-fintech |
MT4 · MT5 | Framework & template | — | 3 | 4 years ago | None stated | GitHub repository of Algogene MetaTrader DLL |
Hedge TerminalSokolovVasiliy |
MT5 | Framework & template | Indicator crossover, Trend following, Hedging | 3 | 6 years ago | None stated | GitHub repository of Hedge Terminal |
MQL4 EA Bootstrapdnshouse |
MT4 | Framework & template | — | 3 | 6 years ago | None stated | GitHub repository of MQL4 EA Bootstrap |
| MT4 | Framework & template | — | 3 | 6 years ago | Apache-2.0 | GitHub repository of MetaTrader Proxy Terminal | |
MQ4 Expert Advisor FrameworkHawkynt · High risk |
MT4 | Framework & template | Trend following, Indicator crossover, Grid | 2 | 11 days ago | LGPL-3.0 | GitHub repository of MQ4 Expert Advisor Framework |
MQL5 Skill EA Templateductri-dev |
MT5 | Framework & template | Indicator crossover | 2 | 2 months ago | None stated | GitHub repository of MQL5 Skill EA Template |
Zed MQL5MichalBPL |
MT5 | Framework & template | Indicator crossover | 2 | 3 months ago | MIT | GitHub repository of Zed MQL5 |
CBMQL MQL5 FrameworkHarryWarre · High risk |
MT5 | Framework & template | Trend following, Grid, Martingale | 2 | 6 months ago | MIT | GitHub repository of CBMQL MQL5 Framework |
WealthPole Architecture DemoFintor-AI |
MT5 | Framework & template | Trend following, Grid, Hedging | 2 | 9 months ago | MIT | GitHub repository of WealthPole Architecture Demo |
EasyAndFastGUI Libraryloopingfx |
MT5 | Framework & template | — | 2 | 1 year ago | None stated | GitHub repository of EasyAndFastGUI Library |
Framework4oCapital-Advisory-Technology |
MT4 | Framework & template | Trend following, Indicator crossover | 2 | 2 years ago | GPL-3.0 | GitHub repository of Framework4o |
EA MT5 TemplateHermesNWO |
MT5 | Framework & template | — | 2 | 2 years ago | None stated | GitHub repository of EA MT5 Template |
MQL4 To CSharp Bridge DNNEDennisGundersen |
MT4 | Framework & template | — | 2 | 3 years ago | MIT | GitHub repository of MQL4 To CSharp Bridge DNNE |
Swing NNFX FrameworkBenoitDurandIndep |
MT4 | Framework & template | Trend following, Multi-strategy | 2 | 3 years ago | GPL-3.0 | GitHub repository of Swing NNFX Framework |
Kompleks MT5 Trading Librarykompleksanda · High risk |
MT5 | Framework & template | SMC / ICT / price action, Trend following, Martingale | 2 | 4 years ago | MIT | GitHub repository of Kompleks MT5 Trading Library |
Dv Toolsdorev |
MT4 | Framework & template | — | 2 | 5 years ago | MIT | GitHub repository of Dv Tools |
MQL5 Basic FrameworkRezaAta |
MT5 | Framework & template | Mean reversion | 2 | 6 years ago | None stated | GitHub repository of MQL5 Basic Framework |
Free, plain-English guides: find an EA, install it, set it up, test it and run it safely.
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.
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).
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.
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.
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.
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.
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.
Compare regulated brokers by platform, spreads, minimum deposit and leverage.
Compare brokers