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 CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        28 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        183 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        336 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        260 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X