Home System Trading Post

Real-Time Visualization of Optimization Results in MetaTrader 5

Attachments
914.zip (13.48 KB, Download 0 times)

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

Comments (0)