MetaTrader 4 platform beta build 1145 - page 2

 
Alain Verleyen:
There is no more Service Desk, except for Financial operations.

Hopefully the developers will pick up issues from this forum post

 
James Cater: Hopefully the developers will pick up issues from this forum post

The developers and/or admin give more attention to the equivalent thread on the Russian forum and tend to ignore the threads on the other languages.

So try posting there in both English and Russian (use Google translate or equivalent) in order to be noticed and obtain a response from them.

 
James Cater:

Hopefully the developers will pick up issues from this forum post

I am afraid you will have to prove them the problem doesn't rely in your code.
 
Alain Verleyen:
I am afraid you will have to prove them the problem doesn't rely in your code.

The code hasn't changed. Same binaries that are available on the Market place.

    36 charts now uses 4x the memory

Recompile on build 1145 does not fix this and no memory leak warnings either

Easy workaround, just don't use so many charts, however it's a serious issue that they should take note of


In the mean time I will try to write a test case to recreate the issue

 
James Cater:

The code hasn't changed. Same binaries that are available on the Market place.

    36 charts now uses 4x the memory

Recompile on build 1145 does not fix this and no memory leak warnings either

Easy workaround, just don't use so many charts, however it's a serious issue that they should take note of


In the mean time I will try to write a test case to recreate the issue

James if you want Metaquotes to hear you, you will need to prove them the issue relies on MT4 and not your code, unless the problem is obvious which doesn't seem to be the case. I know this by experience and it's understandable.

Please note I am not saying you are wrong, but even if your code doesn't change, the problem can still relies in your code. For example imagine they fixed or changed something in mql4 which your code doesn't expect, you had no bug and now you have one. I know in theory this should not happen, but in practice it happens, believe me. It's not easy to accept you have to invest time for other people errors, but there is no other way.

Did you ever try build 1126/1127 ? They were available for months and were very stable from my experience, fixing some MT4 crashes I reported for example. Could be interesting to know if it's something specific to 1145 or not.

Suggestion : compile with older build and run on newer one, it could give you some clues if the problem is on MT4 or the compiler.

 

Apologies are in order, looks like this is a simple data volume issue.

I did some more testing and realised that the MetaQuotes Demo server has 10x the history of my other Broker test instance

I reverted our MetaQuotes Demo terminal back to 4.00 build 1090 and it used similar memory

Again, sorry for the mistake

 
Alain Verleyen:

I have a very strange problem with build 1090 (no problem with build 1127).

I have a template, saved with an EA running on it (Moving Average EA), which doesn't apply correctly when applied to a chart with ChartApplyTemplate. When this same template is applied through MT4 GUI, it applies fine.

An while checking I discovered that a copy of this exact same template is applying fine by code and by hand ! Problematic template is "MMEA_131861550753490699.tpl", renamed to "MovingAverageEA_Template.tpl". They are attached.

I also attached a small script to attach the template to a chart by code. The templates needs to be placed in MQL4\Files, then just run the script on a chart.

  • Log for "wrong" template, attached by script : ChartApplyTemplate() returns true, but the EA doesn't start.

2018.11.09 09:23:09.885    Script Tests\ApplyATemplate EURUSD,H1: loaded successfully
2018.11.09 09:23:14.144    ApplyATemplate EURUSD,H1 inputs: templatename=MMEA_131861550753490699.tpl;
2018.11.09 09:23:14.182    ApplyATemplate EURUSD,H1: initialized
2018.11.09 09:23:14.182    ApplyATemplate EURUSD,H1: MT4 Build 1090
2018.11.09 09:23:14.182    ApplyATemplate EURUSD,H1: C:\Users\Utilisateur\AppData\Roaming\MetaQuotes\Terminal\3CA09877C4FA90C7D53F8BB86467DA4A
2018.11.09 09:23:14.182    ApplyATemplate EURUSD,H1: Template MMEA_131861550753490699.tpl sent to queue 131862469876790616.
2018.11.09 09:23:14.182    ApplyATemplate EURUSD,H1: uninit reason 0
2018.11.09 09:23:14.182    Script ApplyATemplate EURUSD,H1: removed

  • Log for "good" template (which is actually the same but renamed) : the EA is running now !

