Sniper Divergence EA is a MetaTrader 5 trading robot that combines multi-timeframe RSI divergence detection with Support/Resistance and Supply/Demand zone validation.
Sniper Divergence EA automatically scans higher timeframes from Daily down to M5 for regular and hidden RSI divergences, filtering setups near key price structure levels. Once validated, the expert advisor triggers trades on a lower entry timeframe such as M1. Risk management includes configurable fixed or ATR-based stop losses, balance percentage lot sizing, dynamic EMA-based take-profit management, and an automated break-even feature. Users can also select between fully automatic execution and manual signal mode.
Multi-timeframe RSI divergence scanning
Support/Resistance and Supply/Demand zone validation
ATR-based and fixed pips stop loss modes
Automated break-even tracking
Visual chart annotations for zones and divergence lines
Read from DivergenceTrader_EA_v3.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
TradingMode
ENUM_TRADING_MODE
MODE_AUTOMATIC
Trading Mode
ShowDivergenceLines
bool
true
Draw Divergence Lines on Chart
ShowZones
bool
true
Draw S/R and S/D Zones on Chart
Scan_D1
bool
true
Scan Daily for Divergence
Scan_H4
bool
true
Scan H4 for Divergence
Scan_H1
bool
true
Scan H1 for Divergence
Scan_M30
bool
true
Scan M30 for Divergence
Scan_M15
bool
true
Scan M15 for Divergence
Scan_M5
bool
true
Scan M5 for Divergence
EntryTimeframe
ENUM_TIMEFRAMES
PERIOD_M1
Entry Confirmation Timeframe (M1 for Sniper)
EMA_Entry_Period
int
9
EMA for Entry Confirmation
EMA_TP_Period
int
50
EMA for Take Profit
Show all 40 inputs
Name
Type
Default
Description
RSI_Period
int
14
RSI Period
RSI_AppliedPrice
ENUM_APPLIED_PRICE
PRICE_CLOSE
RSI Applied Price
RSI_Overbought
double
70.0
RSI Overbought Level
RSI_Oversold
double
30.0
RSI Oversold Level
RequireRSIExtreme
bool
true
Require RSI in OB/OS Zone for Divergence
SwingStrength
int
3
Swing Detection Strength (left/right bars)
MaxBarsBack
int
100
Max Bars to Look Back for Divergence
MinBarsBetween
int
3
Min Bars Between Swing Points
MaxBarsBetween
int
50
Max Bars Between Swing Points
DivergenceFilter
ENUM_DIVERGENCE_TYPE
DIV_ALL
Divergence Type Filter
MinRSIDivergence
double
2.0
Minimum RSI Difference for Valid Divergence
MinPriceDivergence
double
0.0
Minimum Price Difference (0 = auto by ATR)
ZoneFilter
ENUM_ZONE_TYPE
ZONE_BOTH
Zone Type Filter
SR_LookbackBars
int
200
S/R Lookback Period (bars)
SR_TouchCount
int
2
Minimum Touches for Valid S/R Level
SR_ZoneWidth_ATR
double
0.5
S/R Zone Width (ATR multiplier)
MaxDistanceFromZone
double
1.0
Max Distance from Zone (ATR multiplier)
SD_ConsolidationBars
int
5
Min Consolidation Bars for S/D Zone
SD_ImpulseMoveATR
double
2.0
Min Impulsive Move (ATR multiplier)
SD_LookbackBars
int
100
S/D Lookback Period (bars)
SD_ZoneWidthATR
double
0.3
S/D Zone Width (ATR multiplier)
RequireTrendAlignment
bool
false
Require Trend Alignment (Divergence is a reversal signal)
TrendEMA_Period
int
50
Trend EMA Period
TrendEMA_FastPeriod
int
20
Fast EMA Period
EnableBreakEven
bool
true
Enable Break-Even at +10 Pips
BreakEvenPips
double
10.0
Pips to trigger Break-Even
StopLossType
ENUM_SL_TYPE
SL_ATR_BASED
Stop Loss Type
FixedStopLossPips
double
50.0
Fixed Stop Loss (Pips)
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone MuhammadHassanC/MT5_DiverganceEA 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 MetaTrader 5 expert advisor focuses on XAUUSD using a multi-timeframe scalping approach based on Smart Money Concepts. It identifies institutional market structures by analyzing H4 trends, H1 supply and demand zones, and M5 entries. The logic incorporates order block detection, Fair Value Gaps (FVG), and liquidity
This MetaTrader 5 expert advisor automates trading strategies based on Inner Circle Trader (ICT) and Smart Money Concepts (SMC). It utilizes a confluence engine to evaluate market structure, PDA zones, fair value gaps, order blocks, and SMT divergence against correlated symbols like the DXY. Designed specifically for p
This MetaTrader 5 expert advisor utilizes a combination of Bollinger Bands, Relative Strength Index, and Average Directional Index to identify entries. It supports multi-timeframe analysis for trend confirmation and provides optional filters for Average True Range and price action patterns such as hammers. Risk managem
This MetaTrader 5 expert advisor is designed specifically for trading gold (XAUUSD). The system utilizes a modular architecture to detect market regimes, identify ranges, and execute trades based on liquidity sweeps and breakouts. It incorporates several filters, including spread and volume checks, alongside a drawdown
This automated trading robot for MetaTrader 5 implements Smart Money Concepts (SMC) and ICT principles using a hybrid architecture. Trading logic and signal detection are processed within a native C++ DLL, while the MQL5 bridge handles trade execution and data feeding. The system identifies market structure shifts, inc
MT5Trading robotSMC / ICT / price actionBreakoutTrend following
Fibonacci ICT EA for MetaTrader 5 combines institutional price action concepts with Fibonacci retracement levels. It identifies higher timeframe trends and enters on pullbacks to specific golden zones using confirmations like Break of Structure and Fair Value Gaps. The system includes robust risk management such as per