• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Parameter Drop Down List

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

    Parameter Drop Down List

    I am converting some (valuable) eSignal code and have been having trouble finding a way to set up a list of Allowed Values for a string parameter, and have the values appear as a Drop Down List in the indicator's Parameter panel.

    Is this possible?

    Any examples of best way/alternative, appreciated.

    Thanks,

    G

    #2
    Hello G,

    This can be accomplished using an enum.

    Below is a link to a reference sample that demonstrates.
    http://ninjatrader.com/support/forum...ead.php?t=3420

    Also, there is a post that demonstrates an unsupported way of decorating enums (with friendly names).
    http://ninjatrader.com/support/forum...303#post490303
    Last edited by NinjaTrader_ChelseaB; 03-09-2017, 02:06 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Bionian, Today, 02:46 PM
    2 responses
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by rwilliam, Today, 01:54 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by franco12364, Today, 11:27 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by YevhenShynkarenko, Today, 11:48 AM
    4 responses
    25 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by NinjaTrader_ChrisL, Today, 11:21 AM
    0 responses
    21 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X