Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Possible to use [Category("Parameters")] attribute to make a 10-item combobox appear?

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

    Possible to use [Category("Parameters")] attribute to make a 10-item combobox appear?

    Hello,

    Is it possible to create a parameter that is visible and editable in the "Backtest" properties dialog box as a combobox that represents a 10-item list?

    I am already getting int and bool parameters to appear and be editable on this dialog box using the [Category("Parameters")] attribute, and now I would like to do the same thing with custom lists.

    Thanks in advance!
    ChiTrader2000

    #2
    Originally posted by ChiTrader2000 View Post
    Hello,

    Is it possible to create a parameter that is visible and editable in the "Backtest" properties dialog box as a combobox that represents a 10-item list?

    I am already getting int and bool parameters to appear and be editable on this dialog box using the [Category("Parameters")] attribute, and now I would like to do the same thing with custom lists.

    Thanks in advance!
    ChiTrader2000
    look around for info how to use enum

    Comment


      #3
      Hello roonius,

      Thanks a lot! I made an enum, made a public property of the enum's type, and decorated it with [Category("Parameters")], and it works great. I am using it as a "Please log in" combobox where my users can select their name from the combobox so that when their results are written to the database, their UserId is written as well so we know who did what test.

      Thanks again!
      ChiTrader2000

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      633 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      567 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X