MetaTrader 4 Build 574 with Updated MQL4 Language and Market of Applications Released - page 18

 
sigrisr_j:

Hi,

Has someone succeded in using the new "custom" optimisation criteria with OnTester() method ?

Seems to return always 0 for me.

Thanks.

Can you show the code of your attempt ?
 
angevoyageur:
Can you show the code of your attempt ?


double OnTester()
{
         double param = 0;

         param = TesterStatistics(STAT_SHARPE_RATIO);

         
         return param;
}
 

Signal tab can't display (at least) Cyrilic character - I supposed that tab doesn't support unicode.

Windows title still showing different broker, e.g. I'm using Alpari NZ and it still showing Alpari NZ even though I change broker to IC Markets.


Please add OrderSendAsync and more buffers to CI.


 

Found a bug in Build 577 that I can reproduce each time.

Open an EA in the Strategy Tester, set it´s properties, run a backtest. All fine...

Now open the EA properties again, save the settings to a SET file, reload the settings again and run the backtest again. Voila, the EA now trades totally strange and crashes (in terms of loosing the complete account).

Now don´t touch anything and just simply close and re-open MT4 Terminal, run the backtest and and it works fine again without doing anything to the EA properties before running the new backtest.

 

I was able to pinpoint the bug. If I backtest my EA several times in a row, out of sudden a variable that has a declaration of "4" (fixed) in the EA header, jumps to 0. Figured this out via the Print command.


The input section looks like this (part of it):


int NumberOfActiveStrategies = 4;
extern int MaxTrades = 1;

extern double TradesMinPipsDistance = 0;


You see, "NumberOfActiveStrategies" is a fixed value of 4, that can´t be changed externally. Now when running the backtest the first few times and printing the "NumberOfActiveStrategies" variable the output is:


2014.01.27 00:18:10.579 2013.05.16 05:05 Blahdelete EURUSD.i,M5: 4
2014.01.27 00:18:10.579 2013.05.16 05:00 Blahdelete EURUSD.i,M5: 4
2014.01.27 00:18:10.579 2013.05.16 04:55 Blahdelete EURUSD.i,M5: 4
2014.01.27 00:18:10.579 2013.05.16 04:50 Blahdelete EURUSD.i,M5: 4

...........


Now after a few backtests, just by pressing "Start" and not doing ANYTHING else inbetween, the output suddenly becomes:


2014.01.27 00:18:10.998 2013.03.26 03:50 Blahdelete EURUSD.i,M5: 0
2014.01.27 00:18:10.998 2013.03.26 03:50 Blahdelete EURUSD.i,M5: 0
2014.01.27 00:18:10.998 2013.03.26 03:45 Blahdelete EURUSD.i,M5: 0
2014.01.27 00:18:10.998 2013.03.26 03:45 Blahdelete EURUSD.i,M5: 0

..............


So the "NumberOfActiveStrategies" suddenly becomes 0. Restarting the Terminal or recompiling the code, again without doing anything else inbetween and then just pressing "Start" again for the backtest fixes the issue for the next few runs until it turns to 0 again.


Very strange bug, hope that can be fixed. And of course it all works fine with build 509.

 

Hello,

Can i run in previous versions the EX4 files that created with new build 574?

If I can't do that can I use new version on a Real broker?

Thanks.

 
chronisb:

Hello,

Can i run in previous versions the EX4 files that created with new build 574?

No, .ex4 files created in MetaEditor 5.0 cannot be run in MT4 build 509 or earlier.


If I can't do that can I use new version on a Real broker?

Not yet, should be 3rd of Feb.
 
RaptorUK:
No, .ex4 files created in MetaEditor 5.0 cannot be run in MT4 build 509 or earlier.

Not yet, should be 3rd of Feb.


What's in Feb 3rd ?


 
onewithzachy:

What's in Feb 3rd ?




+++!!!
 
onewithzachy:

What's in Feb 3rd ?


All I know/read is that flash banner on top of this forum about MT4 market.

Anything else beside that ?


Reason: