Skip to content
All library documents

Building an MQL5 Dashboard Panel with the Controls Class

Article MQL5 articles

Summary

This article describes setting up the visual foundation of a trading dashboard in MetaTrader 5 using the MQL5 Controls library. It builds the panel as an expert advisor and explains how to include the button control library, create chart objects, and arrange interface elements such as buttons, labels, and edit fields. The planned sections organize controls for trading actions, order management, and account or market information.

The discussion focuses on construction and appearance: chart coordinates, dimensions, text, colors, and basic component setup. It presents the result as a static framework with navigation and action controls, intended to be made responsive in later installments. Although the panel is designed around trading functions such as buy, sell, and closing pending orders, this part does not implement or assess the execution logic, validate order inputs, or report trading results.

Key ideas

  • The panel is implemented as an expert advisor attached to a MetaTrader chart.
  • The MQL5 Controls library provides classes for creating and managing interface elements.
  • Buttons, labels, and edit fields form the visual structure for trade, close, and information sections.
  • Chart coordinates and dimensions determine where the controls appear and how they are sized.
  • The installment establishes the interface framework; click handling and dynamic updates are deferred.

Tags

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