Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Change GroupName of Default Strategy Property Settings

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

    Change GroupName of Default Strategy Property Settings

    How do I access and change the default group name for the default Strategy Properties. I am creating a custom TypeConverter and I would like to organize these properties better.

    Click image for larger version

Name:	typeconverter.PNG
Views:	353
Size:	19.1 KB
ID:	1116111

    #2
    Hello cutzpr,

    The GroupName is set in the Display() attribute for each input.


    These can also be ordered.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Yes I understand, but these are default ninja trader strategy settings I am referring to not custom settings. Example, how do you specifically change the group name for lets say the enabled button for the strategy. I searched the PropertyDescriptorCollection and I couldn't find it.

      Also how about the Inputs, can you give an example on changing its group name?

      Comment


        #4
        Hello cutzpr,

        The Display attribute applies to public inputs you add to the script.

        Below is the example copied and pasted from the help guide with the group name changed to My Custom Group Name
        [Display(Name="My Period", Order=1, GroupName="My Custom Group Name")]
        public int MyInt
        { get; set; }
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello cutzpr,

          The Display attribute applies to public inputs you add to the script.

          Below is the example copied and pasted from the help guide with the group name changed to My Custom Group Name
          [Display(Name="My Period", Order=1, GroupName="My Custom Group Name")]
          public int MyInt
          { get; set; }
          I understand how to change public inputs. That is not what I am asking. I would like to know how to change the groupname for the default inputs. Can you provide an example.

          Comment


            #6
            Hello cutzpr,

            There are no supported methods for changing the default inputs. These are set by NinjaTrader and intended to match the help guide.

            You can have custom group names on custom inputs.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NRITV, Today, 01:15 PM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by maybeimnotrader, Yesterday, 05:46 PM
            5 responses
            24 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by quantismo, Yesterday, 05:13 PM
            2 responses
            16 views
            0 likes
            Last Post quantismo  
            Started by frankthearm, Today, 09:08 AM
            6 responses
            27 views
            0 likes
            Last Post frankthearm  
            Started by adeelshahzad, Today, 03:54 AM
            5 responses
            33 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Working...
            X