Skip to content
All library documents

Tracking Open and Closed Trade Profit by Time Period

Article MQL5 code base

Summary

This document describes a chart indicator that summarizes account trading results. It displays profit and Buy/Sell position counts for currently open trades, closed trades over daily, weekly, monthly, and yearly periods, and the account’s full history. The weekly total can be aligned to a Monday or Sunday start.

The tool is a reporting panel rather than a trading strategy: it surfaces realized and unrealized profit alongside trade counts. Users can adjust its chart position, offsets, transparency, background and border colors, and text colors for gains and losses. The document suggests pairing it with a separate stop-loss calculator to estimate potential losses when closing open positions. It gives no formulas, performance evidence, accounting conventions, or details on treatment of fees and deposits, so the displayed figures’ precise calculation and comparability cannot be assessed from the description.

Key ideas

  • The indicator reports profit and Buy/Sell counts for open positions and closed trades across several time spans.
  • The weekly reporting interval can begin on Monday or Sunday.
  • Panel placement, appearance, and profit/loss text colors are configurable.
  • The description provides no calculation details or evidence about accuracy or performance.

Tags

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