Divergence EA is an automated trading robot for MetaTrader 5 that combines multi-timeframe trend filtering with RSI divergence signals and EMA pullbacks.
Divergence EA aligns higher-timeframe trends on the Daily and 4-Hour charts before evaluating M15 entry signals. Entries require price pullbacks relative to fast and slow Exponential Moving Averages alongside RSI divergence detection, with an optional MACD momentum filter. Risk management features include fixed lot or percent-based position sizing, predefined stop loss and take profit targets in points, a maximum spread filter, and optional breakeven and trailing stop functionality.
Multi-timeframe trend alignment on Daily and H4 charts
RSI-based regular and hidden divergence detection
EMA trend and pullback confirmation filter
Fixed lot or percentage risk-based position sizing
Read from DivergenceEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpDailyTF
ENUM_TIMEFRAMES
PERIOD_D1
Daily Timeframe
InpH4TF
ENUM_TIMEFRAMES
PERIOD_H4
4-Hour Timeframe
InpEntryTF
ENUM_TIMEFRAMES
PERIOD_M15
Entry Timeframe
InpFastEMA
int
9
Fast EMA Period
InpSlowEMA
int
50
Slow EMA Period
InpRSI_Period
int
14
RSI Period
InpDivLookback
int
30
Divergence Lookback Bars
InpPivotBars
int
5
Pivot Detection Bars
InpUseMACD
bool
false
Enable MACD Filter
InpMACDFast
int
12
MACD Fast Period
InpMACDSlow
int
26
MACD Slow Period
InpMACDSignal
int
9
MACD Signal Period
Show all 26 inputs
Name
Type
Default
Description
InpStopLoss
double
50.0
Stop Loss (points)
InpTakeProfit
double
100.0
Take Profit (points)
InpLotMode
ENUM_LOT_MODE
LOT_FIXED
Lot Mode
InpLotSize
double
0.01
Fixed Lot Size
InpRiskPercent
double
1.0
Risk % per Trade
InpUseTrailing
bool
false
Enable Trailing Stop
InpTrailingStart
double
30.0
Trailing Start (points)
InpTrailingStep
double
10.0
Trailing Step (points)
InpUseBreakeven
bool
false
Enable Breakeven
InpBE_Trigger
double
30.0
BE Trigger (points)
InpBE_Offset
double
5.0
BE Offset (points)
InpMagicNumber
int
123456
Magic Number
InpMaxSpread
int
30
Max Spread (points)
InpComment
string
DivEA
Order Comment
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone MuhammadHassanC/divergance_ea_mt5 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, and any .mqh files into the Include folder the code expects.
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.
EA31337 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat
EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di
EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT
Ladino Bot is an open-source expert advisor for MetaTrader 5 that uses HiLo Activator indicators and moving average crossovers to identify trade entries. It features a triple-timeframe architecture, allowing users to align entries with higher-period trends. Risk controls include daily gain and loss caps, brokerage fee
Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform. It employs a fusion engine that combines up to 14 different technical analysis methods, including candlestick patterns, chart patterns, price action, and institutional levels. The system requires a user-defined n