Skip to content
All library documents

Moving Positions to Breakeven Before Activating a Trailing Stop

Article MQL5 code base

Summary

This brief description covers an assistant expert adviser that first moves open positions to breakeven and then enables trailing stops. Its three settings control the trailing distance in pips, the trailing step, and a magic number used to identify positions handled by the adviser. The trailing step also defines the level at which the stop loss is moved to breakeven.

The page presents the tool’s basic purpose and parameters but does not explain its exact execution rules, supported instruments, or how it handles multiple positions and trading costs. It includes no backtest, live results, or risk analysis. The description is therefore useful as a concise outline of a trade-management mechanism, but it is not enough to assess effectiveness or suitability.

Key ideas

  • The adviser moves positions to breakeven before enabling a trailing stop.
  • The trailing distance and step are configurable in pips.
  • The trailing step also sets the level for moving the stop loss to breakeven.
  • A magic number identifies the positions managed by the adviser.
  • The page provides no performance evidence or detailed execution rules.

Tags

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