Skip to content
All library documents

Visualizing MetaTrader 5 Optimization Results with Replayable Frames

Article MQL5 articles

Summary

This article describes an MQL5 graphical application for inspecting strategy optimization results through tester frames. It collects and displays multiple balance curves alongside optimization results, parameter values, and summary statistics. Users can limit how many curves appear and replay saved frames at an adjustable speed, making it easier to review results after a long optimization has finished. The interface is built with the EasyAndFast GUI library and uses the tester’s frame-related event handlers to receive and process optimization data.

Examples include tests of two expert advisors. The article reports that one algorithm produced losses and advises gathering more trades and testing more data; a MACD Sample test over a longer period had a high proportion of positive outcomes. These examples illustrate the viewer rather than establish a reliable trading edge. The author notes platform limitations: timers cannot be started after frame processing completes, and removing the expert advisor may not trigger the expected deinitialization event. Results visualization can aid comparison, but does not replace robust out-of-sample evaluation.

Key ideas

  • The application displays balance curves from multiple optimization passes in one interface.
  • It stores tester frames so optimization results can be replayed and inspected after the run.
  • The interface combines parameter values, result statistics, optimization plots, and progress information.
  • The example tests are illustrative and do not establish that either strategy will perform reliably.
  • MetaTrader 5 frame processing has timer and deinitialization limitations described by the author.

Tags

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