MT5 Algorithmic Trading Research includes a multi-pair mean reversion grid system, a gold breakout robot using previous day levels, and trend-following strategies based on moving averages. The EAs incorporate extensive risk controls including daily drawdown limits, equity-based circuit breakers, and volatility-adjusted trade spacing. The systems support multiple lot-sizing modes such as fixed volume, dynamic balance-based sizing, and deposit load percentages. The repository serves as a documented framework for exploring automated execution and exposure management.
Read from MultiPairMeanReversionEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpAllowNewGrid
bool
true
Allow Opening a new Grid?
InpLotMode
ENUM_LOT_MODE
LOT_MODE_DEPOSIT_LOAD_FIXED
Lot-sizing Method
InpFixedLot
double
0.01
Fixed Lot
InpDynamicLot
double
10000.0
Dynamic Lot (Balance per 0.01 lot)
InpDepositLoad
double
0.15
Deposit Load % (0.15 = 15%)
InpFixedDepositBase
double
0.0
Fixed Deposit Base (0=use initial balance)
InpMaxLot
double
100.0
Maximum Lot
InpMaxSpread
double
10.0
Maximum Spread, in pips
InpMaxSlippage
double
10.0
Maximum Slippage for non-ECN, in pips
InpMaxSymbols
int
2
Maximum Symbols at a time
InpMaxOpenLots
double
0.0
Max Open Lots (Filter) [0=disabled]
InpAllowHolidays
bool
false
Allow Trading on Holidays? (basic calendar keyword check)
Show all 40 inputs
Name
Type
Default
Description
InpTradeDirection
ENUM_TRADE_DIRECTION
TRADE_BOTH
Allow to Buy/Sell
InpMinFreeMargin
double
0.0
Minimum Free Margin % [0=disabled]
InpMaxDrawdownPercent
double
100.0
Max Floating Drawdown % [100=disabled]
InpMaxDrawdownMoney
double
0.0
Max Floating Drawdown in Money [0=disabled]
InpDDAction
ENUM_DD_ACTION
DD_ACTION_CLOSE_STOP
Max Drawdown Action
InpDDCalculation
ENUM_DD_CALCULATION
DD_CALC_THIS_EA
Max Drawdown Calculation
InpDailyDDPercent
double
0.0
Max Daily Drawdown % [0=disabled]
InpDailyDDMoney
double
0.0
Max Daily Drawdown $ [0=disabled]
InpDailyDDResetHour
int
0
Daily DD reset hour (broker time, 0..23)
InpDailyDDAction
ENUM_DAILY_DD_ACTION
DAILY_DD_CLOSE_AND_BLOCK
Daily DD action
InpDailyDDCalcAccount
bool
true
If true use account equity; else EA-only equity
InpCB_FreezeDDPercent
double
0.0
CircuitBreaker A: Freeze grids at DD% (0=off)
InpCB_ReduceDDPercent
double
0.0
CircuitBreaker B: Reduce exposure at DD% (0=off)
InpCB_KillDDPercent
double
0.0
CircuitBreaker C: Kill-switch at DD% (0=off)
InpSymbols
string
Symbols (comma separated, empty=default)
InpHourStart
int
0
Hour to Start Trading (broker's time)
InpHourStop
int
0
Hour to Stop Trading (0=24h)
InpUseClosedBarSignal
bool
true
Use last CLOSED bar price for signal checks
InpRSIEntryMode
ENUM_RSI_ENTRY_MODE
RSI_MODE_CAP
RSI entry logic mode
InpBBPeriod
int
20
Bollinger Bands Period
InpBBDeviation
double
2.0
Bollinger Bands Deviation
InpRSIPeriod
int
14
RSI Period
InpMinRSI
int
0
Min RSI (used by CLASSIC mode; 0=unused)
InpMaxRSI
int
70
Max RSI (cap or classic sell threshold)
InpWorkingTF
ENUM_TIMEFRAMES
PERIOD_M15
Working Timeframe
InpTradeDistance
int
35
Trade Distance (base pips)
InpSmartDistance
bool
true
Smart Distance (volatility adjusted)
InpATRPeriod
int
14
ATR Period (for Smart Distance)
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone DamianAcri/mt5-algorithmic-trading-research from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This repository contains a large collection of over 100 expert advisors for the MetaTrader 5 platform, many of which appear to be generated using the Mission Automate tool. The library covers a wide variety of trading methodologies including range breakouts, Ichimoku cloud strategies, Heiken Ashi engulfing patterns, an
This repository is a large collection of over 1,000 expert advisors designed for the MetaTrader 5 platform. It serves as an open-source library featuring various algorithmic trading strategies, including moving average crossovers, RSI levels, Parabolic SAR, and range breakouts. The collection provides robots for trend
This collection provides MetaTrader 5 Expert Advisors sourced from MQL5 programming documentation. The primary tool, Unity Martingale, implements a multi-currency reversal strategy using breakout or pullback signals. It employs a martingale lot-scaling system that increases positions after losses based on a user-define
This repository contains an extensive library of MetaTrader 5 expert advisors covering various algorithmic trading methodologies. The collection includes strategies based on Bollinger Bands, Relative Strength Index, moving average ribbons, and swing failure patterns. A core focus is the Ighodalo series for gold and CFD
This repository is a collection of MetaTrader 5 expert advisors developed as early coding projects between 2021 and 2024. It includes multiple robots implementing varied strategies such as range breakouts, Donchian channels, Fibonacci retracements, and Bollinger Bands. The expert advisors are largely technical indicato
This repository provides a diverse collection of MetaTrader 4 and MetaTrader 5 expert advisors covering multiple trading methodologies. It includes robots for smart money concepts with fair value gap detection, Joe Ross hook patterns, and volatility-based scalping. The library features specific tools for XAUUSD and mul