Go to next PASS on Optimization

 

Hi coders,

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

Thank you

 
Expert Properties -> Optimization
 
whroeder1:
Expert Properties -> Optimization

I mean by code.

 
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

 
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...
Reason: