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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        161 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        308 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        349 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X