Skip to content
All library documents

Building a MetaTrader 5 Trading Report Board with Standard Library Classes

Article MQL5 articles

Summary

This article explains how to build an informational trading report inside MetaTrader 5 using MQL5 Standard Library classes. The proposed indicator runs in a separate chart window and presents a balance chart, trading statistics, and a pie chart showing an instrument’s share of total transactions. The implementation organizes chart objects, deal and balance data, interface elements, and calculated measures in a board class, with private methods controlling the order of data collection, calculation, and display updates.

The design uses arrays and chart objects from the Standard Library, with Google Charts requests and image files for rendered charts. It refreshes the board when the deal count or chart-window dimensions change, checking those conditions during calculation and timer events. The article also outlines the library’s inheritance structure and emphasizes that using its classes requires familiarity with object-oriented programming. This is an implementation guide for reporting historical account activity, not a trading strategy or evidence that the displayed measures predict future performance. Its image-generation setup also depends on external DLLs and permission to use them.

Key ideas

  • A separate-window indicator can present account statistics without covering the main price chart.
  • A board class can manage deal data, balance history, chart objects, and calculated performance measures.
  • The report can combine a balance curve with a pie chart of transactions by instrument.
  • The board refreshes when the deal count or chart dimensions change.
  • The approach relies on MQL5 Standard Library classes, object-oriented programming, and external chart-rendering dependencies.

Tags

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