rbigdelis:
When I call indicator 'A' by iCustom function, it always return valid handle value. How I can I recognize that indicator 'A' failed to init?
https://www.mql5.com/en/docs/globals
Set a global variable in indicator 'A' that is read by indicator 'B'.
Anthony Garot:
It is good idea and works.https://www.mql5.com/en/docs/globals
Set a global variable in indicator 'A' that is read by indicator 'B'.
Thank you very much.
rbigdelis: I have a custom indicator ('A') that is called only by iCustom function from my another custom indicator('B').
In OnInit function of indicator 'A', I always check some requirements and if it is not OK, I will return INIT_FAILED.
Why are you passing invalid "requirements" from B?

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
Hi,
I have a custom indicator ('A') that is called only by iCustom function from my another custom indicator('B').
In OnInit function of indicator 'A', I always check some requirements and if it is not OK, I will return INIT_FAILED.
When I call indicator 'A' by iCustom function, it always return valid handle value. How I can I recognize that indicator 'A' failed to init?
Thanks for reading and response.