Adding Interactive Sorting and Statistical Views to an MQL5 Correlation Matrix
Summary
This article describes interface additions to an MQL5 correlation matrix dashboard, which computes Pearson, Spearman, and Kendall relationships across selected symbols, timeframes, and bar windows. Users can drag or minimize the panel, switch between correlation and p-value displays, change light or dark themes, and inspect cell tooltips containing calculation details. The dashboard also sorts symbols by average absolute correlation strength in ascending or descending order, with an option to restore the original order.
The implementation discussion covers saving the input symbol order, reordering matrix rows and columns together, and responding to mouse and button events. The article says a compiled visualization demonstrates the completed interactions, but provides no quantitative evaluation of correlation estimates, statistical tests, or trading results. These are analytical display features, not a method for establishing causality or selecting profitable positions; the usefulness of displayed relationships depends on the chosen sample, timeframe, and correlation measure.
Key ideas
- The dashboard displays pairwise relationships using Pearson, Spearman, and Kendall correlation methods.
- Sorting symbols by average absolute correlation can group assets with stronger measured relationships.
- Users can toggle between correlation coefficients and p-values for a different statistical view.
- Mouse interactions support panel movement, minimizing, theme changes, hover feedback, and cell details.
- A user interface demonstration does not establish predictive value or trading profitability for the displayed correlations.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.