Skip to content
All library documents

DeMarker Martingale EA: Loss-Based Sizing and Risk Controls

Article MQL5 code base

Summary

The document describes a forex and stock trading EA that uses the DeMarker indicator and changes position size after losses. A user can configure the multiplier or lot-size increments, trading hours, trade limits, stop-loss and take-profit distances, and a waiting period after a loss. The EA also offers money-based exits and a basket-level hedge protocol with profit and loss thresholds. The text says the EA can trade one position at a time when its maximum-trades setting is one, and that trade volume depends on prior results.

The document provides configuration descriptions, not performance evidence or a tested trading rule. It does not specify DeMarker entry and exit conditions, the lot-sizing formula, or how the hedge protocol works internally. Martingale sizing can increase exposure after losses, and the listed risk limits do not establish that losses will remain bounded under live market conditions. It recommends demo testing and periodic optimization, but offers no backtest results or evidence that optimization improves future performance.

Key ideas

  • The EA is described as using the DeMarker indicator to trade forex pairs and NASDAQ stocks.
  • Position size can increase after a losing trade, according to a multiplier or other sizing settings.
  • The settings include limits for trade count, loss, trading hours, and pip- or money-based exits.
  • A hedge protocol can close a basket at configured profit or loss thresholds.
  • The document gives no performance data, full entry rules, or derivation of its sizing formula.

Tags

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