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
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
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
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
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
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
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,
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
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
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
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
MT5Trading robotIndicator crossoverTrend following
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
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
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
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
MT4Trading robotIndicator crossoverTrend following
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
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
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
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
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
MT5Trading robotIndicator crossoverTrend following
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,
This MetaTrader 4 expert advisor is a trade management utility designed to automate break-even adjustments for open positions. It monitors active trades and moves the stop loss to a locked-in profit level once the market reaches a specified distance in pips. The tool supports managing up to three distinct trade targets
This expert advisor for MetaTrader 5 serves as a data bridge between the trading terminal and external web applications via the Django REST Framework. The tool automatically cycles through symbols in the Market Watch at defined intervals to collect and export data into JSON format for API consumption. It is primarily a
The X-15 Framework is a modular development template for creating MetaTrader 4 expert advisors. It serves as a foundation for programmers to build custom trading systems by providing pre-built modules for order management, signal processing, and trade filters. The included template features standard risk management con
This MetaTrader 4 expert advisor implements a grid-based averaging strategy known as Nampin. The robot monitors open buy and sell positions, calculating aggregate lot sizes and floating profits. It uses a fixed lot multiplier of 1.5 to scale positions when the market moves against the initial trade by a set span. The s
This repository contains a collection of MetaTrader 5 expert advisors built using the standard MQL5 class library framework. The featured implementation, Expert MAPSAR Size Optimized, utilizes Moving Average crossover signals for entries and a Parabolic SAR trailing stop for trade management. It incorporates a lot sizi
This MetaTrader 4 expert advisor implements a trading strategy centered on the Money Flow Index (MFI) indicator. It opens buy positions when the MFI crosses below a user-defined threshold and sell positions when it crosses above a threshold. To manage losing trades, the EA employs a martingale-style lot scaling mechani
This expert advisor for MetaTrader 4 executes trades based on the Relative Strength Index indicator. It enters long positions when the RSI period 14 crosses below the 30 level and short positions when it rises above 70. The robot maintains a simple logic of managing a single trade at a time with a fixed volume of 0.10
This MetaTrader 5 expert advisor serves as a structural framework for algorithmic trading development. It utilizes a modular approach by importing strategy logic from external header files to handle trade execution. The core code provides basic input parameters for trade volume, magic numbers, and price deviation. Sinc
Xurya Algorithmic Trading is a collection of MetaTrader 4 expert advisors centered on breakout strategies and volatility analysis. The primary EA uses a breakout mechanism with entries filtered by price action across a defined number of bars. It features risk controls including fixed percentage lot sizing based on acco
This MetaTrader 5 tool extracts stock market data to build datasets for statistical analysis. It allows users to define the number of periods, the specific timeframe, and the price type used for extraction. The expert advisor functions as a data collector rather than a trading robot, as it lacks entry or exit logic in
This repository contains a collection of MetaTrader 5 expert advisors and utility tools, primarily featuring a Depth of Market interface named RafaDomII. The main tool serves as a manual execution panel, allowing traders to monitor volume-at-price data and execute market or limit orders directly from the chart. It incl
This MetaTrader 4 expert advisor executes a classic moving average crossover strategy. It monitors two Simple Moving Averages with customizable periods to identify trend shifts. When the fast average crosses above the slow average, the robot initiates a buy order; a crossover below triggers a sell order. The system res
MT4Trading robotIndicator crossoverTrend following
This MetaTrader 5 expert advisor monitors price action using a combination of Exponential Moving Averages and the Stochastic oscillator. It identifies potential market entries based on crossover logic and momentum. The system is designed to send real-time trade alerts to a configured Telegram channel, providing details
Account Recorder is a utility for MetaTrader 4 and 5 that exports trading transactions and account metrics to external SQL databases via the ODBC interface. It supports MySQL, PostgreSQL, and SQLite, enabling users to maintain an auditable, platform-agnostic history of their trading activity. The tool records account s
Inside Bar Momentum is a MetaTrader 4 expert advisor that identifies and trades candlestick breakout patterns. The robot scans for inside bar formations, where a candle is completely contained within the previous candle's price range. It uses a stochastic oscillator to filter momentum, requiring specific overbought or
TeGi is a manual trading panel and management utility for MetaTrader 4 that bridges local trade execution with Telegram groups or channels. It allows users to open buy or sell orders with predefined stop loss and take profit levels while automatically broadcasting trade signals and screenshots to a connected bot. The e
Cuckoos MT4 is a notification expert advisor for MetaTrader 4 that bridges account activity to Discord via webhooks. This utility monitors the trading account and sends automated updates whenever the total number of open orders changes or during initialization. The messages delivered to Discord contain detailed account
Position By Equity Risk is a MetaTrader 5 expert advisor designed as a programming snippet for automated trade management. The EA enters a single buy order on the first received tick, serving as a functional template for risk-based calculations. It manages positions using configurable stop loss and take profit multipli
This repository contains a collection of MetaTrader 4 programs, including expert advisors, indicators, and scripts. The provided files appear to be utility tools rather than automated trading robots, with names suggesting functions for account monitoring, folder management, and time-based tasks. The project provides mi
Robo Trade MQL5 is an automated trading robot for MetaTrader 5 that implements technical analysis setups based on moving average indicators. It specifically targets the 9.1 and 9.2 setups, utilizing 9-period and 21-period moving averages to identify entry points. The EA features fixed lot sizing and a mandatory daily e
MT5Trading robotIndicator crossoverTrend following
This MetaTrader 5 expert advisor implements a trading strategy based on the Volume Price Change oscillator. Developed as a module for the EA31337 framework, it supports simultaneous operation across multiple timeframes using a bitmask input. The EA focuses on the relationship between price movement and volume to identi
This MetaTrader 5 expert advisor executes trades based on the Commodity Channel Index (CCI) Arrows indicator. Developed as part of the EA31337 framework, the robot identifies market entries through CCI-derived signals. It supports multi-timeframe operations, allowing users to activate specific intervals from M1 to H4 a
This MetaTrader 4 expert advisor functions as a trade receiver or bridge for external web services. It uses the WebRequest function to poll a Heroku-hosted URL for trading data and instructions. The software parses incoming text strings to identify specific trade parameters and synchronize the local terminal with the r
This MetaTrader 5 expert advisor, developed as a university project, executes trades based on technical indicators including Average Directional Index (ADX) and Moving Averages. The system features risk management controls such as fixed stop loss and take profit levels, which are automatically scaled for five-digit pri
TradeRobot is a manual trading panel for MetaTrader 4 that facilitates trade execution and order management. It allows users to open buy and sell positions directly from the chart using graphical buttons. The utility incorporates essential risk management features, including fixed lot sizing, stop loss, take profit, an
This repository is a collection of MQL5 utility scripts and snippets for the MetaTrader 5 platform. It includes tools for dumping account details, active positions, and trade history directly into the terminal log for debugging or monitoring. Other components demonstrate SQLite database integration, price alerts, and g
Ndow Forex is a MetaTrader 5 expert advisor that uses price action from a specific lookback period to determine trade boundaries. It scans a defined number of historical candles to identify the highest and lowest price points. Based on this range, which the developer calls the chasm, the EA calculates stop loss and tak
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.