You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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
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:
2nd problem:
3rd problem:
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.
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.
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:
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
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