EA-19500 · Mean Reversion

20 Pips Opposite Last N Hour Trend

This EA trades against the prevailing trend of the last N hours, aiming for a 20-pip target. It identifies the directional bias over a configurable lookback period and enters a position in the opposite direction, expecting a mean-reversion move. The strategy uses fixed pip targets and stop losses for disciplined trade management.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesM15, M30, H1, H4
IndicatorsPrice Action, Moving Average
Author—

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 strategy of this EA is mean reversion: after identifying the trend direction over the last N hours, it opens a position in the opposite direction, betting on a price pullback. Entry conditions involve determining the directional bias of the last N hours (likely via price change or moving average comparison), then entering a trade opposite to that bias. Exit conditions consist of a fixed 20-pip take profit and a corresponding stop loss level. Position sizing uses fixed lots without any dynamic adjustment based on account equity or volatility. Money management lacks risk-percentage controls, relying solely on fixed lot sizes and fixed stop losses. The overall strategy logic is simple and straightforward, suitable for ranging markets, but may suffer consecutive losses in strong trending conditions.

Strengths

  • Simple and clear strategy logic, easy to understand and verify
  • Fixed take profit and stop loss provide disciplined risk control
  • Mean reversion performs well in ranging markets, capturing pullbacks after short-term overextension
  • Few parameters reduce the risk of overfitting

Weaknesses

  • Continuously trades against strong trends, which can lead to consecutive losses
  • Fixed lot sizing without dynamic adjustment based on account equity or volatility lacks flexibility
  • No trend strength filter, may force entries in market conditions unsuitable for mean reversion
  • Fixed 20-pip TP/SL ignores market volatility changes; stops may be too tight during high volatility
  • Lacks new bar check mechanism, potentially opening multiple positions on the same bar

Possible improvements

  • Add a trend strength filter (e.g., ADX or ATR) to only enter when the trend is weak or momentum is fading
  • Use ATR-based dynamic take profit and stop loss to adapt to different volatility environments
  • Add a money management module that dynamically calculates position size based on account balance and risk percentage

Risk assessment

Overall risk: Medium

  • Counter-trend trading can result in consecutive losses during strong trends without a trend strength filter
  • Fixed stop loss ignores market volatility, potentially causing frequent stop-outs during high volatility periods
  • No new bar check may cause repeated signal triggers

Evaluation scores

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

Parameters

ParameterDefaultDescription
N_Hours4Lookback hours for trend direction
TakeProfit20Fixed take profit points (20 pts)
StopLoss20Fixed stop loss in points
Lots0.1Fixed lot size per trade
MagicNumber12345EA unique identifier number

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.