Skip to content
All library documents

A Position Manager for Staged Stop Loss Moves and Trailing Stops

Article MQL5 code base

Summary

This expert advisor monitors open positions across symbols and adjusts their stop losses as profit thresholds are reached. It supports up to three staged thresholds, each paired with a stop level to move to, and can optionally close one third of a position at the first threshold. A trailing stop can also activate at a specified level and update in configured increments. On-screen comments and sound alerts are optional.

The main configuration caveat is that the trailing activation level should be above the third profit threshold; the document says otherwise the advisor may not work correctly. It lists settings such as account use and slippage but does not explain their behavior in detail. No backtest, execution analysis, or performance evidence is provided, so the text describes trade management mechanics rather than demonstrating that any particular threshold or trailing setup is effective.

Key ideas

  • The advisor tracks open positions and modifies their stop losses when configured profit levels are reached.
  • Three profit thresholds can map to three successive stop levels.
  • An optional setting closes one third of a position at the first profit threshold.
  • Trailing activation and step size are configurable, and the activation level should exceed the third threshold.
  • The document provides no testing or performance evidence for the settings.

Tags

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