Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Analyzer column for Indicators

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

    Market Analyzer column for Indicators

    Hi,

    In the NS Editor for MarketAnalyzerColumns there is no code to view for the "Indicator" column. How was this column programmed and achieved to have indicator and plot dropdown property menus?

    I want to make the same drop down selectors in my custom NS files. Is this possible? Thanks.

    #2
    Hello uacvax,

    Thank you for writing in.

    You can add drop down menus for properties in your scripts by utilizing enums.

    More information about enums can be found here: http://www.dotnetperls.com/enum

    I have provided an example script that shows how this can be done.

    Please, let us know if we may be of further assistance.
    Attached Files
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Thanks Zachary. That is a nice example, however, I am looking for something more complex. There is something that NT is doing in the indicator column that allows it to pull in the full list of indicators into the drop down. Using enums would be hard coding items for the drop down whereas the indicators column in MA is somehow able to grab all the indicators dynamically.

      Comment


        #4
        Hello uacvax,

        I apologize for the misunderstanding; I was thinking that you wanted an example of how to create a drop down menu for your properties.

        I will be investigating this further to see how a list of indicators can be obtained.
        Zachary G.NinjaTrader Customer Service

        Comment


          #5
          Hello uacvax,

          Thank you for your patience.

          Here is undocumented code on how you can grab the collection of indicators:
          Code:
          Type[] availableIndicatorTypes = NinjaTrader.Core.Globals.AssemblyRegistry.GetDerivedTypes(typeof(IndicatorBase));


          Please, let us know if we may be of further assistance.
          Zachary G.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by wzgy0920, 04-20-2024, 06:09 PM
          2 responses
          26 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 02-22-2024, 01:11 AM
          5 responses
          32 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, Yesterday, 09:53 PM
          2 responses
          49 views
          0 likes
          Last Post wzgy0920  
          Started by Kensonprib, 04-28-2021, 10:11 AM
          5 responses
          191 views
          0 likes
          Last Post Hasadafa  
          Started by GussJ, 03-04-2020, 03:11 PM
          11 responses
          3,230 views
          0 likes
          Last Post xiinteractive  
          Working...
          X