Skip to content
All library documents

Martingale Trading with Strategy Switching and Basket Loss Controls

Article MQL5 code base

Summary

The described trading robot uses two strategies and switches to the other after a losing trade while increasing the next position size by a configurable multiplier. It also offers optional basket-level controls: close a group of trades at a specified profit or loss, use monetary take-profit and trailing settings, and set pip-based stops and targets. A moving-average period is among the listed inputs, though the document does not explain how it determines entries.

These controls place limits on closing positions, but they do not remove the central risk of martingale sizing: repeated losses can rapidly increase exposure and drawdown. The document provides parameter ranges and recommends trying the system on a demo account, but offers no strategy rules, backtest, or performance evidence. Its risk settings should not be taken as proof that losses are capped under all market conditions.

Key ideas

  • After a loss, the robot switches strategies and increases the next lot size.
  • A configurable multiplier controls the martingale increase.
  • Optional basket settings close multiple trades at profit or loss thresholds.
  • The robot also lists monetary and pip-based stops, targets, and trailing controls.
  • No entry logic or performance evidence is given, and larger positions can compound losses.

Tags

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