Errors, bugs, questions - page 2393

 
Dmitriy Burlachenko:

Hi all.

Trying to combine several text labels into one long string. For some reason in absence of ticks (day off), and in usual mode functionObjectGetInteger(0,name,OBJPROP_XSIZE) periodically (not always) returns 0 while "name" object exactly exists. In the tester, errors occur less frequently but they also occur.

The error code is 0 but the value is not acquired. Question for developers and experts. Why? What am I doing wrong or is this a bug?

The code of a test Expert Advisor is below


P.S. By the way, none of the developers have ever answered my previous question


Maybe the length of the name is too long?

 

Wanted to publish in KB indicator building custom charts, status"being checked by moderator",https://www.mql5.com/ru/code/24839/220196#!tab=code

indicator for MT4, uses tick emulation with

#import "user32.dll"
int RegisterWindowMessageW(string lpString);
#import

how to publish?

ZS: I can of course reduce the functionality, but I would not want to

 
Igor Makanu:

how to publish?

The answer is contained in the EA I posted in KB today. Don't know if MT4 has auto-check.

 
Vladislav Andruschenko:


maybe the length of the name is too long?

In the general task, I'm just assembling ("gluing") a long line of text from several tags, because there is a 63-character length limit on the tag. But it has nothing to do with label length. The label object, when created, will itself trim the text to maximum length and the function should return the width of the label in pixels. Since object is created and exists, function (according to documentation) should return its width in pixels, but returns 0 :( In attached example, very short three labels are glued, but still function periodically returns 0 :( Name length is also not great. As far as I remember, there's a limit of 64 characters there too.

 
fxsaber:

The answer is contained in the EA I posted in KB today. Don't know if MT4 has auto-check.

Thanks, tried it, it didn't work, posted a neutered version, so be it

 
Igor Makanu:

indicator for MT4, uses tick emulation with

You can use ChartSetSymbolPeriod with the current values for updating.

 
Andrey Khatimlianskii:

You can use ChartSetSymbolPeriod with current values for updating.

you can, that's how the custom chart is updated, but there will be no ticks for Expert Advisor, you can check with such Expert Advisor:

void OnTick()
  {
   Print("tick");
  }

without sending a message to the window

RegisterWindowMessageW("MetaTrader4_Internal_Message");

The code above will not tick, i.e., the code above will not "tick", but the chart will properly update and show bars.

 

There was an internet failure during optimisation, got errors

2019.03.01 07:37:57.954 Core 1  pass 2580 tested with error "some error after pass finished" in 0:00:00.000
2019.03.01 07:37:57.960 Core 1  pass 2581 tested with error "some error after pass finished" in 0:00:00.000
2019.03.01 07:37:57.966 Core 1  pass 2582 tested with error "some error after pass finished" in 0:00:00.016
2019.03.01 07:37:58.971 Core 1  pass 2583 tested with error "some error after pass finished" in 0:00:00.000
2019.03.01 07:37:59.976 Core 1  pass 2584 tested with error "some error after pass finished" in 0:00:00.016
2019.03.01 07:37:59.981 Core 1  pass 2585 tested with error "some error after pass finished" in 0:00:00.000
2019.03.01 07:38:00.985 Core 1  pass 2586 tested with error "some error after pass finished" in 0:00:00.000
2019.03.01 07:38:01.990 Core 1  pass 2587 tested with error "some error after pass finished" in 0:00:00.015
2019.03.01 07:38:01.995 Core 1  pass 2588 tested with error "some error after pass finished" in 0:00:00.000

What does this mean? Are the passes corrupted or will they automatically be sent back for optimisation?

I ran out of optimization, and the log shows this

2019.03.01 08:23:58.151 Tester  optimization finished, total passes 3010
2019.03.01 08:23:58.161 Statistics      optimization done in 22 hours 54 minutes 14 seconds
2019.03.01 08:23:58.161 Statistics      shortest pass 0:02:14.442, longest pass 1:03:37.844, average pass 0:12:32.903
2019.03.01 08:23:58.161 Statistics      local 1229 tasks (40%), remote 1781 tasks (59%), cloud 0 tasks (0%)
2019.03.01 08:23:58.161 Core 1  connection closed
...
2019.03.01 08:23:58.302 Tester  2580 new records saved to cache file 'tester\cache\Tree_Brut_v_02_03l.30.F46E9879A5535A9B0CF798F0187848FB.opt'

It turns out that only 2580 passes out of 3010 were processed? This is awful!

 

Hello!

The latest version(build 2007, 25 Feb 2019) has discovered two bugs:

1) 1) When opening the program (or changing the profile) many charts (41 in total) show an eternal "Waiting for update".

2) 2) When closing the program, it does not close completely, the task manager shows that the program is not closed, although visually it is no longer displayed.

3) Controversial bug (on the December 2018 version everything worked fine, no errors), maybe a bug in the indicator, when starting the program or changing the profile, the indicator is not calculated correctly, you can see from the rendered data that some of the data is not calculated correctly. When you reapply the template or open and close indicator properties, the data is correctly calculated.

4) For some reason agents stopped working in the cloud after the update (account is listed). Tests passed 586, time passed 0 hours 0 minutes.

 

Hello,

I have found a moment on the seller's side of the Market.

I noticed that after a payment for a product was cancelled (the buyer made a mistake - he has a different version of MetaTrader (4 instead of 5, or vice versa)) the sales statistics on the product page in the "Statistics" tab was not corrected. Nor have the overall product statistics from the "Seller" page been corrected (the payment has been accounted for as a sale despite the cancellation and is shown as earned funds, whereas the cancellation is accounted for and shown on the "Payments" page).

The cancellation happened today as well as the payment for the product.

I hope the information provided is up to date, thank you very much for your attention.

Reason: