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
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.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
Parameters
| Parameter | Default | Description |
|---|---|---|
LotSize | 0.1 | Lot size per leg |
MAPeriod | 20 | Moving average period |
DeviationMultiplier | 2.0 | Deviation multiplier threshold from moving average |
StopLoss | 500 | Auto stop loss in points; 0=disabled |
TakeProfit | 500 | Auto take profit in points; 0=disabled |
MagicNumber | 12345 | Unique EA order identifier preventing conflicts |
Similar Mean Reversion EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.