Skip to content
All library documents

A Reversal EA with Averaging and Optional Martingale Recovery

Article MQL5 code base

Summary

This MetaTrader expert advisor uses a daily price move threshold to enter countertrend trades: it sells after price rises sufficiently above the day’s low and buys using the opposite condition. The stated approach seeks a pullback after a strong move. Once entered, a position is held until its planned profit target is reached. The description also discusses lot sizing as a percentage of available funds and increasing trade size after positive results under one setting.

To manage losing positions, the EA averages by adding trades in the same direction at configured distances, aiming to close the series near breakeven after a reversal. A martingale option increases the added trade size and is described as requiring a smaller retracement, but as high risk when price continues against the position. The document mentions testing EUR/USD on a 30-minute chart from January to November 2016, including an every-tick mode, but gives no numerical performance results. Its example and test setup do not establish future profitability; spread, commission, prolonged trends, and capital requirements can materially affect outcomes.

Key ideas

  • The entry rule fades a sufficiently large move from the daily high or low.
  • The EA holds trades for a planned profit target and provides percentage-based lot sizing.
  • Losing positions can be averaged at distances set by the user.
  • The optional martingale increases added trade size and carries substantial exposure if price keeps moving adversely.
  • The document states a historical EUR/USD test setup but supplies no performance statistics.

Tags

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