Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Input

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

    Indicator Input

    I'd like for my indicators to have flexibility for their data series inputs (eg, Medians[0], Lows[0]). What's the best way to do that?

    #2
    Hello spottysallrite,

    I would suggest looking at the SMA and how its coded, you need to use the Input property to accept the Input series overload for your indicator.

    If you want to deal with a variety of inputs that are not bar series you can see some examples of detecting the type of input in the following help guide page: https://ninjatrader.com/support/help.../nt8/input.htm

    I have also attached a example of the ADX indicator modified to support input, that would be for use cases where the indicators logic uses specific series like High or Low and how to deal with that situation when an indicator is input instead of a bar series.



    Attached Files

    Comment


      #3
      Ok, I thought that was the way to go (ie, "Input[0]"), and I did poke around on SMA before I made the original post here, but somehow I couldn't get that to work after some brief attempts. Looks like it's working now. Thanks !

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      57 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      78 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      39 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      101 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      61 views
      0 likes
      Last Post PaulMohn  
      Working...
      X