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 love2code2trade, Yesterday, 01:45 PM
            4 responses
            28 views
            0 likes
            Last Post love2code2trade  
            Started by funk10101, Today, 09:43 PM
            0 responses
            7 views
            0 likes
            Last Post funk10101  
            Started by pkefal, 04-11-2024, 07:39 AM
            11 responses
            37 views
            0 likes
            Last Post jeronymite  
            Started by bill2023, Yesterday, 08:51 AM
            8 responses
            44 views
            0 likes
            Last Post bill2023  
            Started by yertle, Today, 08:38 AM
            6 responses
            26 views
            0 likes
            Last Post ryjoga
            by ryjoga
             
            Working...
            X