DeMarker Reversal EA
- Experts
- Samuel Cavalcanti Costa
- Versão: 1.2
- Ativações: 5
DeMarker Reversal EA – Professional Mean Reversion Trading Based on DeMarker Indicator
The DeMarker Reversal EA is a fully automated trading robot designed for the MetaTrader 5 platform. It implements a classic mean-reversion strategy using the DeMarker (DeM) indicator, which measures the demand for an asset by comparing the most recent high and low prices. This EA generates buy signals when the DeMarker value crosses above the oversold level (default 0.3) and sell signals when it crosses below the overbought level (default 0.7). Each signal opens a single market order, avoiding multiple entries in the same direction until the previous position is closed.
Key features:
- Simple and robust logic: no curve-fitting, only pure DeMarker crossovers.
- Fully configurable inputs: DeMarker period, oversold/overbought levels, fixed lot size, stop loss (points), take profit (points), maximum orders per signal, magic number, slippage, and reverse signal option for testing.
- Safety first: stop loss and take profit are disabled by default (value 0) to prevent "Invalid stops" errors. When enabled, the EA rigorously validates SL/TP against broker's freeze and stop levels; if invalid, it disables them automatically.
- One position per direction: respects the maximum orders per signal (default 1) to prevent over-trading.
- Proper lot normalization using SYMBOL_VOLUME_MIN, MAX, and STEP.
- New bar detection using iTime() for efficient processing.
- No external indicators or iCustom calls – uses standard iDeMarker.
- Compatible with any symbol and timeframe, though H1 or H4 works best for DeMarker signals.
Benefits:
- Easy to use: just attach to a chart, set your preferred parameters, and let it run.
- Suitable for beginners and experienced traders who want a transparent, rule-based system.
- No martingale, grid, or risky money management – only fixed lot trading.
- Thoroughly tested on EURUSD H1, GBPUSD M30, and XAUUSD D1 with $10,000 initial balance.
Parameters:
- InpLotSize: Fixed trading volume (default 0.01).
- InpStopLoss / InpTakeProfit: Distance in points (0 = disabled).
- InpMaxOrders: Maximum concurrent positions per signal direction (default 1).
- InpDeMPeriod: DeMarker calculation period (default 14).
- InpOversoldLevel / InpOverboughtLevel: Thresholds for signals (default 0.3/0.7).
- InpReverseSignal: Reverse buy/sell signals for backtesting alternative logic.
- InpMagicNumber: Unique identifier for the EA's orders.
- InpSlippage: Allowed slippage in points.
No risk percentage is used – only fixed lot size, ensuring predictable trade exposure. The EA is compiled with X64 Regular configuration for Market compatibility. Get DeMarker Reversal EA today and automate your mean-reversion trading with confidence!
