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

 
Anatoli Kazharski:

I need the latest version of the library.

I'm not a novice. Tried it from here. It didn't work. I gave up and went about my business. I realised that it's very 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....

EasyAndFastGUI - библиотека для создания графических интерфейсов
EasyAndFastGUI - библиотека для создания графических интерфейсов
  • votes: 20
  • 2018.01.18
  • Anatoli Kazharski
  • www.mql5.com
Библиотека EasyAndFastGUI дает возможность создавать графические интерфейсы для своих MQL-программ.
 
Dennis Kirichenko:

I'm not a beginner. Tried it from here. It didn't work. I gave up, went about my business. I realised that it's very inconvenient to work with this library. Lots of versions, you can easily get confused...

Maybe my hands are crooked, I'm going to sprinkle them with holy water and see if it helps....

The version is always the latest.

What exactly is inconvenient is also unclear. It's very convenient for me. I wrote the graphical interface for this application, and any other of my applications, very quickly. How to do it easily and quickly is also explained in detail. Therefore, it is definitely not the library.

It is difficult to say why you cannot reproduce the result from the article. The presented result is not drawn in Photoshop. Besides, you didn't specify what exactly is not rendered. The whole GUI is not rendered? The results on the charts are not drawn? It's not clear.

Try completely uninstalling a bunch of versions you're confused about and download the latest version. Not automatically replace the files in the directories, but exactly delete and put the latest files in.

 
Anatoli Kazharski:

The version is always the same - the latest version.

What exactly is inconvenient is also unclear. I find it very convenient. I wrote the graphical interface for this application, and any other of my applications, very quickly. How to do it easily and quickly is also explained in detail. That's why it's definitely not about the library.

It is difficult to say why you cannot reproduce the result from the article. The presented result is not drawn in Photoshop. Besides, you didn't specify what exactly is not rendered. The whole GUI is not rendered? The results on the charts are not drawn? It's not clear.

Try completely uninstalling a bunch of versions you're confused about and downloading the latest version. Not automatically replace files in directories, but exactly delete and put the latest files in.

+++. Cool library!
 

Anatoly, of course it is convenient for you, you are a developer :-))).

I will try to speak without emotions, as an ordinary user, which I am.

The library is relatively large. Where in the source code can you see its version? And where is the guarantee that the right file is used? In general, imho, there is not enough explanatory readme.txt in the library folder.

I uninstalled all the files and updated.

I ran the MovingAverageWithFrames Expert Advisor in the optimisation mode and got this in the Terminal Log:

KR      0       12:44:52.304    MacdSampleWithFrames (EURUSD,H1)        CElement::CreateCanvas > Не удалось присоединить холст для рисования к графику: 4016
NP      0       12:44:52.306    MacdSampleWithFrames (EURUSD,H1)        CProgram::OnTesterInitEvent > Could not create the GUI!
DF      2       12:44:58.926    MacdSampleWithFrames (EURUSD,H1)        invalid pointer access in 'FrameGenerator.mqh' (304,18)

Apparently, there is a problem with creating a canvas for GUI.

On the chart it looks like this: the Expert Advisor tries to load the GUI and then falls off the chart. Curiously, the optimisation continues. It is easy to notice that the comment line and a red square with an unfilled background remain on the chart.


MovingAverageWithFrames

 
Dennis Kirichenko:

the comment line and a red square with an unfilled background remain on the graph.

Absence of a graphic resource.

 
Dennis Kirichenko:

...

I ran the MovingAverageWithFrames Expert Advisor in the optimisation mode and got the following in the Terminal Log:

Apparently, there is a problem with creating a canvas for GUI.

...

It makes more sense now. But I can't answer the question why this happens.

Some problem is in this method of the CCanvas class from the standard library:

//+------------------------------------------------------------------+
//| Attach new object with bitmap resource |
//+------------------------------------------------------------------+
bool CCanvas::Attach(const long chart_id,const string objname,ENUM_COLOR_FORMAT clrfmt=COLOR_FORMAT_XRGB_NOALPHA)
  {
   if(OBJ_BITMAP_LABEL==ObjectGetInteger(chart_id,objname,OBJPROP_TYPE))
     {
      string rcname=ObjectGetString(chart_id,objname,OBJPROP_BMPFILE);
      rcname=StringSubstr(rcname,StringFind(rcname,"::"));
      if(ResourceReadImage(rcname,m_pixels,m_width,m_height))
        {
         m_objname=objname;
         m_rcname=rcname;
         m_format=clrfmt;
         m_objtype=OBJ_BITMAP_LABEL;
         //--- success
         return(true);
        }
     }
//--- failed
   return(false);
  }

//---

And it is unclear why the problem appears for some users and not for others.

Have you made any changes to this class?

 
fxsaber:

Lack of graphic resource.

@Dennis Kirichenko Did you unpack pictures from EasyAndFastGUI.zip archive by yourself ? I had to attach all pictures as a ZIP-file, there is no other option at the moment.


 
Rashid Umarov:

@Dennis Kirichenko Did you unpack the pictures from the EasyAndFastGUI.zip archive by yourself ? I had to attach all pictures as a ZIP-file, there is no other option at the moment.

...

By the way, yes, it is possible that this is the problem. )

 
Anatoli Kazharski:

By the way, yes, that may be the problem. )

We need to reflect that in the description. One line

 
Rashid Umarov:

You need to reflect that in the description. One line

Added it to the description and sent it for review.