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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        213 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        129 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        146 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        230 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        192 views
        0 likes
        Last Post CarlTrading  
        Working...
        X