Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drop Down Options List in Property Window

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

    Drop Down Options List in Property Window

    Can I create an array of options and a drop down to display these in the stratergy setup/property box?

    So for example "True","False"
    Last edited by Rigsby66; 08-26-2009, 02:02 PM.

    #2
    Rigsby66,

    This is beyond the level of support we can offer. You can try searching the forums for enums though.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Public enum ABC
      {
      True,
      False
      }
      ...
      #region Variables
      private ABC DEF = ABC.true;

      Baruch

      Comment


        #4
        Originally posted by Baruch View Post
        Public enum ABC
        {
        True,
        False
        }
        ...
        #region Variables
        private ABC DEF = ABC.true;

        Baruch
        Great...

        I think I asked my question wrong. I guess I was asking if enum was possible in NT.... Thanks for the help

        Comment


          #5
          Originally posted by Baruch View Post
          Public enum ABC
          {
          True,
          False
          }
          ...
          #region Variables
          private ABC DEF = ABC.true;

          Baruch
          Okay, imagine if I wanted to use values from a file (not an enum).... I don't actually have a "DropDownList.Items.Add(files.Name)" option. enum is good, but I now want to be able to select a folder/file from my drive.

          Any ideas?

          Yes I know it's beyond the Ninja support, but maybe a user has an idea...

          Comment


            #6
            Originally posted by Rigsby66 View Post
            Yes I know it's beyond the Ninja support, but maybe a user has an idea...
            Yes I do. Here is a solution:



            Regards
            Ralph

            Comment


              #7
              Originally posted by Ralph View Post
              Ralph, thanks mate... Really cool stuf!

              Your indicator example is not exactly what I needed, but converting it to string values (file paths) was easy enough. So now I have exactly what I wanted.

              Thanks so much

              Rigsby

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              648 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              369 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              108 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              572 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              574 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X