Hey traders! If you're diving into the world of MetaTrader 5, you're likely using the Strategy Tester to assess your trading strategies. One of the coolest features is the ability to visualize optimization results in real time.
With the Strategy Tester, you can get detailed statistical parameters of your trading system after each test. To access these parameters, make sure to use the TesterStatistics() function. This function is handy when called within the OnTester() and OnDeinit() functions.
Thanks to the new optimization functions like FrameFirst(), FrameFilter(), FrameNext(), FrameInputs(), and FrameAdd(), you can visualize your optimization results right as you’re running your Expert Advisors. That means you can see data being processed and displayed while optimizing your EA or solving mathematical problems.
Let’s break down how to visualize your testing results effectively. We’ll refer to the example visualization of an EA testing results as described in the article "Visualize a Strategy in the MetaTrader 5 Tester".
1. Visualizing Balance Dynamics During Optimization
1.1. Downloading the Necessary Files
Start by copying the Moving Averages_With_Frames.mq5 EA file to your terminal data folder under MQL5\Experts.
You’ll also need the following files for your EA to function:
- FrameGenerator.mqh - This class handles displaying optimization results.
- SpecialChart.mqh - This class is used for drawing multiple balance charts.
- SimpleTable.mqh - A simple two-column table class.
- ColorProgressBar.mqh - A class for creating a two-colored progress bar.
Copy these files to the MQL5\Include directory as well.
If you want to download Code Base programs automatically, you can do so via the MetaTrader 5 terminal. Just select the CodeBase tab in the
Related Posts
- Unlock Trading Insights with the Support Vector Machine Learning Tool for MetaTrader 5
- Mastering the Moving Average EA for MetaTrader 5: A Trader's Guide
- Leveraging MQL5 Wizard: Crafting Trade Signals with Meeting Lines and Stochastic
- Creating a Stochastic-Based EA for Hammer and Hanging Man Patterns in MetaTrader 5
- Creating an Expert Advisor for Dark Cloud Cover and Piercing Line Patterns with CCI Confirmation