2018.11.09 09:25:21.613    Script Tests\ApplyATemplate EURUSD,H1: loaded successfully
2018.11.09 09:25:23.108    ApplyATemplate EURUSD,H1 inputs: templatename=MovingAverageEA_Template.tpl;
2018.11.09 09:25:23.146    ApplyATemplate EURUSD,H1: initialized
2018.11.09 09:25:23.146    ApplyATemplate EURUSD,H1: MT4 Build 1090
2018.11.09 09:25:23.146    ApplyATemplate EURUSD,H1: C:\Users\Utilisateur\AppData\Roaming\MetaQuotes\Terminal\3CA09877C4FA90C7D53F8BB86467DA4A
2018.11.09 09:25:23.162    ApplyATemplate EURUSD,H1: Template MovingAverageEA_Template.tpl sent to queue 131862469876790616.
2018.11.09 09:25:23.162    ApplyATemplate EURUSD,H1: uninit reason 0
2018.11.09 09:25:23.162    Script ApplyATemplate EURUSD,H1: removed
2018.11.09 09:25:23.209    Expert Moving Average EURUSD,H1: loaded successfully
2018.11.09 09:25:23.209    Moving Average EURUSD,H1 inputs: Lots=1.0; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;
2018.11.09 09:25:23.240    Moving Average EURUSD,H1: initialized

What is even more strange is a customer reported me it works on his side with build 1090. Can't find any logic. (I also tried with and without portable mode, and on several MT4 platforms).

If someone can try and report the results, I would appreciate.

I'm using Build 1090 in portable mode and it works fine.

2018.11.12 12:00:11.394    Script ApplyATemplate EURUSD,M5: loaded successfully
2018.11.12 12:00:13.012    ApplyATemplate EURUSD,M5 inputs: templatename=MovingAverageEA_Template.tpl;
2018.11.12 12:00:13.020    ApplyATemplate EURUSD,M5: initialized
2018.11.12 12:00:13.020    ApplyATemplate EURUSD,M5: MT4 Build 1090
2018.11.12 12:00:13.020    ApplyATemplate EURUSD,M5: T:\03-JFD\MT4-Entw
2018.11.12 12:00:13.024    ApplyATemplate EURUSD,M5: Template MovingAverageEA_Template.tpl sent to queue 130373081285625015.
2018.11.12 12:00:13.024    ApplyATemplate EURUSD,M5: uninit reason 0
2018.11.12 12:00:13.025    Script ApplyATemplate EURUSD,M5: removed
2018.11.12 12:00:13.025    Moving Average EURUSD,M5: uninit reason 7
2018.11.12 12:00:13.028    Expert Moving Average EURUSD,M5: removed
2018.11.12 12:00:13.046    Expert Moving Average EURUSD,M5: loaded successfully
2018.11.12 12:00:13.046    Moving Average EURUSD,M5 inputs: Lots=1.0; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;
2018.11.12 12:00:13.056    Moving Average EURUSD,M5: initialized

 
Tilo Reyer:

I'm using Build 1090 in portable mode and it works fine.

2018.11.12 12:00:11.394    Script ApplyATemplate EURUSD,M5: loaded successfully
2018.11.12 12:00:13.012    ApplyATemplate EURUSD,M5 inputs: templatename=MovingAverageEA_Template.tpl;
2018.11.12 12:00:13.020    ApplyATemplate EURUSD,M5: initialized
2018.11.12 12:00:13.020    ApplyATemplate EURUSD,M5: MT4 Build 1090
2018.11.12 12:00:13.020    ApplyATemplate EURUSD,M5: T:\03-JFD\MT4-Entw
2018.11.12 12:00:13.024    ApplyATemplate EURUSD,M5: Template MovingAverageEA_Template.tpl sent to queue 130373081285625015.
2018.11.12 12:00:13.024    ApplyATemplate EURUSD,M5: uninit reason 0
2018.11.12 12:00:13.025    Script ApplyATemplate EURUSD,M5: removed
2018.11.12 12:00:13.025    Moving Average EURUSD,M5: uninit reason 7
2018.11.12 12:00:13.028    Expert Moving Average EURUSD,M5: removed
2018.11.12 12:00:13.046    Expert Moving Average EURUSD,M5: loaded successfully
2018.11.12 12:00:13.046    Moving Average EURUSD,M5 inputs: Lots=1.0; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;
2018.11.12 12:00:13.056    Moving Average EURUSD,M5: initialized

