EA-17066 · Mean Reversion

Price Rollback

Price Rollback is a mean reversion EA that identifies overextended price movements and enters trades anticipating a rollback or reversion to the mean. It monitors price deviation from a moving average or range and opens positions when price has moved too far too fast, expecting a corrective pullback.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsMoving Average, ATR, Bollinger Bands
AuthorCopyright © 2018, Vladimir Karputov

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Not convertible yet
GBPUSD0.00%0.00%0.00%0—————Not convertible yet
USDJPY0.00%0.00%0.00%0—————Not convertible yet
XAUUSD0.00%0.00%0.00%0—————Not convertible yet

Why this EA never traded: no entry rule survived the conversion.

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.

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 strategy concept is based on mean reversion principles, assuming that when price deviates significantly from its statistical mean, a rollback is expected. Entry conditions typically involve price moving a certain ATR multiple or percentage away from a moving average followed by a reversal candlestick pattern, or price touching the outer Bollinger Band then closing back inside. Exit conditions include take-profit when price returns near the mean line, fixed pip take-profit, and ATR-based dynamic stop-loss. Position sizing generally uses fixed lots or risk-percentage-based calculation, dynamically adjusted according to stop-loss distance. Money management carries potential risk as mean reversion strategies can suffer consecutive losses during trending markets, which is dangerous without maximum position limits or consecutive loss protection mechanisms.

Strengths

  • Mean reversion logic performs well in ranging markets with relatively high win rate
  • Uses ATR to dynamically measure price deviation, adapting to different instrument volatility characteristics
  • High parameter adjustability allows users to optimize for different market conditions

Weaknesses

  • Mean reversion strategy can suffer continuous counter-trend losses during strong trending markets
  • Lack of trend filter may lead to frequent entries and stop-outs during trending markets
  • Faces risk of significant single-trade loss if rollback does not materialize

Possible improvements

  • Add a trend filter (e.g., ADX or large-period MA direction) to pause trading or reverse strategy during trending markets
  • Add consecutive loss protection mechanism to pause trading or reduce position size after N consecutive losses
  • Add spread filter to avoid entering during high spread periods

Risk assessment

Overall risk: Medium

  • Mean reversion can incur consecutive losses during trending markets without trend filter protection
  • Improper stop-loss placement may lead to excessive single-trade losses

Evaluation scores

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

Parameters

ParameterDefaultDescription
Rollback_Distance50Rollback distance threshold in points
MA_Period200MA period
ATR_Period14ATR period
ATR_Multiplier2.0ATR multiplier for deviation assessment
StopLoss_Pips30Stop loss in points
TakeProfit_Pips40Take profit in points
LotSize0.1Fixed lot size
MagicNumber12345EA magic number for order identification
MaxPositions1Maximum positions

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.