Skip to content
All library documents

Daily EURUSD Mean Reversion Against a 30-Hour Price Trend

Article MQL5 code base

Summary

This Expert Advisor opens one EURUSD position each day at a chosen hour, trading against a recent price move. It defines that move as the price difference across a configurable number of hours, rather than using a broader trend model. The described setup uses a 30-hour lookback, opens at 07:00 Central European Time, and closes positions after at most 21 hours. Stop loss, take profit, trailing stop, lot size, and entry time can be configured.

The author reports profitable historical results over seven years after optimization and describes win and loss streak statistics, but provides no independent evaluation or detail about costs, drawdowns, or out-of-sample performance. Position sizing can increase after successive losses through a martingale multiplier. The author notes that sizing optimized on recent history can perform worse on older data, and asks whether the results reflect overfitting or a sound rationale. The document offers the strategy and its settings, but does not establish that the edge will persist.

Key ideas

  • The EA opens one position per day against the price change over a configurable lookback period.
  • The example uses EURUSD, a 30-hour trend measure, and a 07:00 Central European Time entry.
  • Positions have a configurable maximum lifetime, with stop loss, take profit, and trailing stop settings.
  • Historical profitability is reported after optimization, but the document does not provide evidence of out-of-sample robustness.
  • A martingale feature increases position size after losses and can amplify risk.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.