Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Hide indicator in list?

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

    Hide indicator in list?

    Is there any way to have an indicator NOT show up in the indicators window, e.g. by setting an attribute like [Gui.Design.DisplayName("Name")]? I have some indicators which I access programatically from other indicators but which are not meant to be added to a chart directly by the user (therefore I want to hide them in the list).

    #2
    Hi terenyi, unfortunately this isn't possible. If this is for yourself, you could just put your methods in UserDefinedMethods. If not, you could just name it something like 'zzzIndicatorName' and then tell users not to touch indicators that start with zzz.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Depending on how robust NT's reflection code is you might be able to hide them by using a surrogate type.

      You could also try using Reflection.Emit to generate the types at runtime after NT has created its indicators list.

      Or perhaps non-public child classes of another indicator?

      Not sure if any of those will work but just ideas off the top of my head =)

      Comment


        #4
        thanks for the ideas. i don't think that will work though because indicators are not created directly (i.e. new myindicator) but through a medthod which is added to the indicator base class and which is defined in the ninjatrader generated code section (i.e. NT does not use reflection i think). as far as i understand it, things like caching etc. are done in this method so i guess just creating an indicator directly (or defining it with emit without adding that method to the base class) won't work.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        344 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        557 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X