Skip to content
All library documents

Displaying Trading Profit and Trade Counts by Period

Article MQL5 code base

Summary

This document describes a utility panel for an automated trading environment. The panel uses graphical label objects to report account profit for a selected symbol and magic number, both as a total and as a percentage. It groups results by day, week, and month, and also displays the number of transactions in each period. The tool is intended as an account-monitoring display rather than an entry or exit strategy.

Its date handling uses the calculated trading day as the basis for the reporting periods. The example notes that when the calendar day is Saturday, the effective date is Friday, and monthly profit should be assigned to the month containing that settlement day. The description provides no calculation details for profit attribution, percentage denominators, open positions, fees, or time zones, and it reports no tests or performance results. Those omissions limit how precisely the panel’s displayed figures can be interpreted from this description alone.

Key ideas

  • The panel reports account profit totals and percentages for daily, weekly, and monthly periods.
  • Users can specify a symbol and magic number to scope the displayed trading activity.
  • The display also counts transactions in each reporting period.
  • Its date logic can use Friday as the effective trading day when the calendar day is Saturday.
  • The description does not specify profit attribution or percentage calculation details.

Tags

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