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

Is it possible to define sub category or user define category for parameters

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

    Is it possible to define sub category or user define category for parameters

    Is it possible to define sub category or user define category for parameters? The idea is to make parameter groupings so parameters are more readable.

    #2
    Under the "Properties" section of the strategy, you will see all of your parameter properties.

    You will see:

    [Category("Parameters")]

    above each property. Just change "Paramters" to the name of the category you wish to see.
    RayNinjaTrader Customer Service

    Comment


      #3
      I already tried that and all it does is make the parameter disappear.

      Comment


        #4
        I would double check your code. I just tested here and it works fine.

        I have something like this.

        Code:
        [Description("")]
        [Category("Test")]
        public int MyInput0
        {
            get { return myInput0; }
            set { myInput0 = Math.Max(1, value); }
        }
        RayNinjaTrader Customer Service

        Comment


          #5
          It works in indicators but not on my strategy. Can you check that?

          Comment


            #6
            My apologies, this should not work for strategies. Our policy is to maintain inputs under the "Parameters" category.
            RayNinjaTrader Customer Service

            Comment


              #7
              Ah come on. That makes no sense at all. I have strategies with lots of inputs as im sure plenty others do.

              Whats the reasoning behind this policy? To frustrate your users?

              Besides its only a visual thing. People should have a choice.

              Comment


                #8
                Technical limitiation at this time.
                RayNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Salahinho99, Today, 04:13 AM
                0 responses
                12 views
                0 likes
                Last Post Salahinho99  
                Started by junkone, 04-28-2024, 02:19 PM
                8 responses
                93 views
                1 like
                Last Post brucerobinson  
                Started by mkouitra, 10-23-2021, 04:40 PM
                17 responses
                1,970 views
                0 likes
                Last Post NinjaTrader_Jason  
                Started by Vietanhnguyen2hotmailcom, 05-03-2024, 10:29 AM
                4 responses
                32 views
                0 likes
                Last Post Vietanhnguyen2hotmailcom  
                Started by PhillT, 04-19-2024, 02:16 PM
                4 responses
                40 views
                0 likes
                Last Post PhillT
                by PhillT
                 
                Working...
                X