EA-43129 · Mean Reversion

Divergence EA BB

This EA detects divergence between price and an oscillator indicator (likely RSI or MACD) combined with Bollinger Bands for entry filtering. It opens trades when divergence signals a potential reversal, using the Bollinger Bands to confirm overbought or oversold conditions. The variant with pip-based SL/TP provides fixed risk management while the alert version only notifies without placing trades.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsBollinger Bands, RSI, MACD
Author—

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD-0.64%-0.56%1.83%875.00%————Too few trades
GBPUSD-0.11%-0.10%2.24%1656.20%-0.04-0.052−$0.68Reliable
USDJPY-1.54%-1.34%2.92%1442.90%-0.71-0.534−$11.04Reliable
XAUUSD-38.77%-33.32%49.10%1241.70%-0.86-0.794−$323.09Reliable

Profitable on 0 of 3 markets with reliable results.

Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.

Against the other Mean Reversion EAs with a reliable result on the same market: GBPUSD: better than 59% of 32 · USDJPY: better than 34% of 32 · XAUUSD: better than 29% of 31

Month by month

MarketMonths with a gainBest monthWorst month
GBPUSD46%+0.87% 2025-11-1.92% 2026-01
USDJPY38%+0.47% 2025-12-1.33% 2026-02
XAUUSD23%+15.11% 2026-07-25.44% 2026-01

From the backtest equity curve, sampled about every two days; only reliable results.

Blow-up risk: No blow-up pattern found

None of the usual blow-up patterns were found in the code, and the account was not stopped out in our backtests. That is not a guarantee: any EA can lose money.

High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →

Strategy analysis

The core strategy is divergence trading, where a new price high/low not confirmed by the oscillator signals a potential trend reversal. Entry conditions: go long on bullish divergence (price lower low + indicator higher low) and go short on bearish divergence (price higher high + indicator lower high), with Bollinger Bands confirming extreme price levels as an additional filter. Exit conditions use fixed pip-based stop loss and take profit values, with stops placed beyond the divergence extremum and take profit set according to a risk-reward ratio. Position sizing employs fixed lots or balance-proportional lots, with some variants potentially supporting trailing stops. Money management relies on the dual confirmation of Bollinger Band contraction and divergence to filter false signals, but lacks dynamic position adjustment based on volatility or account equity drawdown limits.

Strengths

  • Divergence is a high-probability reversal signal; Bollinger Band filter improves entry quality
  • Fixed SL/TP makes risk controllable and easy to backtest and optimize
  • Multiple file variants indicate ongoing iterative strategy improvement

Weaknesses

  • Divergence detection generates false signals in choppy markets leading to frequent losses
  • Fixed pip stops ignore volatility changes and can be easily swept during high-volatility periods
  • Lacks maximum drawdown protection and position reduction after consecutive losses

Possible improvements

  • Add ATR-based dynamic SL/TP to automatically adjust risk parameters based on market volatility
  • Add multi-timeframe confirmation requiring higher timeframe trend alignment before entry

Risk assessment

Overall risk: Medium

  • Fixed stops not adapted to volatility, high-volatility sessions may trigger stops frequently
  • Divergence detection algorithm may have repainting or lag issues making signals unreliable

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation2.0
Documentation1.0
Overall2.2

Parameters

ParameterDefaultDescription
OscillatorPeriod14Oscillator period (RSI or MACD)
BB_Period20Bollinger Bands period
BB_Deviation2.0Bollinger Bands standard deviation multiplier
StopLoss_Pips30Stop loss in points
TakeProfit_Pips60Take profit in points
LotSize0.1Fixed trading lot size
Divergence_Lookback50Divergence detection lookback period
TimeframeH1Trading timeframe

Similar Mean Reversion EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.