Discussing the article: "Tables in the MVC Paradigm in MQL5: Symbol Correlation Table"

 

Check out the new article: Tables in the MVC Paradigm in MQL5: Symbol Correlation Table.

In this article, we will refine the graphics library classes by adding a vertical header to the table and use the table classes to create an indicator that displays the correlation between the symbols specified in the settings.
In the previous article, which focused on creating tables within the MVC framework, we expanded table functionality by adding the ability to adjust column widths, specify the types of data to display, and sort data by column. These improvements have made the tables more flexible and easier to use with various datasets. However, for some tasks that require data to be presented with a clear association to rows, an additional interface element is needed — a vertical header that displays the row headers.

Today, we will not create abstract examples of arbitrary tables; instead, we will create a practical example of an indicator for building a symmetric correlation table for the symbols selected in the settings, where the vertical and horizontal headers will display the symbol names, and the table itself will display the correlation values between them. To do this, let’s add a vertical header to the table, which will generally contain row labels — such as their sequence numbers or other identifiers — and, in the selected example, the symbol names. Having two table headers will make it easier to navigate the data, especially when working with tables where rows carry important meaning.


Author: Artyom Trishkin