EA-18746 · Mean Reversion

Exp_Color_QEMA_Envelopes_Digit_System

This EA trades based on the QEMA (Quadratic Exponential Moving Average) Envelopes indicator with a digitized signal system. It enters trades when price touches or crosses the envelope bands, interpreting such events as overextended conditions likely to revert to the QEMA mean. The color component indicates visual trend direction filtering, while the digit system discretizes signals for precise entry timing.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesM15, M30, H1, H4
IndicatorsQEMA, Envelope, ATR
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 strategy centers on mean reversion trading using the QEMA Envelopes indicator. QEMA is a quadratic optimization of the traditional EMA, reducing lag to provide a more responsive moving average reference. The envelopes are set at a fixed percentage offset above and below the QEMA, and when price touches the upper band it is considered overbought triggering a sell, while touching the lower band signals oversold conditions for a buy. The Color mechanism filters trades by QEMA slope direction, only allowing entries in the trend-consistent direction to reduce counter-trend risk. The Digit System quantizes continuous signals into discrete numeric signals, eliminating ambiguous entry decisions. Exit conditions include mean reversion close, stop loss/take profit, or reversal signal flip. Position sizing typically uses fixed lots or a dynamic allocation based on account equity percentage.

Strengths

  • QEMA reduces lag compared to traditional EMA, providing more timely signals
  • Envelope mean reversion strategy has clear logic with statistical support
  • Color trend filter mechanism effectively reduces counter-trend trading risk
  • Digit signal system eliminates ambiguity in entry decisions
  • Structured exit mechanism includes stop loss and take profit protection

Weaknesses

  • Mean reversion strategies can suffer consecutive losses in strong trending markets
  • Envelope deviation parameters are sensitive to volatility changes, requiring dynamic adjustment
  • Lacks volatility adaptive mechanism, fixed deviation performs inconsistently across market conditions
  • QEMA reduces lag but still has delay, signals lag in fast reversal scenarios
  • Missing scaling in/out position management logic, limiting capital efficiency

Possible improvements

  • Introduce ATR-based dynamic envelope deviation to adapt the strategy to different volatility regimes
  • Add multi-timeframe confirmation mechanism to improve signal reliability and reduce false breakout entries

Risk assessment

Overall risk: Medium

  • Fixed envelope deviation may trigger frequently during high volatility causing overtrading
  • Mean reversion strategy carries persistent counter-trend positioning risk in one-directional trending markets
  • Lacks maximum drawdown control and daily loss limit mechanisms

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation3.0
Documentation2.0
Overall2.5

Parameters

ParameterDefaultDescription
QEMA_Period14QEMAMAcalculation period
Envelope_Deviation0.5Envelope deviation percentage
Digit_Signal_Period5Digital signal calculation period
StopLoss300Auto stop loss in points; 0=disabled
TakeProfit600Auto take profit in points; 0=disabled
LotSize0.1Lot size per leg
MagicNumber18746Unique EA order identifier preventing conflicts
TimeframeH1Timeframe used for indicator calculation

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.