Discussion of article "Visualizing trading strategy optimization in MetaTrader 5" - page 5

 
fxsaber:

This is a Market vulnerability in the first place.

It is possible that it can be detected by auto-tests and not missed until the author makes a fix.

 

Basically made it for testing purposes like this. Please evaluate, maybe my conclusions are inaccurate....

I created a primitive Expert Advisor:

//--- Connection of the application class
#include "Program.mqh"
CProgram program;
//+------------------------------------------------------------------+
//| Expert initialisation function|
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   program.OnTesterInitEvent();
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialisation function|
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   program.OnTesterDeinitEvent();
  }
//+------------------------------------------------------------------+
//| Expert tick function|
//+------------------------------------------------------------------+
void OnTick()
  {
//---

  }
//+------------------------------------------------------------------+


I am trying to trace the stage of initialisation of the Panel, as it would happen in the body of the OnTesterInit() handler.

The panel has appeared. As far as I understand, I have all the resources and they are loaded. Most likely, it's a matter of frame mode.



Panel

 
Dennis Kirichenko:

Basically made it for testing purposes like this. Please evaluate, maybe my conclusions are inaccurate.....

I created a primitive Expert Advisor:

...

So I'm trying to trace the stage of initialisation of the Panel, as it would happen in the body of the OnTesterInit() handler.

The panel has appeared. As far as I understand, I have all the resources and they are loaded. Most likely, it's a matter of frame mode.

...

Then it's even more confusing. It turns out it's not about resources.

I am busy at the moment, so I can't search for the cause of such a result. It would be nice if the developers of the terminal could give a hint as to why it can happen.

 
Anatoli Kazharski:

I'm busy at the moment, so I can't search for the cause of this result. It would be nice if the developers of the terminal could give some hints as to why this might happen.

For starters, let Denis give all his files to Anatoly, and let Anatoly install them in an empty terminal. If it reproduces - you can compare the files.

I will also check a little later

 
Rashid Umarov:

To start with, let Denis give all his files to Anatoly, and let Anatoly install them in an empty terminal. If it plays, you can compare the files.

I will also check a little later

To start with, I tried it like this.

1. Downloaded the MetaTrader 5 installer and installed the terminal in the default directory:


//---

2. After installation, I opened the terminal data directory:



//---

3. Copied the Expert Advisor with the already compiled file from the working directory to this directory.

//---

4. Started the optimisation and here is the result. Everything worked.


//---

In the archive below is the compiled version of the Expert Advisor from the article. Let Denis try to test it this way and let him know what happened.

Files:
 

1. Next, I copied the images and library files from my working directory:

//---

2. Then I compiled the MacdSampleWithFrames Expert Advisor and ran the optimisation again. Everything worked:


 
Anatoli Kazharski:

1. Next, I copied the images and library files from my working directory:

This needs to be either from the article or from Codebase. Otherwise, of course, everything will be fine

 
Rashid Umarov:

You need either from the article or from Codebase. Otherwise, of course, you'll be fine

Already tried it.

I deleted the versions I copied from my working catalogue. I downloaded the expert from the article and the library version from Codebase.

Everything works.

 

I did it!!!

And here's how.

I installed a new MT5 in a clean field. The path to the MovingAverageWithFrames Expert Advisor was as follows: %MQL5\Experts\MacdSampleWithFrames\MovingAverageWithFrames.mq5.

It turned out that the robot did not work correctly in the first MT5, because the source was originally located here: %MQL5\Shared Projects\Testing\Frames\MovingAverageWithFrames\MovingAverageWithFrames.m q5.

Apparently, resources are connected from the shared projects folder problematically, if at all.

 
Dennis Kirichenko:

...

It turned out that the robot did not work correctly in the first MT5, because the source was originally located here: %MQL5\Shared Projects\Testing\Frames\MovingAverageWithFrames\MovingAverageWithFrames.mq5.

Apparently, the resources are connected from the shared projects folder problematically, if they are connected at all.

Such nuances should be reported at once. In the archive attached to the article, the files are located in the MQL5/Experts directory, not in the shared projects directory. That's how you should have tested them first before trying something else.

So it seems that yes, you are right:

Forum on Trading, Automated Trading Systems and Testing Trading Strategies

Discussion of the article "Visualising trading strategy optimization in MetaTrader 5"

Dennis Kirichenko, 2018.02.25 22:10

I'm not a beginner. Tried from here. Nothing worked. I gave up, went about my business. Realised that it is extremely inconvenient to work with this library. A lot of versions, you can easily get confused...

Maybe my hands are crooked, I'm going to sprinkle them with holy water, it might help....