Errors, bugs, questions - page 2560

 
Stanislav Korotky:

This works, of course, but over the top.

Another KB problem from recent times is that one cannot host mqh which does not compile.

I.e. mqh does not compile in ME, but mq5 with an inlude of this mqh does compile. Such libraries are now prohibited.

For example, this library cannot be placed by the new rules.

 
Stanislav Korotky:

I have seen what is suggested in the article. It certainly works, but through and through. Not a solution to a problem, but creating new ones (converting when preparing resources, bloating the source, keeping it up to date with the original resource, and leaving out the supposed dependency on the library, horrible in every sense).

The standard use of MQL, is it "in the same place"?

And pushing zips into kodobase, asking the user to edit the source, isn't that through the same place?

I proposed a standard supported method, without any dance with asking the user to edit the sources and download additional archives, and then unpack them in the right places. Isn't it through the same place?

And where do you see the dependence of one class on a library in the proposed method? It is a part of it. And with a little more knowledge than the basics, you can simply do it without turning your nose up at it. But it's better and more dignified to stick to an opinion about horrible and scary code and do no less stupid things - force users to do a bunch of extra stuff, while arrogantly talking about not "one place".

 
fxsaber:

Another KB problem from the recent past is that one cannot host mqh which does not compile.

I.e. mqh does not compile in ME, but mq5 with this mqh inlude does compile. Such libraries are now prohibited.

For example, this library cannot be placed by the new rules.

Why make an mqh that doesn't compile without mq5 ?

 

For the last few builds of MT5 the following problem has been encountered.

After next testing of the Expert Advisor, it suddenly starts informing that the account is netting, although in fact the account is hedging.

In particular, this code section in the Expert Advisor is triggered:

   ENUM_ACCOUNT_MARGIN_MODE  mm = (ENUM_ACCOUNT_MARGIN_MODE)AccountInfoInteger(ACCOUNT_MARGIN_MODE);
   if (mm != ACCOUNT_MARGIN_MODE_RETAIL_HEDGING)
   {
      string i_log = "The EA works only on accounts with hedging positions. It can't be used on your trading account";
      logs.Log(i_log);
      m_global_error = true;
      res = false;
   }

I cannot find the regularity of the error so far. It may occur at the moment of broker's trading session start.

Restarting the terminal helps.

 
Now MT5 has updated to 2143 again, although it was already updated to it at the weekend. It's the little things, but I can't open a new demo account from MQ - it's serious. I select MetaQuotes Software, press next button and nothing happens. Same thing with another MQ server.
 
Alexey Volchanskiy:
Now MT5 has updated to 2143 again, although I already updated to it over the weekend. It's the little things, but I can't open new demo account from MQ - it's serious. I select MetaQuotes Software, press next button and nothing happens. Same thing with another MQ server.

Last weekend was the same situation, work must have been

 
Maksim Emeliashin:

For the last few builds of MT5 the following problem has been encountered.

After next testing of the Expert Advisor, it suddenly starts informing that the account is netting, although in fact the account is hedging.

In particular, this code section in the Expert Advisor is triggered:

I cannot find the regularity of the error so far. It may occur at the moment of broker's trading session start.

Restarting the terminal helps.

Affirmative. I faced this error on Sunday long before the trades opened.

 

I couldn't find a topic with tests of simple operations/operators, last time I tested it I destroyed myth #1https://www.mql5.com/ru/forum/160683/page933#comment_12780905

I wanted to use case instead of if , but at the dawn of computer era I was convinced case was too long against if,

tested it, works the same way, you can use case for readability of code text:

2019.09.16 08:13:42.157 SpeedTst (EURUSD,H1) #1 : if

2019.09.16 08:15:30.640 SpeedTst (EURUSD,H1) if : loops=1215752192 ms=108469

2019.09.16 08:15:30.640 SpeedTst (EURUSD,H1) no2 : case

2019.09.16 08:17:19.134 SpeedTst (EURUSD,H1) if : loops=1215752192 ms=108515

2019.09.16 08:17:19.134 SpeedTst (EURUSD,H1) #3 : if

2019.09.16 08:19:07.662 SpeedTst (EURUSD,H1) if : loops=1215752192 ms=108516

2019.09.16 08:19:07.662 SpeedTst (EURUSD,H1) #4 : case

2019.09.16 08:20:56.122 SpeedTst (EURUSD,H1) if : loops=1215752192 ms=108453

2019.09.16 08:20:56.122 SpeedTst (EURUSD,H1) #5 : if

2019.09.16 08:22:44.570 SpeedTst (EURUSD,H1) if : loops=1215752192 ms=108469

2019.09.16 08:22:44.570 SpeedTst (EURUSD,H1) #6 : case

2019.09.16 08:24:33.023 SpeedTst (EURUSD,H1) if: loops=1215752192 ms=108437

Files:
SpeedTst.mq5  12 kb
 
Artyom Trishkin:

The standard use of MQL tools is "through and through" ?

Do you seriously not understand how much your solution loses out to the simple ability to add a zip with your own structure?
 
TheXpert:
Do you seriously not understand how much your solution loses out to the simple ability to add a zip with your own structure?

Of course he understands. But at the moment his solution works and the zips don't. So why the friction?