Automating Break-Even, Trailing Stops, and Partial Profit Taking
Summary
The article describes an MQL5 Expert Advisor for managing positions after entry. Its three configurable functions move a stop to break-even after a profit trigger, trail the stop as price advances, and close a chosen fraction of a position after a specified favorable move. Inputs control trigger distances, locked-in points, trailing start, step and distance, and partial-close percentage. When break-even and trailing are both enabled, trailing begins after the break-even condition is reached.
The EA can filter trades by magic number and is scoped to the chart symbol; the article also says it manages positions opened after launch. Demonstrations on EURUSD show stop adjustments and a partial close after the configured threshold. These examples confirm the described mechanics, but do not establish improved profitability or test performance across market conditions. The approach automates execution of user-defined rules; it does not provide entry signals or determine suitable settings, and point-based parameters may need instrument-specific configuration.
Key ideas
- The EA provides separate switches for break-even, trailing-stop, and partial-close management.
- A break-even trigger can move the stop to entry with an optional profit buffer.
- Trailing parameters define when stop adjustments begin, how often they move, and their distance from price.
- Trade selection can use a magic number, and management is limited to the chart symbol and positions opened after startup.
- The article demonstrates the functions on EURUSD but provides no evidence of overall strategy profitability.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.