AutoGen Hybrid Mean Reversion EA MT5
- Experts
-
Phan Van Khoa
⭐ PROFESSIONAL QUANT DEVELOPER & ALGORITHMIC TRADING SYSTEMS
Welcome to my official MQL5 developer page. I specialize in institutional-grade quantitative trading systems, high-precision Expert Advisors, and statistical breakout models for MetaTrader 5. - 버전: 1.0
AutoGen Hybrid Mean Reversion EA MT5
Designed for Gold (XAUUSD) and major forex pairs, AutoGen Hybrid Mean Reversion EA MT5 is a fully automated expert advisor for MetaTrader 5 that trades the classic Bollinger Bands mean-reversion setup, filtered by the ADX indicator to stay out of strong trending markets. It combines two well-known concepts — reversion to the mean and trend-strength filtering — into a single robust trading robot. The strategy is symbol-agnostic: the same Bollinger / ADX / ATR logic applies across ranging markets on forex pairs and Gold (XAUUSD).
How it works
- Opens a Buy when price closes below the lower Bollinger Band and ADX indicates a ranging market.
- Opens a Sell when price closes above the upper Bollinger Band and ADX indicates a ranging market.
- Take Profit is placed at the middle Bollinger Band, so each trade targets a full reversion to the mean.
- Stop Loss is based on the Average True Range (ATR) so the risk adapts to current market volatility.
- Only one position is held at a time per symbol and magic number.
Risk management
- Risk-capped lot sizing — the volume is automatically reduced so that the stop-loss distance never risks more than the configured percentage of the account balance.
- Margin guard — trades that would require too much of the free margin are skipped to avoid stop-outs.
- Spread-aware stops — stops are validated against bid/ask and exchange rules, so orders are only sent when the server will accept them.
Features
- Works on netting and hedging accounts.
- No martingale, no grid, no hedging — a single clean position per signal.
- Low drawdown by design, thanks to the ATR-based stop loss.
- Full control via input parameters.
Input parameters
| Parameter | Default | Description |
| Trade Lots | 0.01 | Base volume for new trades (reduced by the risk manager if needed). |
| Magic Number | 12345 | Unique identifier for the EA's positions. |
| Slippage in Points | 5 | Maximum allowed slippage when opening positions. |
| ADX Period | 14 | Period of the ADX indicator. |
| ADX Threshold for Ranging | 25.0 | If ADX is above this value the market is considered trending and no trades are opened. |
| Bollinger Bands Period | 20 | Period of the Bollinger Bands. |
| Bollinger Bands Deviation | 2.0 | Standard deviation of the Bollinger Bands. |
| ATR Period for SL/TP | 14 | Period of the ATR used for the stop-loss distance. |
| ATR Multiplier for Stop Loss | 1.5 | Multiplier applied to the ATR value to set the stop-loss distance. |
| Max Risk % of Balance per Trade | 2.0 | Maximum percentage of the account balance that can be lost on one trade. |
Recommended usage
- Timeframes: M15, M30 and H1 work well for the mean-reversion setup.
- Symbols: EURUSD, GBPUSD and other major pairs. Gold (XAUUSD) also range-trades frequently and can be traded with the same setup — attach the EA to a Gold chart and it will apply the identical mean-reversion logic.
- Account: any account type, ECN/RAW accounts with low spreads are preferred.
Download the demo-friendly free version, attach it to any chart, and let the expert advisor find mean-reversion opportunities for you automatically.
--- ### 🔥 Looking for Institutional Performance? Upgrade to Our Flagship Gold EAs If you want higher win-rates, strict 5-year walk-forward validation, and advanced dynamic risk management, explore our flagship institutional Expert Advisors: 1. **Spawn Champion EA (#190713)**: - **Walk-Forward Validated (2021–2026)** with real MT5 tick data. - **Profit Factor: 1.78** · **Max Drawdown: 3.47%** · **Win Rate: 69.23%**. - Zero Martingale, Zero Grid. Hard stop loss on every trade. - [View Spawn Champion EA on MQL5 Market](https://www.mql5.com/en/market/product/190713) 2. **Heiken Ashi Trend Scalper Pro (#190190)**: - **+$226,635.76 Net Profit** (22.66x account growth) across 2,019 verified trades. - **71.37% Win Rate** with adaptive tight-trailing profit locking. - [View Heiken Ashi Trend Scalper Pro on MQL5 Market](https://www.mql5.com/en/market/product/190190) *Download the free demo of both flagship EAs directly from their product pages to run your own Strategy Tester verification.*