Application wide object/indicator [SOLVED]
-
- Posts: 40
- Joined: 28 Aug 2012
- Location: Vancouver, Canada
- Has thanked: 8 times
- Been thanked: 1 time
Application wide object/indicator
Is it possible to have an indicator which is accessible throughout the application? For example an indicator which analyzes an index and makes its properties availble to all other indicators in the application. This would be very powerful as you notice.
Re: Application wide object/indicator
If your question is "how can I share data between two or more indicators in one MultiCharts.exe process" then try to search "singleton", "global variable".Is it possible to have an indicator which is accessible throughout the application? For example an indicator which analyzes an index and makes its properties availble to all other indicators in the application. This would be very powerful as you notice.
-
- Posts: 40
- Joined: 28 Aug 2012
- Location: Vancouver, Canada
- Has thanked: 8 times
- Been thanked: 1 time
Re: Application wide object/indicator
Thank you for the reply. But the question still remains. Where can I declare the indicator? If I declare this class in every indicator that needs it, it would be very inefficient.
Re: Application wide object/indicator [SOLVED]
All indicators & signals are compiled into one assembly.Thank you for the reply. But the question still remains. Where can I declare the indicator? If I declare this class in every indicator that needs it, it would be very inefficient.
You can declare any class in any indicator or signal and this class will be visible and accessible from any indicator or signal