Initialization of indicators from EA
graziani:
Good catch, I was not aware of this problem. There is a bug in mql5 here.
If you call a custom indicator from EA, is there a way to know if the indicator initialized successfully?
In my experience, iCustom() always returns valid handle, regardless of result of custom indicators OnInit().
This is also valid for putting custom indicator on chart:
initialization fails, DeInit() is executed, but indicator still exists in Indicator list.
If you call a custom indicator from EA, is there a way to know if the indicator initialized successfully?
In my experience, iCustom() always returns valid handle, regardless of result of custom indicators OnInit().
This is also valid for putting custom indicator on chart:
initialization fails, DeInit() is executed, but indicator still exists in Indicator list.