Question on backtesting

 
Suppouse that i have a expert advisor wich uses a global variable to take some decisions.

This global variable is written by a custon idicator.

The expert advisor is not using the iCustom function, so the custom indicator is never instantiated by the expert advisor.

The question is, when the back testing is performed, all the custom indicators in the chart are being processed either?

If this is the case, the custom indicator will update the global variable.
If this is not the case, the expert advisor will be using the same value for the global variable.

Any help will be apreciated.

Regards
Matias Romeo

pd: The decision to use a global variable to perform some calculations in the EA arrise since each time i use the iCustom function the custom indicator was loaded again and again instead of using the last private instance of the CI. (performance issue)
 
Could MetaQuotes please answer this question ? I'm also eager to understand this.

Thanks
Martin
 
expert should call iCustom for updating global variable. it may be "empty" call. if expert does not call iCustom then global variable stay unchanged and indefinite
Reason: