Visualizing Optimization Passes by Trading Criteria in MQL5
Summary
This article explains how to build a visual dashboard for MetaTrader 5 Expert Advisor optimization. It uses the tester's frame events to transfer each completed optimization pass from an agent to a terminal instance, where the data can be displayed and sorted. The proposed interface includes charts for pass balance histories, tables of results and input settings, and views of the top three passes under Sharpe ratio, net profit, profit factor, and recovery factor.
The article traces the roles of initialization, per-pass, and completion handlers, and describes storing pass data for later sorting and display. It is an implementation guide for inspecting optimization output, not evidence that selecting top-ranked passes produces robust live performance. The dashboard compares results under specified criteria, so users still need to assess overfitting, test assumptions, and out-of-sample behavior; the article supplies no independent performance validation.
Key ideas
- Tester frame events let an Expert Advisor send completed optimization-pass data to a terminal instance for display.
- The proposed dashboard plots balance histories and shows pass metrics alongside the input settings that produced them.
- Separate views rank the leading passes by Sharpe ratio, net profit, profit factor, and recovery factor.
- The article describes an analysis interface, not a method for proving that optimized settings will generalize to live trading.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.