• 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

Show properties with names in strategy window other than in code

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

    Show properties with names in strategy window other than in code

    Hi everybody
    I have a strategy with some properties for user. In the properties window my properties are shown with their main name in the code, but they are not understandable for the users.

    How can i change the name in properties window?

    #2
    Hello amiralimadadi,

    Thanks for your post.

    By default the variable name would be used in the properties window. You can change what is viewed by using a display attribute: https://ninjatrader.com/support/help...yattribute.htm

    Here is an example of use:
    [NinjaScriptProperty]
    [Display(Name=" Crossing MA PriceType", Description="Select price Type (Close, high, Low, etc.)", Order=2, GroupName="Crossing Moving Average (fast)")]
    public PriceType fastPriceType
    { get; set; }


    In the indicators parameters the user would see "Crossing MA PriceType" instead of the variable name of fastPriceType. Also, when the mouse is hovered over the displayed name, the tool tip would show the description, "Select price Type (Close, high, Low, etc.)" which is used to aid the user in understanding what the input is for.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ralett, Today, 11:52 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by rtwave, Yesterday, 07:06 PM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by DTSSTS, Today, 11:27 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by siroya, Today, 10:02 AM
    2 responses
    9 views
    0 likes
    Last Post DTSSTS
    by DTSSTS
     
    Started by pjsmith, Today, 10:50 AM
    0 responses
    9 views
    0 likes
    Last Post pjsmith
    by pjsmith
     
    Working...
    X