Skip to content
All library documents

Profit-Threshold Activation for Trailing Stops

Article MQL5 code base

Summary

The note describes a trailing-stop setting that delays trailing until an open position reaches a specified profit threshold, measured in points. It presents this threshold as a breakeven-like activation condition: trailing begins only after the position has moved sufficiently into profit.

The expert advisor operates on the current symbol and can modify positions with different Magic numbers. When it modifies a position, it copies that position’s Magic number. The note offers no performance data, parameter guidance, or detailed explanation of how the trailing distance is set, so it describes a configuration concept rather than a complete trading method.

Key ideas

  • Trailing can be configured to activate only after a position reaches a profit threshold in points.
  • The activation threshold delays trailing until the trade has moved into profit.
  • The advisor works on the current symbol and can handle positions with different Magic numbers.
  • When modifying a position, the advisor preserves that position’s Magic number.

Tags

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