Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get name of Input series from inside OnBarUpdate ?

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

    How to get name of Input series from inside OnBarUpdate ?

    Indicator A calls indicator SMA, and uses a series named "MidPrice" as the Input to the SMA

    I want to use a Print() statement inside the SMA indicator if it's Input Series name contains "MidPrice"

    Is there a special Reflection way to get access to the Input's Properties, to get the Name of the series which is passed into the Indicator?

    Intellisense offers
    Code:
    Input.GetType()
    and that has a lot of Properties and Methods, but I don't know which one to try, and I searched the forums but could not find any examples.

    Thank you.

    #2
    Hello balltrader,

    Unfortunately, there would not be a method or property for this and using reflection would be undocumented and unsupported.

    This thread will remain open for any community members that know of and would like to share unsupported code.


    If you are trying to get different behavior based on different plots as the input series, it might be easier to just add an enum input the user can select.
    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