Skip to content
All library documents

Partially Closing Profitable Buy Orders While Retaining Other Positions

Article MQL5 code base

Summary

This script is intended to close part of a buy order that is already in profit while leaving other running orders open to pursue their target profits. Its described role is a position-management operation: realize some gains from a profitable buy without closing every position in the set.

The document gives only this high-level purpose and points users to the platform’s Experts tab for information. It does not explain how the script identifies eligible orders, how much volume it closes, what triggers the action, or how the remaining orders’ targets are set. No examples, trading rules, risk controls, or performance evidence are provided, so the description is insufficient to evaluate its behavior or suitability in a particular strategy.

Key ideas

  • The script is designed to partially close buy orders that are in profit.
  • Other running orders are intended to remain open toward their target profits.
  • The description does not specify the trigger, partial-close amount, or order-selection logic.
  • No performance evidence or risk-management guidance is included.

Tags

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