multi expert

 

hi

is it possible to make an expert that check few condition and decide whice expert to run?

 
m_itai wrote >>

hi

is it possible to make an expert that check few condition and decide whice expert to run?

yes, you can check few conditions (how much you want) and then you can decide in your expert what strategie you use

 
EADeveloper:

yes, you can check few conditions (how much you want) and then you can decide in your expert what strategie you use

how do i start an expert from mql4 from another expert?

what is the command

 

This is not a good idea.

You will end up having to write and call external modules to unload and load EAs etc.

Complexity = high. Reliability = potentially low.


The way I'd do this would be to take a modular approach to your EA and to build the following:

- A parent EA (including the init, start and deinit functions) which checks the conditions and decides the strategy

- A collection of modules, each built as a function (or function set) which delivers a particular strategy (included in the parent EA as header files)

- A collection of modules, each built as a function which delivers a common service - either to the strategy modules or to the parent EA - (also included in the parent EA as header files)


CB

Reason: