You should not fix improper messaging by a hope that everything happens in the expected order. You need to develop a handshake, where listeners register with the publisher first.

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 3 indicators and I want to create a template out of them.Now I know how to do that.The problem is the indicator use 'EventChartCustom' ,which means the event subscription need to happen over precedence.
For example
Indicator1 needs to first initialized so that it is ready to receive event.-LISTNER
Indicator2 needs to be initialized next which is also going to receive event.-LISTNER
Indicator3 needs to be initialized last ,it would start publishing event as soon as it is initialized.-PUBLISHER
Now how can I store them as a template and still maintain the order in which they are initialized?
Thanks,
Gully