Skip to content
All library documents

Comparing Trailing Stop Methods for Managing Open Positions

Article MQL5 code base

Summary

The document surveys a library of trailing-stop methods intended to manage open positions independently of entry rules. Methods include trailing behind recent bar highs or lows, fractal extrema, stepped price advances, tighter distances as profit grows, elapsed-time adjustments, and a ratchet that moves the stop through profit thresholds. It also describes volatility-based and other stop adjustments, though some explanations are missing from the supplied text.

The notes explain how parameters such as timeframe, lookback size, offset, and permission to trail through a losing area change stop behavior. The author favors bar-based extrema for allowing pullbacks and describes time-based trailing as less useful on its own. These are practitioner observations, not comparative test results: the document provides no systematic performance evidence, and suitability depends on the entry system and market conditions. It also presents the functions as building blocks that can be combined or adjusted while a trade is open.

Key ideas

  • Trailing stops govern how open positions are maintained and closed, and can materially affect a trading system.
  • Bar-shadow and fractal methods place stops around recent highs or lows, allowing some price retracement.
  • Stepped trailing waits for preset profit increments before moving the stop, giving price room between adjustments.
  • Threshold and ratchet methods tighten protection as profit grows or move a stop toward breakeven early.
  • The author’s observations are qualitative and do not establish performance across systems or markets.

Tags

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