MetaTrader 4 Platform update build 1330 - page 2

 
HuyTitan:

I have found some bug.

 Value is printed equal 0.

It's because you divided integer by integer. The output will give you a nearest integer number which in this case is 0.

I have the same problem before when I divided 20 by 3 and the output is 6.

If you want to store double value, you should divided by double number, for example 20/3.0 = 6.666666666666667, instead of 20/3 = 6

 

MT4 AccountFreeMarginCheck function IS WRONG


I tried to verify if the account have enough money to put an order... In theory, to solve this, could be useful the AccountFreeMarginCheck.... This function (in therory) returns the free margin AFTER is opened that (theorical) position... So, the ammount returned must be LOWER than the balance (balance - cost of position while opened (margin, spread, etc.))...

I started testing with 0.01 lots and up, and this "thing" returns values GREATER than the balance...!!!

--------------------------------------------------

StopOut: 25 FreeMarginCheck: 1478675.0 FreeMargin: 50000.0 StopoOutMode: 0 Balance: 50000.0
Verificando para: 1000.0 Lotes:
StopOut: 25 FreeMarginCheck: 192867.5 FreeMargin: 50000.0 StopoOutMode: 0 Balance: 50000.0
Verificando para: 100.0 Lotes:
MP_Panel_Calc_Niveles US30,M1: StopOut: 25 FreeMarginCheck: 64286.75 FreeMargin: 50000.0 StopoOutMode: 0 Balance: 50000.0
Verificando para: 10.0 Lotes:
StopOut: 25 FreeMarginCheck: 51428.675 FreeMargin: 50000.0 StopoOutMode: 0 Balance: 50000.0
Verificando para: 1.0 Lotes:
StopOut: 25 FreeMarginCheck: 50142.8675 FreeMargin: 50000.0 StopoOutMode: 0 Balance: 50000.0
Verificando para: 0.1 Lotes:
StopOut: 25 FreeMarginCheck: 50014.28675 FreeMargin: 50000.0 StopoOutMode: 0 Balance: 50000.0
Verificando para: 0.01 Lotes:
-----------------------------------------------------

https://www.mql5.com/en/forum/365387

MT4 AccountFreeMarginCheck function IS WRONG
MT4 AccountFreeMarginCheck function IS WRONG
  • 2021.03.21
  • www.mql5.com
I tried to verify if the account have enough money to put an order... In theory, to solve this, could be useful the AccountFreeMarginCheck...
 
Wayside48:

I have no such DLL in my folder, but the editor won't run either by using F4 or double clicking metaeditor.exe.  However, it works fine on my tablet on build 1330, but that does not have Tick Data Suite.  I've raised a support request with TDS just in case.

