Baktesting Optimization parameters
Hi at all,
in execution of ea in backtesting
optimization:
- is there a way/function/parameter for get number pass of backtesting optimizzation ?
- is there a way/function/parameter for get input/extern variables name in optimization mode ?
- is there a way/function/parameter for terminate pass of optimization in execution, for go to next ?
Very thanks at all
yes,yes,no
https://www.mql5.com/en/docs/optimization_frames
to terminate an optimization pass ,you have to put some codes INSIDE your EA to judge some preconditions.
by "INSIDE" i mean codes in OnInit() / OnTradeTransaction()/ OnTrade()/ OnTick()
you can not control an optimization pass from OUTSIDE.
by "OUTSIDE" i mean codes in OnTesterInit()/ OnTesterPass()/ OnTesterDeinit(), they are used to handle the test results COMING OUT of the optimization process.

- www.mql5.com
yes,yes,no
https://www.mql5.com/en/docs/optimization_frames
to terminate an optimization pass ,you have to put some codes INSIDE your EA to judge some preconditions.
by "INSIDE" i mean codes in OnInit() / OnTradeTransaction()/ OnTrade()/ OnTick()
you can not control an optimization pass from OUTSIDE.
by "OUTSIDE" i mean codes in OnTesterInit()/ OnTesterPass()/ OnTesterDeinit(), they are used to handle the test results COMING OUT of the optimization process.
Yes. TesterStop().

- www.mql5.com
"The TesterStop() function is designed for a routine early shutdown of an EA on a test agent – for example, when reaching a specified number of losing trades or a preset drawdown level."
TesterStop() is still an "INSIDE" function. You have no way to get information such as " reaching a specified number of losing trades or a preset drawdown level" from "OUTSIDE".
As I understand it, all three of @Davide Tedesco 's questions are about "OUTSIDE" control of optimization work.
"The TesterStop() function is designed for a routine early shutdown of an EA on a test agent – for example, when reaching a specified number of losing trades or a preset drawdown level."
TesterStop() is still an "INSIDE" function. You have no way to get information such as " reaching a specified number of losing trades or a preset drawdown level" from "OUTSIDE".
As I understand it, all three of @Davide Tedesco 's questions are about "OUTSIDE" control of optimization work.
ohh! very very thanks,
I am very happy to read this very interesting documentation !!!
but, i'm very
sorry, for once I don't specify it:
but can i use this functions
in mql4 ?
I need this functions for a part of new implementation in my framework,
for this i must begin to
terminare this new implementation,
and i don't want to pass my framework ea in mql5 before study well mql5.
but vey very thanks, because i will study this documentation,
and it will be very useful for many idea to consider in my analysis

- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi at all,
in execution of ea in backtesting optimization:
- is there a way/function/parameter for get number pass of backtesting optimizzation ?
- is there a way/function/parameter for get input/extern variables name in optimization mode ?
- is there a way/function/parameter for terminate pass of optimization in execution, for go to next ?
Very thanks at all