EA-18841 · Mean Reversion

Nevalyashka

Nevalyashka is a Mean Reversion EA that trades price deviations from a moving average centerline. It opens positions when price moves excessively away from the mean and closes when price reverts back. The strategy relies on statistical return-to-mean behavior with fixed lot sizing and stop loss protection.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsMoving Average, ATR, Standard Deviation
AuthorCopyright © 2017, 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 core concept of the Nevalyashka strategy is mean reversion, expecting price to return to its moving average after significant deviations. Entry conditions trigger when price deviates beyond a configured threshold multiplier from the moving average line — longs when price is below the mean, shorts when above. Exit conditions include profit-taking when price reverts to the moving average vicinity, and stop-loss execution when the deviation continues against the position. Position sizing uses a fixed lot approach without dynamic adjustment based on account equity or volatility. Money management incorporates stop loss and take profit levels, but lacks compounding position management or scaling-in mechanisms. The overall strategy logic is straightforward, but it faces the risk of consecutive losses during strong trending markets where mean reversion fails.

Strengths

  • Simple and clear strategy logic, easy to understand and debug
  • Stop loss protection prevents excessive single-trade losses
  • Mean reversion performs well in ranging markets
  • Few parameters make optimization straightforward
  • High consistency between backtesting and live trading behavior

Weaknesses

  • Prone to consecutive stop losses during trending markets
  • Fixed lot size doesn't adapt to different account sizes
  • Lacks a trend filter to distinguish ranging from trending markets
  • No position scaling mechanism, limited flexibility
  • Static deviation threshold doesn't account for volatility changes

Possible improvements

  • Add a trend filter (e.g., ADX) to pause trading during strong trends
  • Replace fixed lot size with dynamic position sizing based on ATR or account equity
  • Use ATR to dynamically adjust deviation thresholds for different volatility regimes

Risk assessment

Overall risk: Medium

  • Consecutive stop losses during trending markets can cause significant drawdown
  • Fixed stop loss doesn't adapt to market volatility — too wide in low volatility, too tight in high
  • No maximum drawdown limit or account equity protection mechanism

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness3.0
Innovation2.0
Documentation2.0
Overall2.5

Parameters

ParameterDefaultDescription
LotSize0.1Lot size per leg
MAPeriod20Moving average period
DeviationMultiplier2.0Deviation multiplier threshold from moving average
StopLoss500Auto stop loss in points; 0=disabled
TakeProfit500Auto take profit in points; 0=disabled
MagicNumber12345Unique EA order identifier preventing conflicts

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.