Following a response from TDS (more than we've had from Metaquotes!) I stopped the TDS service and tested again but still I cannot backtest Market EAs (Global Initialization Failed) and cannot run the Editor either by using F4, clicking "modify Expert" or by double-clicking Metaeditor.exe.

 

I have seen the update prior to this as well as the latest update on my portable copies of Metatrader 4, where strange things happen anyways like how terminal stops printing -- things unlike a standard installation.

1st problem: 

I got two platforms(1326) open as portable on a VPS: both restarted with live-update but only one updated(1330). Upon restarting the one platform it was up-to-date.

2nd problem:

Both platforms are connected to chat and both received the following error when I sent a message to a friend from the website:

2021.03.22 10:14:08.743 MQL5.chats: processing message failed, cmd:41, request_id:0, size: 96

2021.03.22 10:14:08.743 MQL5.chats: unknown message 41, 0, message ignored

3rd problem: 

My EA from the market was running and enabled on six charts in total which after live-update(1330) only 3-4 would be running of the same EA unloaded - the developer doesn't understand it.

It doesn't happen if I manually closed the platform and reopened it and so it's not possible for me to reproduce however upon last update it's the same situation.

Now I notice(1326 & 1330) for sure that the live-update does the same thing to 6 open charts with expert advisors enabled for live trading when there is a live-update.


 

So, still no response from Metaquotes on any of these issues (we'll ignore the integer divide non-problem).

It seems to me that the best thing they could do is to revert this "stability improvement and bug fix" update until they've tested it properly.  Apparently build 1330 was never released to their test environment before being released to the public - the last build on the test environment on Friday at the time they released build 1330 was build 1326.

 
Wayside48:

So, still no response from Metaquotes on any of these issues (we'll ignore the integer divide non-problem).

It seems to me that the best thing they could do is to revert this "stability improvement and bug fix" update until they've tested it properly.  Apparently build 1330 was never released to their test environment before being released to the public - the last build on the test environment on Friday at the time they released build 1330 was build 1326.

As far as I know (it is about how the service desk works):

Any possible bug should be reproduced. It should be enough technical details to reproduce the possible technical bug, and it is responsibility of the users to provide as many technical details as possible for this reproducing.
If the bug can not be reproduced so the request about "bug fixing" is ignored.

----------------

For example, I have no issue with MetaEditor with this new MT4 build.

 
Sergey Golubev:

As far as I know (it is about how the service desk works):

Any possible bug should be reproduced. It should be enough technical details to reproduce the possible technical bug, and it is responsibility of the users to provide as many technical details as possible for this reproducing.
If the bug can not be reproduced so the request about "bug fixing" is ignored.

----------------

For example, I have no issue with MetaEditor with this new MT4 build.

Well lucky old you!  I'll just stick to build 1320 then, otherwise I can't use the editor or backtest Market EAs.  I guess the only missing bit of relevant 'technical' information I haven't provided so far is...

OS: Windows 10 Pro V10.0.19042

 

Access violation with native code when resizing the array or copying to the array in build 1330:

#property strict
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
{
   char m_buffer[255];
   ArrayInitialize(m_buffer, 'H');
   char result[];
   int response_size=0;
   int bytes_read=255;
   for(int i=1; i<5000; i++)
   {
      if(ArrayResize(result,response_size+bytes_read)==response_size+bytes_read &&
            ArrayCopy(result,m_buffer,response_size,0,bytes_read)==bytes_read)
      {
         response_size+=bytes_read;
         Print(IntegerToString(response_size)+" bytes read.");
      }
   }
}

0 16:12:49.129 Script _ Test\test-ArrayResize BRENT,Daily: loaded successfully
0 16:12:49.145 test-ArrayResize BRENT,Daily: initialized
0 16:12:49.145 test-ArrayResize BRENT,Daily: 255 bytes read.
0 16:12:49.145 test-ArrayResize BRENT,Daily: 510 bytes read.
.
.
.
0 16:12:49.276 test-ArrayResize BRENT,Daily: 1048305 bytes read.
0 16:12:49.276 test-ArrayResize BRENT,Daily: 1048560 bytes read.
1 16:12:49.276 Access violation write to 0x4848484C in 'C:\Users\...\AppData\Roaming\MetaQuotes\Terminal\...\MQL4\Scripts\_ Test\test-ArrayResize.ex4'
0 16:12:49.276 test-ArrayResize BRENT,Daily: uninit reason 0
0 16:12:49.276 Script test-ArrayResize BRENT,Daily: removed

 
The issue can be reproduced, I have tested it in different PC and got the same result, if anyone knows Russian, please report this issue to Russian forum, so it gets attention for next release.
Thanks

https://www.mql5.com/en/forum/365110/page2#comment_21503031
MetaTrader 4 Platform update build 1330
MetaTrader 4 Platform update build 1330
  • 2021.03.21
  • www.mql5.com
The MetaTrader 4 platform update will be released on Friday, March 19, 2021. This version provides error fixes and platform stability improvements...
 
Mohammad Hossein Sadeghi:

Access violation with native code when resizing the array or copying to the array in build 1330:

0 16:12:49.129 Script _ Test\test-ArrayResize BRENT,Daily: loaded successfully
0 16:12:49.145 test-ArrayResize BRENT,Daily: initialized
0 16:12:49.145 test-ArrayResize BRENT,Daily: 255 bytes read.
0 16:12:49.145 test-ArrayResize BRENT,Daily: 510 bytes read.
.
.
.
0 16:12:49.276 test-ArrayResize BRENT,Daily: 1048305 bytes read.
0 16:12:49.276 test-ArrayResize BRENT,Daily: 1048560 bytes read.
1 16:12:49.276 Access violation write to 0x4848484C in 'C:\Users\...\AppData\Roaming\MetaQuotes\Terminal\...\MQL4\Scripts\_ Test\test-ArrayResize.ex4'
0 16:12:49.276 test-ArrayResize BRENT,Daily: uninit reason 0
0 16:12:49.276 Script test-ArrayResize BRENT,Daily: removed

I confirm it. Reported on Russian forum.
Новая версия платформы MetaTrader 4 build 1330
Новая версия платформы MetaTrader 4 build 1330
  • 2021.03.17
  • www.mql5.com
В пятницу 19 марта 2021 года будет выпущено обновление MetaTrader 4. В нем исправлен ряд ошибок и повышена стабильность работы платформы...