running multiple sequential tests - page 2

 
RaptorUK:

The MT5 Help that comes as part of MT5 tells you all you need to know, have you looked at it ?  have you pressed F1 while in MT5 ?

 

Input parameters from a file specified in ExpertParameters are used for testing/optimization of an Expert Advisor.

·If that setting is absent, parameters from an EA_name.set file located in the terminal_folder/tester/ directory are used for testing/optimization of an Expert Advisor. In such a file the last specified set of input parameters of an Expert Advisor is stored.

·If there is no such file, then the default parameters specified in the code of the Expert Advisor will be used for testing. Optimization will be impossible.

·In order to create or change a set of parameters, you should select an Expert Advisor at the "Settings" tab of the strategy tester and specify necessary input parameters and ranges of their variation at the corresponding tab. 

found finally

 .set files are not in programfiles/metatrader5/terminal/tester...

but in  appData/roaming/metaquotes/terminal/F792711EEED0C4A88615E52DD459D4CC/tester 

don't know why but at least now I know

thanks a lot 

 
michelino:

found finally.

 .set files are not in programfiles/metatrader5/terminal/tester...

but in  appData/roaming/metaquotes/terminal/F792711EEED0C4A88615E52DD459D4CC/tester 

don't know why but at least now I know

thanks a lot 

Here to know why.
 

it doesn't work and gives no errors:

the terminal starts, logs in, but no optimization begins

here the .bat file

"C:\Program Files\MetaTrader 5 - Alpari\terminal64.exe" /config:C:\Users\mike\Desktop\mt5terminal\mt5_test_config_1.ini
"C:\Program Files\MetaTrader 5 - Alpari\terminal64.exe" /config:C:\Users\mike\Desktop\mt5terminal\mt5_test_config_2.ini

 and this is one of the two .ini (the difference is only the symbol)

[Common]
Login=2007...
Password=.....
ProxyEnable=0
ProxyType=0
ProxyAddress=0
ProxyLogin=10
ProxyPassword=10
KeepPrivate=1
NewsEnable=1
CertInstall=1
 
[Charts]
ProfileLast=Euro
MaxBars=500000
PrintColor=0
SaveDeleted=1
 
[Experts]
AllowLiveTrading=1
AllowDllImport=1
Enabled=1
Account=1
Profile=1
 
[Objects]
ShowPropertiesOnCreate=0
SelectOneClick=0
MagnetSens=10
 
;+------------------------------------------------------------------------------
;| Start testing or optimization of the specified Expert Advisor                |
;+------------------------------------------------------------------------------
[Tester]
;--- The EA is located in terminal_data_directory\MQL5\Experts\Examples\Moving Average
Expert=\MA_Delta
;--- The EA start parameters are located in terminal_data_folder\MQL5\Presets\
ExpertParameters=MA_Delta_tst.set
;--- The symbol for testing/optimization
Symbol=EURJPY
;--- The timeframe for testing/optimization
Period=H1
;--- Initial deposit
Deposit=100000
;--- Leverage for testing
Leverage=1:100
;--- The "1 minute OHLC" mode
Model=1
;--- Execution of trade orders with a random delay
ExecutionMode=1
;--- Genetic optimization This is what triggers the error if it is set to anthing but 0
Optimization=1
;--- Optimization criterion - Maximum balance drawdown value
OptimizationCriterion=0
;--- Start and end dates of the testing range
FromDate=2013.03.20
ToDate=2013.08.13
;--- Custom mode of forward testing
ForwardMode=0
;--- Start date of forward testing
ForwardDate=2011.03.01
;--- A file with a report will be saved in terminal_installation_folder
Report=opti-eurjpy
;--- If the specified report already exists, it will be overwritten
ReplaceReport=1
;--- Set automatic terminal shutdown upon completion of testing/optimization
ShutdownTerminal=0

 do you have any clue? 

 
michelino:

it doesn't work and gives no errors:

the terminal starts, logs in, but no optimization begins

here the .bat file

 and this is one of the two .ini (the difference is only the symbol)

 do you have any clue? 

See if anything in this thread helps:  https://www.mql5.com/en/forum/11351
OnTesterInit issues and the command line
OnTesterInit issues and the command line
  • www.mql5.com
I get this error when loading metatrader from the command line with a config.
 
RaptorUK:
See if anything in this thread helps:  https://www.mql5.com/en/forum/11351

unfortunately it doesn't help. the guy had an error when launching from terminal while I'm not getting any errors so I don't know what could be wrong. mt5 starts but no optimization starts, so it could be because it doesn't find the EA or the .set file, I've tried to cope these files in many places.

documentation says that .set file have to be in tester/Presets

I created /Presets in both the following paths:

programfiles/metatrader5/terminal/tester...

 appData/roaming/metaquotes/terminal/F792711EEED0C4A88615E52DD459D4CC/tester 

and copied .set files then I copied it in /termina and /MQL5

but the effect is the same no errors no other messages it simply doesn't starts

how can I debug it? is there any way to get the status of the terminal while interpreting the .ini file?  

 
michelino:

unfortunately it doesn't help. the guy had an error when launching from terminal while I'm not getting any errors so I don't know what could be wrong. mt5 starts but no optimization starts, so it could be because it doesn't find the EA or the .set file, I've tried to cope these files in many places.

documentation says that .set file have to be in tester/Presets

I created /Presets in both the following paths:

programfiles/metatrader5/terminal/tester...

 appData/roaming/metaquotes/terminal/F792711EEED0C4A88615E52DD459D4CC/tester 

and copied .set files then I copied it in /termina and /MQL5

but the effect is the same no errors no other messages it simply doesn't starts

how can I debug it? is there any way to get the status of the terminal while interpreting the .ini file?  

I'll find time to have a look a little later,  I had this working before with little trouble,  are you trying first with a sample MQ supplied EA ?
 
RaptorUK:
I'll find time to have a look a little later,  I had this working before with little trouble,  are you trying first with a sample MQ supplied EA ?

I'm going to do it now and let you know.

thanks 

 
michelino:

I'm going to do it now and let you know.

thanks 

Try to get it working without optimization first . . .  in the ini file set . . .

Optimization = 0

 
RaptorUK:

Try to get it working without optimization first . . .  in the ini file set . . .

Optimization = 0

OK,  I have Optimization working . . .  make sure you have the optimization parameters that you want to optimize with ticked before you save your  set  file.   If you don't you should see a error message in the journal . . .  I did.
 
RaptorUK:
OK,  I have Optimization working . . .  make sure you have the optimization parameters that you want to optimize with ticked before you save your  set  file.   If you don't you should see a error message in the journal . . .  I did.

great it works now. I'm going to test other EA and parameters combinations and let you know

thanks 

Reason: