MeanRevert EA

MeanRevert EA — Daily SMA Mean Reversion
Overview
MeanRevert EA trades the statistical tendency of price to return toward its Daily SMA after extended deviations. When the D1 close moves more than a configurable percentage away from the SMA, the EA opens a position in the reversion direction and exits when price approaches the mean again — capturing the snapback move.
The EA is designed for index trading (US30, US500, USTEC, DE40) but works on any liquid instrument.

How it works
At each new Daily bar close, MeanRevert measures the deviation between the closing price and the Daily SMA. If deviation exceeds the entry threshold, a pending signal is stored. After a 1h10m guard period (avoiding the illiquid market open), the order is executed at market. The position is held until price returns within the exit threshold of the SMA, at which point it closes with a market order on the next tick.
An optional scale-in allows a second position to be added if price deviates further by a configurable multiplier — averaging into the trade at a more extreme level.

Key features

Daily SMA mean reversion — long, short, or both directions
Configurable entry deviation % and exit proximity %
Optional scale-in entry at EntryDev × multiplier
Percentage-based breakeven and trailing stop
Three risk modes: % of balance, % of fixed base, or fixed lot
Retry logic with exponential backoff for transient broker errors
Fixed-dollar circuit breaker (daily + total drawdown, high-water mark)
Daily SMA drawn on chart at any timeframe including backtest visual mode
Incremental P&L tracking via OnTradeTransaction — no HistorySelect per tick
Full HUD with real-time deviation, signal state, position details, and win rate


Parameters
ParameterDescriptionMA_PeriodDaily SMA periodEntryDevPctEntry threshold % from SMAExitNearPctExit when within % of SMADirectionModeLong only / Short only / BothSL_PercentStop loss % from entry (0 = off)EnableSecondEntryEnable scale-in positionSecondEntryMultiplierScale-in at EntryDev × this valueEnableBreakevenMove SL to entry after trigger %EnableTrailingTrailing stop by % distanceRiskTypeBalance % / Base money % / Fixed lotMaxDailyDrawdownAmountDaily loss limit in $MaxTotalDrawdownAmountTotal loss from peak equity

Recommended settings
Indices (US30, US500, USTEC, DE40): EntryDevPct 2–5%, ExitNearPct 0.3–0.8%, SL_Percent 2–4%, SMA period 50–200. Optimize on OHLC 1M, validate on real ticks.

Requirements
MetaTrader 5 — any broker. Tested on IC Trading and QDM. Minimum recommended balance $1,000 per instance with 1% risk.
Yazarın diğer ürünleri
Box Breaker
Ionut-alexandru Margasoiu
The Edge Every Trader Wants. Built Into a Single EA. BoxBreaker is a professional-grade Expert Advisor for MetaTrader 5 that trades range breakouts — one of the most battle-tested setups in technical analysis. It detects consolidation zones across multiple symbols and timeframes, waits for the decisive move, and executes with surgical precision. No guesswork. No manual intervention. Just systematic, rules-based trading. What It Does BoxBreaker identifies a price range during a specific session w
TimeBasedLong EA
Ionut-alexandru Margasoiu
Overview TimeBasedLong is a straightforward session-based Expert Advisor for MetaTrader 5. It opens a single long position at a defined time each day and closes it at a defined time — no complex signals, no indicators, no noise. Designed for traders who want to automate a fixed daily long bias on any instrument. How it works The EA opens a buy position at your specified start time and closes it at your specified close time. Everything in between — risk, protection, breakeven — is handled automat
Turnaround EA
Ionut-alexandru Margasoiu
Turnaround EA  What Is It? Turnaround EA is a rules-based algorithmic trading Expert Advisor for MetaTrader 5, built around one of the most documented weekly seasonal patterns in the forex market — the early-week mean-reversion tendency. The EA opens a single long position at a configured time on a chosen entry day, holds through the week, and closes automatically at a pre-set exit time. No discretion. No missed signals. Pure automation. The Edge Markets have a statistically observable tendency
Filtrele:
Değerlendirme yok
Değerlendirmeye yanıt