Could MetaQuotes please answer this question ? I'm also eager to understand this.
Thanks
Martin
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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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)