Go to next PASS on Optimization

To add comments, please log in or register
Daniel Arges
298
Daniel Arges  

Hi coders,

How can I quit a specific pass on optimization and go for the next one?

Thank you

William Roeder
19846
William Roeder  
Expert Properties -> Optimization
Daniel Arges
298
Daniel Arges  
whroeder1:
Expert Properties -> Optimization

I mean by code.

Anthony Garot
3617
Anthony Garot  
Daniel Arges:

Hi coders,

How can I quit a specific pass on optimization and go for the next one?

Thank you

ExpertRemove() will end any particular pass. You will get something like this in your log:

ExpertRemove() on pass

fxsaber
14663
fxsaber  
Daniel Arges:

How can I quit a specific pass on optimization and go for the next one?

ENUM_INIT_RETCODE

Identifier

Description

INIT_SUCCEEDED

Successful initialization, testing of the Expert Advisor can be continued.

This code means the same as a null value — the Expert Advisor has been successfully initialized in the tester.

INIT_FAILED

Initialization failed; there is no point in continuing testing because of fatal errors. For example, failed to create an indicator that is required for the work of the Expert Advisor.

This return value means the same as a value other than zero - initialization of the Expert Advisor in the tester failed.

INIT_PARAMETERS_INCORRECT

This value means the incorrect set of input parameters. The result string containing this return code is highlighted in red in the general optimization table.

Testing for the given set of parameters of the Expert Advisor will not be executed, the agent is free to receive a new task.

Upon receiving this value, the strategy tester will reliably not pass this task to other agents for retry.

INIT_AGENT_NOT_SUITABLE

No errors during initialization, but for some reason the agent is not suitable for testing. For example, not enough memory, noOpenCL support, etc.

After the return of this code, the agent will not receive tasks until the end ofthis optimization.

Documentation on MQL5: Language Basics / Functions / Event Handling Functions
Documentation on MQL5: Language Basics / Functions / Event Handling Functions
  • www.mql5.com
The MQL5 language provides processing of some predefined events. Functions for handling these events must be defined in a MQL5 program; function name, return type, composition of parameters (if there are any) and their types must strictly conform to the description of the event handler function. The event handler of the client terminal...
To add comments, please log in or register