Skip to content
All library documents

MoneyRain: A Martingale Expert Advisor with a Loss-Streak Limit

Article MQL5 code base

Summary

MoneyRain is described as a trading Expert Advisor that uses a Martingale-like approach: it seeks to recover a losing sequence by expecting wins to follow losses. Its listed inputs include a DeMarker period, take-profit and stop-loss distances, initial lot size, and a maximum number of consecutive losses. Once the loss limit is reached, the EA stops opening trades and sends an email alert. A fast-optimization option changes how the built-in trading system is optimized and can produce results that differ from the usual testing process.

The document says the EA evaluates newly formed bars and opens trades at bar prices, and therefore does not require every-tick optimization. It mentions testing with real tick data, but provides no performance results, market, timeframe, or evidence that the recovery premise works. The loss cap is a useful stated control, yet increasing exposure after losses can still compound drawdowns before the cap is reached. The input descriptions do not explain entry and exit rules in enough detail to assess the strategy or reproduce its behavior from this text alone.

Key ideas

  • MoneyRain uses a Martingale-like premise that winning trades may follow losing trades.
  • The listed controls include DeMarker period, take-profit and stop-loss distances, and the initial order size.
  • A configurable consecutive-loss limit stops new trades and triggers an email notification.
  • The EA is described as acting on newly formed bars and opening at bar prices.
  • The document gives no performance evidence or detailed entry rules, and the recovery approach can compound losses.

Tags

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