Exp_XWAMI_MMRec
This EA is based on the XWAMI indicator for signal generation combined with a money management recommendation module. It opens buy/sell positions when the XWAMI indicator signals overbought/oversold conditions, using the MMRec module for dynamic position sizing based on account equity and risk parameters.
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 concept is based on the mean reversion principle of the XWAMI indicator, which is a variant of the WAMI (Weighted Momentum Indicator) designed to identify overbought and oversold market conditions. Entry conditions: the EA opens a long position when the XWAMI indicator crosses above its signal line from the oversold zone, and opens a short position when it crosses below from the overbought zone. Exit conditions include closing positions on reverse signal generation, stop-loss trigger, or take-profit reaching the predefined target level. Position sizing is managed through the MMRec (Money Management Recommendation) module, which automatically calculates the optimal lot size based on account free margin, predefined risk percentage, and stop-loss distance in points. The money management approach uses a fixed-fractional risk model where each trade risks a consistent percentage of total account equity. Overall, the strategy is a systematic mean reversion system that relies on indicator reversal signals to capture opportunities when prices revert to their mean.
Strengths
- Fixed-fractional risk model ensures each trade has controllable risk, preventing oversized single-trade losses
- MMRec module dynamically adjusts position size based on account equity, enabling adaptive money management
- Mean reversion strategy has good potential in ranging/choppy market conditions
- XWAMI indicator incorporates weighted momentum, offering better signal quality than simple RSI indicators
Weaknesses
- Mean reversion strategy tends to produce consecutive losses in trending markets, lacking a trend filter mechanism
- No visible new bar check mechanism, which may lead to repeated position opening on the same bar
- No spread filter, which can cause unnecessary stop-loss triggers during low-liquidity sessions with widened spreads
- No explicit position check, posing a risk of duplicate position opening
Possible improvements
- Add a trend filter (e.g., long-term moving average direction) to avoid counter-trend trading in strong trending markets
- Implement new bar check and open position count verification to prevent duplicate entries on the same bar
Risk assessment
Overall risk: Caution
- Lack of new bar check may cause multiple position openings on the same bar
- No spread filter increases trading costs and stop-loss risk during high-spread periods
- Mean reversion strategy carries risk of consecutive losses during strong directional markets
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MoneyRisk | 0.1 | Risk per trade as percentage of total balance |
StopLoss | 500 | Stop loss in points |
TakeProfit | 1000 | Take profit in points, typically set at gap close |
XWAMI_Period | 14 | XWAMI indicator period parameter |
SignalPeriod | 9 | Signal line period parameter |
Lots | 0.1 | Fixed lot size (used when MMRec disabled) |
MM_Enabled | true | Enable money management recommendation module |
MaxSlippage | 3 | Maximum allowed slippage |
Similar Mean Reversion EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.