Skip to content
All library documents

Trailing Stop EA for Managing Open Positions

Article MQL5 code base

Summary

This expert advisor manages trailing stops for all positions on the current trading symbol. Its configurable inputs include an initial stop-loss distance, the profit distance at which trailing begins, the increment used to adjust the stop, and the maximum price deviation allowed when placing or modifying orders.

The description presents a position-management utility rather than an entry strategy: it does not specify how trades are opened, how the trailing logic responds to market conditions beyond its stated thresholds, or how positions are sized. The listed parameter values are in points, but their practical meaning depends on the instrument and broker’s price conventions. No backtest, performance evidence, or risk comparison is included.

Key ideas

  • The EA adjusts trailing stops for positions on the active symbol.
  • The initial stop loss, trailing activation distance, and adjustment increment are configurable in points.
  • A maximum price deviation setting controls order execution tolerance.
  • The document does not describe trade entries or provide performance results.

Tags

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