Discussion of article "Understand and Use MQL5 Strategy Tester Effectively"

 

New article Understand and Use MQL5 Strategy Tester Effectively has been published:

There is an essential need for MQL5 programmers or developers to master important and valuable tools. One of these tools is the Strategy Tester, this article is a practical guide to understanding and using the strategy tester of MQL5.

If we move to the setting tab we will it the same as the following:

 Tester2

  •   1- Expert: choose the program file that we need to test.
  •   2- IDE: to open the source code of the selected program.
  •   3- to save or load specific settings.
  •   4- Symbol: choose what symbol or symbol we need to test.
  •   5- choose the timeframe of the selected symbol to test.
  •   6- for the specifications of the selected symbol.
  •   7- Date: choose the period that we need to test.
  •   8- choose the tested starting period.
  •   9- choose the tested ending period.
  •  10- Forward: is Selecting the needed fraction of the optimization period that will set aside for forward testing.
  •  11- select from or start the date of forwarding.
  •  12- Delays and 13: to try to be close to real data and real executions.
  •  13- to try to be close to real data and real executions.
  •  13/2- Modeling: To select the model that you need to test is it by every tick or something else?
  •  14- tick if you need profits in pips.
  •  15- choose the deposit amount that we need to start with the testing.
  •  16- choose the currency of the deposit.
  •  17- to choose the leverage.
  •  18- to choose if we want an optimization or not, we will take about it later.
  •  19- tick if we need to visualize trades or executions during the testing.

Author: Mohamed Abdelmaaboud

 

Everything is good in MT5, except the strategy tester.

In my opinion, it loses to MT4 tester in terms of visual testing.

A simple addition of an indicator to a chart during visual testing of an Expert Advisor turns into some tambourine dancing.

And sometimes it is impossible at all.

Using templates, as advised, does not always work, and if it does, the Expert Advisor often stops working normally.

In MT4, you just throw an indicator on the chart while testing an Expert Advisor and there are no problems at all.

I don't understand why it was necessary to spoil everything in the MT5 tester?


I created an Expert Advisor that creates a subwindow at startup and adds MACD to it using ChartIndicatorAdd.

Everything works fine in real life, but in the tester during visual testing it does not work at all.

And there are no errors in the logs. The indicator handle is created, the subwindow is created, but the indicator is not.

And there is no clue, the function returns "true".

 
MetaQuotes:

New article Understand and Use MQL5 Strategy Tester Effectively has been published:

Author: Mohamed Abdelmaaboud

Just want to update about Word error in article

Signal: for testing Expert advisors with signals without visualizing mode.

It should be "Single"