Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Property List<string>

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

    Property List<string>

    Is it possible to create a property that is a List<string> so that it behaves similar to how an enum property would? So that it would a) create a combo box with the list of strings where it allows you to select one of them, and b) will let you optimize across the list of values in the list when optimizing?

    #2
    Hello,

    I just wanted to reply and let you know I am currently looking into this and will reply back once I have an answer on if this is possible and if so hopefully a sample as well.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello,

      After speaking with development on this, it looks like the maximum complexity of optimization objects would be up to enums.

      A collection of objects could be any type really so there would not be a way to cover all bases on this. Instead it was suggested to utilize a Int property or an Enum and optimize that. In the script you could utilize the int to delegate logic or use a specific index in a collection for logic.

      I am unsure of the specifics on your need for a list of strings but this would likely be the easiest/most correct solution regarding what can be optimized.

      I look forward to being of further assistance.
      JesseNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DJ888, Today, 10:57 PM
      0 responses
      1 view
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Today, 09:29 PM
      0 responses
      7 views
      0 likes
      Last Post Belfortbucks  
      Started by zstheorist, Today, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      151 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Working...
      X