Skip to content
All library documents

Trailing Take Profit to Limit Losses on Losing Positions

Article MQL5 code base

Summary

The document proposes a trailing take-profit mechanism for a position that has moved into a loss. Once the loss reaches a chosen trigger distance from the entry, the take-profit level begins following price, constrained by a maximum distance. The intended behavior is to close the losing position if price reverses enough to reach that moving level.

It describes an automated trading implementation with settings for enabling the feature, choosing a symbol, setting the trigger, and specifying the trailing distance. The author suggests it could reduce losses in an expert advisor that lacks a stop loss. No backtest, market conditions, execution details, or comparison with fixed stops are provided, so the claimed loss reduction is an unvalidated proposal and may depend strongly on parameter choices.

Key ideas

  • The proposed mechanism activates after a position reaches a specified loss threshold.
  • After activation, the take-profit level follows price at a configured maximum distance.
  • The position is intended to close at a loss if price reverses to the trailing level.
  • The document provides configurable trigger and distance parameters for automated trading.
  • It offers no performance evidence, and the loss reduction claim is not validated.

Tags

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