I am working on a custom indicator and I would like to be able to feed in plots (series) output from other indicators for processing. Specifically, I want something that behaves in the same way as the Input field we get in the UI for every indicator. That is, I want to be able to click on my custom property and have it pop up the window that allows me to select another indicator, customize its input parameters, etc. and set it as an input to the indicator I am developing.
To make sure I am being perfectly clear, imagine I was developing a generic divergence detector (not my use case, but a good example), where the idea would be that the user could feed the plot from (nearly) any indicator they want and then I could compute divergences based on price action and the input indicator. To clarify, it is not acceptable to suggest using the current Input field as I will be using it for a second set of customizable inputs. This needs to be a separate configurable property. For example, maybe I want to pass in 5 different plots as inputs, so the one Input field will not suffice.
Is this possible to achieve and are there any code examples you can point me to?
Thanks!
Joe

Comment