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
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 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
Parameters
| Parameter | Default | Description |
|---|---|---|
QEMA_Period | 14 | QEMAMAcalculation period |
Envelope_Deviation | 0.5 | Envelope deviation percentage |
Digit_Signal_Period | 5 | Digital signal calculation period |
StopLoss | 300 | Auto stop loss in points; 0=disabled |
TakeProfit | 600 | Auto take profit in points; 0=disabled |
LotSize | 0.1 | Lot size per leg |
MagicNumber | 18746 | Unique EA order identifier preventing conflicts |
Timeframe | H1 | Timeframe used for indicator calculation |
Similar Mean Reversion EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.