EA-18255 · Mean Reversion

RSI and Bollinger Bands

This EA combines RSI and Bollinger Bands indicators to identify overbought and oversold market conditions for mean reversion trading. It enters buy trades when RSI is oversold and price touches the lower Bollinger Band, and sell trades when RSI is overbought and price touches the upper Bollinger Band. The strategy targets price reversals back to the Bollinger Band middle line or uses fixed take-profit and stop-loss levels for exits.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskHigh
Rating★★★☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsRSI, Bollinger Bands
AuthorFORTRADER.RU, Юрий, ftyuriy@gmail.com

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD-3.24%-2.82%8.82%10.00%————Too few trades
GBPUSD+2.78%+2.41%6.56%10.00%————Too few trades
USDJPY-2.41%-2.10%7.53%10.00%————Too few trades
XAUUSD-91.61%-87.09%94.00%20.00%-0.45-0.972−$4,580.37Account stopped out

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: XAUUSD: better than 13% of 31

Month by month

MarketMonths with a gainBest monthWorst month
XAUUSD0%0.00% 2026-02-85.62% 2026-01

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

Blow-up risk: High

  • Hit a stop-out in our backtest (equity below 10%) on XAUUSD

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

This strategy is a classic mean reversion system that uses Bollinger Bands to measure statistical price deviation while confirming momentum extremes with RSI. Entry conditions require price to touch or pierce the lower Bollinger Band with RSI in oversold territory (typically below 30) for buy signals, and price to touch or exceed the upper Bollinger Band with RSI in overbought territory (typically above 70) for sell signals, with the dual-condition filter improving signal quality. Exit conditions include fixed take-profit and stop-loss levels as well as a close-when-price-returns-to-middle-band logic. Position sizing typically uses either fixed lot sizes or balance-proportional calculations. Money management relies on the statistical assumption that price will revert to the mean within the Bollinger Band envelope, but consecutive losses can accumulate during strong trending markets where the mean reversion assumption fails. The overall strategy logic is clear and well-structured, but risk exposure control during extreme market conditions is insufficient without a secondary trend-state filter.

Strengths

  • Dual-indicator confirmation filter reduces false signals and improves entry quality
  • Bollinger Bands provide natural statistical boundaries serving as support/resistance references
  • Strategy logic is simple and clear, easy to understand and optimize
  • Mean reversion logic performs robustly in ranging markets
  • Highly tunable parameters adapt to different instruments and timeframes

Weaknesses

  • Mean reversion assumption fails in strong trending markets, potentially leading to consecutive losses
  • Lacks a trend-state filter mechanism, cannot distinguish between ranging and trending markets
  • Fixed lot position sizing ignores volatility changes, leading to uneven risk exposure
  • Bollinger Bands may be too narrow during low volatility, generating frequent false signals
  • Missing new bar check may cause repeated entries on the same candle

Possible improvements

  • Add a trend filter (e.g., ADX or higher-timeframe MA) to pause trading or reverse logic during trending markets
  • Introduce ATR-based dynamic stop-loss, take-profit, and position sizing to match risk exposure with volatility

Risk assessment

Overall risk: Medium

  • Lacks trend-state identification, may consecutively open counter-trend positions during one-sided markets causing severe losses
  • Missing new bar check mechanism, may repeatedly open positions on the same candle amplifying risk

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation2.0
Documentation2.0
Overall2.3

Parameters

ParameterDefaultDescription
RSI_Period14RSI indicator period
RSI_Overbought70RSI overbought threshold
RSI_Oversold30RSI oversold threshold
BB_Period20Bollinger Bands period
BB_Deviation2.0Bollinger Bands standard deviation multiplier
LotSize0.1Fixed trading lot size
StopLoss0stop losspoints (0=disable)
TakeProfit0take profitpoints (0=disable)
MagicNumber123456EA magic number identifier

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.