Skip to content
All library documents

Managing Basket Breakeven, Trailing Stops, and Partial Closes

Article MQL5 code base

Summary

This document describes a chart-based trade management tool for positions on the current symbol. Its controls include basket-level breakeven tied to total profit, configurable profit locking, price-distance trailing stops, and per-position breakeven and step-based stop progression. It also provides actions to close profitable or losing positions, partially close positions while moving the remainder toward breakeven, remove stop losses, or close positions and delete pending orders.

The tool displays account and position information, including floating profit and stop levels, and can filter eligible trades by order type, magic number, or comment. One-click scalp buy and sell entries are also described. No strategy evaluation or performance evidence is supplied; outcomes depend on market conditions, spreads, execution, broker rules, and user settings. The document characterizes the tool as position management rather than a source of trading signals.

Key ideas

  • Basket breakeven logic can adjust stops to protect a configured account profit amount.
  • Price-based and position-based trailing modes offer different ways to advance stop losses.
  • The controls support filtered profit or loss closures, partial closes, and bulk position actions.
  • Scalp entries are available, but the tool provides no signal or evidence of profitability.

Tags

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