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 cmoran13, Yesterday, 01:02 PM
              0 responses
              30 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              22 views
              0 likes
              Last Post PaulMohn  
              Started by CarlTrading, 03-31-2026, 09:41 PM
              1 response
              160 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              95 views
              1 like
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              148 views
              2 likes
              Last Post CaptainJack  
              Working...
              X