Skip to content
All library documents

Managing Open Positions and Pending Orders in a Manual Trading Toolkit

Article MQL5 articles

Summary

This article extends a MetaTrader 5 toolkit for manual trading beyond order entry. It describes organizing the interface into tabs for trading, open positions, and pending orders, with tables and controls for editing or closing individual items. Position controls allow changes to stop loss and take profit, full or partial closure by volume, and closure at the current price. Pending order controls allow changes to execution price and protective levels, as well as editing or deleting an order.

The article also expands bulk closing options: users can target buy or sell positions and filter by individual or combined profit or loss thresholds in points or deposit currency. Combined thresholds apply only to positions opened by the toolkit with the specified magic number. The text explains the intended interface and includes implementation details, but provides no performance evaluation or trading results. These features support manual decision-making; they do not supply entry signals or establish that any strategy is profitable.

Key ideas

  • The toolkit separates order entry, open position management, and pending order management into distinct tabs.
  • Open positions can have their stop loss and take profit edited or removed, and can be closed partially by specifying a smaller volume.
  • Pending orders can be selected individually for editing or deletion, including changes to execution price and protective levels.
  • Bulk closure filters can target buy or sell positions using individual or aggregate profit and loss thresholds.
  • Aggregate filters are limited to positions opened by the application with its configured magic number.

Tags

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