Skip to content
All library documents

Five-Level Martingale Position Sizing with Basket Profit and Loss Limits

Article MQL5 code base

Summary

This document explains an expert advisor that manages a sequence of positions using a martingale volume multiplier. A new position’s size is calculated by multiplying the previous position’s volume, while user-set distances determine when the next position opens. The tool allows a configured number of martingale entries, up to five, and can close the full group when its combined profit or loss reaches user-defined thresholds.

The description gives a twofold sizing example and explains the distance and basket-exit settings, but provides no market, backtest, or live-trading results. It does not specify entry signals, how the initial position is chosen, or how the approach behaves during extended adverse moves. Because position size grows with each added trade, the configured stop-loss threshold and exposure limits are central to managing risk; the document does not analyze whether its sample thresholds are suitable.

Key ideas

  • The expert advisor increases each subsequent position’s volume by a chosen multiplier.
  • The next position is opened after price reaches a user-defined distance from the previous entry.
  • The sequence can be limited to as many as five positions.
  • The advisor can close the basket when its combined profit or loss reaches a configured threshold.
  • The document gives no performance evidence or analysis of exposure during sustained adverse price moves.

Tags

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