Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple Series Inputs to Indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Multiple Series Inputs to Indicator

    Hello,

    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

    #2
    Hello Joe,

    Welcome to the NinjaTrader forums!

    Unfortunately, due to the design of the NinjaScript structure this isn't directly possible.

    But it is possible to make an input for a Series<double> and pass a series in that way.
    Attached is an example of this.

    You could add inputs for the indicator and use this to call the indicator method to construct the class object, and then supply the plot series to another indicator.
    Note, using the InputEditor PropertyEditor attribute would allow you to select the indicator from a drop-down would not be officially supported (or documented) but have the intended effect.
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    576 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X