Skip to content
All library documents

Managing Daily Profit Targets and Loss Limits Across Open and Closed Trades

Article MQL5 code base

Summary

This brief description outlines a trading utility for closing positions when a daily profit target or daily loss limit is reached. Its central accounting idea is to combine floating profit or loss on open orders with realized results from closed orders retrieved from trading history. A trader could use this aggregate daily figure to decide when the tool should close positions, applying a daily threshold across both realized and unrealized outcomes rather than considering only current open trades.

The document provides no threshold values, detailed calculation rules, platform implementation, or examples. It does not clarify how the daily period is defined, which costs or currencies are included, or how deposits, withdrawals, and positions spanning days are handled. There are no test results or evidence about execution behavior. As a result, it introduces a risk-control concept but leaves key operational choices unspecified.

Key ideas

  • The utility is intended to close positions when a daily profit target or loss limit is reached.
  • Its calculation combines floating results on open orders with realized results from closed orders.
  • The daily thresholds and exact accounting rules are not specified.
  • The description gives no implementation details or performance evidence.

Tags

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