Thanks for testing. So it confirms the "weirdness".

Seems you are using portable mode, right ?

EDIT: I see you tried MovingAverageEA_Template.tpl which is also working for me, while it's MMEA_131861550753490699.tpl which should be tried (not working). My fault as I set the wrong default filename in the script. Update attached.

Files:
 
Alain Verleyen:

I have a very strange problem with build 1090 (no problem with build 1127).

I have a template, saved with an EA running on it (Moving Average EA), which doesn't apply correctly when applied to a chart with ChartApplyTemplate. When this same template is applied through MT4 GUI, it applies fine.

An while checking I discovered that a copy of this exact same template is applying fine by code and by hand ! Problematic template is "MMEA_131861550753490699.tpl", renamed to "MovingAverageEA_Template.tpl". They are attached.

I also attached a small script to attach the template to a chart by code. The templates needs to be placed in MQL4\Files, then just run the script on a chart.

  • Log for "wrong" template, attached by script : ChartApplyTemplate() returns true, but the EA doesn't start.

2018.11.09 09:23:09.885    Script Tests\ApplyATemplate EURUSD,H1: loaded successfully
2018.11.09 09:23:14.144    ApplyATemplate EURUSD,H1 inputs: templatename=MMEA_131861550753490699.tpl;
2018.11.09 09:23:14.182    ApplyATemplate EURUSD,H1: initialized
2018.11.09 09:23:14.182    ApplyATemplate EURUSD,H1: MT4 Build 1090
2018.11.09 09:23:14.182    ApplyATemplate EURUSD,H1: C:\Users\Utilisateur\AppData\Roaming\MetaQuotes\Terminal\3CA09877C4FA90C7D53F8BB86467DA4A
2018.11.09 09:23:14.182    ApplyATemplate EURUSD,H1: Template MMEA_131861550753490699.tpl sent to queue 131862469876790616.
2018.11.09 09:23:14.182    ApplyATemplate EURUSD,H1: uninit reason 0
2018.11.09 09:23:14.182    Script ApplyATemplate EURUSD,H1: removed

  • Log for "good" template (which is actually the same but renamed) : the EA is running now !

2018.11.09 09:25:21.613    Script Tests\ApplyATemplate EURUSD,H1: loaded successfully
2018.11.09 09:25:23.108    ApplyATemplate EURUSD,H1 inputs: templatename=MovingAverageEA_Template.tpl;
2018.11.09 09:25:23.146    ApplyATemplate EURUSD,H1: initialized
2018.11.09 09:25:23.146    ApplyATemplate EURUSD,H1: MT4 Build 1090
2018.11.09 09:25:23.146    ApplyATemplate EURUSD,H1: C:\Users\Utilisateur\AppData\Roaming\MetaQuotes\Terminal\3CA09877C4FA90C7D53F8BB86467DA4A
2018.11.09 09:25:23.162    ApplyATemplate EURUSD,H1: Template MovingAverageEA_Template.tpl sent to queue 131862469876790616.
2018.11.09 09:25:23.162    ApplyATemplate EURUSD,H1: uninit reason 0
2018.11.09 09:25:23.162    Script ApplyATemplate EURUSD,H1: removed
2018.11.09 09:25:23.209    Expert Moving Average EURUSD,H1: loaded successfully
2018.11.09 09:25:23.209    Moving Average EURUSD,H1 inputs: Lots=1.0; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;
2018.11.09 09:25:23.240    Moving Average EURUSD,H1: initialized

What is even more strange is a customer reported me it works on his side with build 1090. Can't find any logic. (I also tried with and without portable mode, and on several MT4 platforms).

If someone can try and report the results, I would appreciate.

Just tested with the same terminal updated to build 1146. Same problem, so it's not fixed in most recent build.
Reason: