Skip to content
All library documents

Managing Open MetaTrader Positions with Break-Even, R-Multiple Targets, and Partial Closes

Article MQL5 code base

Summary

This document describes an on-chart utility for managing positions already opened in MetaTrader 5. It does not generate entries or place trades; it modifies active manual positions or positions created by other expert advisors. Its stop-loss controls can move protection to the entry price or to an offset from entry.

The panel can calculate take-profit distances at 1R, 2R, or 3R using the initial distance between entry and the active stop loss. It also offers partial-volume closures at 25%, 50%, 75%, or 100%, along with a movable and minimizable graphical interface. The description mentions execution filters but gives no details about them. It provides feature information rather than empirical evidence, and does not discuss performance, broker constraints, or how the controls behave in edge cases.

Key ideas

  • The tool manages open MetaTrader 5 positions and supplies no entry signals.
  • Break-even controls move the stop loss to entry or to a user-defined offset.
  • Take-profit levels are derived from the initial entry-to-stop distance using 1R, 2R, or 3R multiples.
  • Users can close preset fractions of an open position, including the full position.
  • The document gives no details about the stated execution filters or trading results.

Tags

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