Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding a list to Indicator properties

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

    Adding a list to Indicator properties

    Hello,

    Can you help me with me the proper script to add a list in the Indicator properties section that I can then populate via the indicator property settings.

    I have tried with no success;

    [NinjaScriptProperty]
    [Display(ResourceType = typeof(Custom.Resource), Name = "list", GroupName = "6. list", Order =1)]
    public List<double> Levels { get; set; }

    I see the option in properties when i open up the UI but it will not take any inputs.

    I guess I have to initiate it this somewhere else in the code, possibly onstatechange but i'm not sure?

    Thanks

    #2
    Hello b16_aln,

    A custom type converter will need to be used.

    I recommend using the Use Case #5 example from the SampleIndicatorTypeConverter example.

    Below is a link to the reference sample in the help guide.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello b16_aln,

      A custom type converter will need to be used.

      I recommend using the Use Case Uncategorized Groups example from the SampleIndicatorTypeConverter example.

      Below is a link to the reference sample in the help guide.
      https://ninjatrader.com/support/help...r_to_custo.htm
      Hey Chelsea, link seems to be broken.

      Comment


        #4
        Hi Jake, Here is the link to the full example:

        Comment

        Latest Posts

        Collapse

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