Discussion of article "Graphical Interfaces X: Updates for the Rendered table and code optimization (build 10)"
...
Perhaps this global redistribution will be gradual, from article to article, rather than revolutionary as I had imagined.
...
@Anatoli Kazharski I would like to clarify, what is the code optimisation? I ask because compilation with connected libraries sometimes takes up to 20 seconds. Or should it be so?
In your case, while developing your MQL-application, set the Optimize parameter in the"MetaTrader 5/Config/metaeditor.ini" file to zero, as shown below:
[Experts]
Author=Copyright 2015, MetaQuotes Software Corp.
Address=http://www.mql5.com
Optimize=0
...
//---
Then everything will compile quickly:
//---
That's not what the article meant. In some cases, it means increasing performance, and in some cases it means partial universalisation (packing repetitive code fragments into separate methods and placing them into a separate class).
For some reason, none of the Article 10 Expert Advisors stays on the chart, and after a few seconds, having shown only the shape, it is removed from the chart by itself. In the log it says "2017.03.06 08:40:45.467 TestLibrary10 (SBER,D1) CWndEvents::CheckExpertSubwindowNumber > Deleting the Expert subwindow causes the Expert to be deleted!" and further "2017.03.06 08:40:45.467 TestLibrary10 (SBER,D1) ExpertRemove() function called" . What is the reason?
I have checked again all possible situations (that I know of) when this could happen, but failed to reproduce it.
Do both test Expert Advisors from the article show this behaviour or only TestLibrary10 ? What do the test experts from other articles show ?
I have checked again all possible situations (that I know of) when this could happen, but failed to reproduce it.
Do both test experts from the article show this behaviour or only TestLibrary10 ? And the test Expert Advisors from other articles, what do they show ?
All the EAs from the Article 10 folder show this behaviour, i.e. from TestLibrary7 to TestLibrary10.
This behaviour is shown by all EAs from the Article 10 folder i.e. from TestLibrary7 to TestLibrary10.
Reproduced. The problem occurs when the chart has indicators in subwindows. There was no such behaviour before. I will look into it. Thanks for the message.
When I commented in the MainWindow.mqh file of the TestLibrary07 Expert Advisor 2 lines 22 and 23 //m_window.AutoXResizeMode(true); and //m_window.AutoYResizeMode(true); then this Expert Advisor started working normally for some reason.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Graphical Interfaces X: Updates for the Rendered table and code optimization (build 10) has been published:
We continue to complement the Rendered table (CCanvasTable) with new features. The table will now have: highlighting of the rows when hovered; ability to add an array of icons for each cell and a method for switching them; ability to set or modify the cell text during the runtime, and more.
Below is the result of the work done:
Fig. 3. Demonstration of new features of the rendered table.
Author: Anatoli Kazharski