Skip to content
All library documents

Plotting Top Optimization Results by a Chosen Criterion in MQL5

Article MQL5 articles

Summary

This article describes extending an MQL5 optimization-results application so users can select a ranking criterion and view the corresponding balance curves together. A drop-down control chooses the criterion, and highlighting table rows adds their results to a cumulative graph. The interface also combines result and balance views and supports keyboard selection of table rows.

The core method iterates through criterion-sorted result rows, locates each matching pass in the frame data, extracts its balance series, and plots it with a color based on whether its final result exceeds the initial deposit. The graph is scaled using the longest selected series. The article explains the GUI layout and frame-handling approach, but provides no comparative performance evidence; it concerns analysis tooling rather than a trading strategy, and its examples depend on the MQL5 GUI library and the structure of the stored frame data.

Key ideas

  • A criterion selector can rank optimization results and populate a table of the best passes.
  • Selected balance series can be overlaid to compare optimization outcomes visually.
  • The frame data must be sorted by the chosen criterion before the graph update routine runs.
  • The graph routine retrieves each pass, extracts its balance data, and colors it according to its final result.
  • Keyboard controls and combined views make result inspection more direct.

Tags

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