• 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

Upper case parameter

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

    Upper case parameter

    What is the syntax to get a parameter entry to convert to upper case? I am entering a multiple instrument list. It works fine but would like to convert it to upper case where it shows in the parameter prompt.

    This is what I have:
    [Description("Markets to include")]
    [Category("Parameters")]
    public string[] Markets
    {
    get { return _markets; }
    set { _markets = value; }
    }

    Ninja doesn't like: set { _markets = value.ToUpper(); }

    #2
    Originally posted by ct View Post
    What is the syntax to get a parameter entry to convert to upper case? I am entering a multiple instrument list. It works fine but would like to convert it to upper case where it shows in the parameter prompt.

    This is what I have:
    [Description("Markets to include")]
    [Category("Parameters")]
    public string[] Markets
    {
    get { return _markets; }
    set { _markets = value; }
    }

    Ninja doesn't like: set { _markets = value.ToUpper(); }
    What is the error message?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Trade95, Yesterday, 05:38 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by Karelgp7, Yesterday, 03:16 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by orenytz, Yesterday, 01:18 PM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by des.kkeng, Yesterday, 01:10 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by Capablanca, Yesterday, 12:35 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X