Skip to content
All library documents

MetaTrader Expert Advisor for Automatic Trailing Stops

Article MQL5 code base

Summary

The document describes a MetaTrader 4 expert advisor that manages trailing stops on existing trades rather than opening orders. Its automatic trailing behavior activates after price reaches a specified fraction of the trailing-stop value. Configurable inputs cover whether trailing stops are enabled, the stop distance and step, take-profit calculation, minimum take profit, stop-loss handling, and Friday trading. The listed update notes mention changes to take-profit and stop-loss calculations, bug fixes, and a break-even feature.

The author reports using the tool on a five-minute chart across several currency pairs, but gives no performance data or reproducible evaluation. The parameter examples are settings rather than a tested recommendation, and the document does not explain how slippage, spreads, gaps, or broker execution affect stop behavior. The EA is described as a trade-management utility; the excerpt does not establish that its settings suit other instruments, timeframes, or traders.

Key ideas

  • The EA manages trailing stops on orders opened by another method rather than initiating trades itself.
  • Automatic trailing is described as activating once price reaches a portion of the configured trailing-stop value.
  • Inputs allow traders to configure trailing, take-profit, stop-loss, and Friday trading behavior.
  • The update history mentions revisions to TP and SL calculations and a break-even feature.
  • The author’s use report is anecdotal and does not establish performance or general suitability.

Tags

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