Skip to content
All library documents

DeMarker Entries with Lot Increases After Losses

Article MQL5 code base

Summary

This Expert Advisor combines entry signals from the DeMarker oscillator with a position-sizing rule that increases the lot after a losing trade. It exposes the oscillator period, take-profit distance, stop-loss distance, initial lot size, a trade identifier, and a cap on consecutive losses. When the loss limit is reached, the system stops opening trades and sends an email notice.

The source says the oscillator period and profit and stop distances are intended for optimization, while initial lot size and the loss cap are fixed inputs. It calculates a lot-increase ratio, but the formula itself is absent from this excerpt, so the sizing progression cannot be assessed. The EA acts only on newly formed bars using opening prices; the document therefore says tick-by-tick simulation is unnecessary. It gives no backtest results or evidence that the recovery sizing method is profitable, and increasing exposure after losses can amplify drawdowns.

Key ideas

  • Entry signals are based on the DeMarker oscillator.
  • The lot size increases after a losing trade according to a ratio whose formula is missing from the excerpt.
  • The EA includes take-profit, stop-loss, and consecutive-loss limit parameters.
  • Signals are processed on new bars using opening prices, according to the description.

Tags

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