Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Parameters Regions collapsed by default with CategoryExpandedAttribute ?

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

    Parameters Regions collapsed by default with CategoryExpandedAttribute ?

    Hi !

    I'm looking to have the region of a strategy in the parameters grid, collapsed by default, when you open the strategy, instead of, that when you open a strategy or indicator, all the region are open. But i have a few troubles making it work.

    I have look up a bit on this, i didn't find any documentation on collapsing, even if there is great documentation about Category Order.
    Category Order which work with this line placed before the "public class (Indicator or Strategy name)"

    Code:
    [Gui.CategoryOrder("News", 1)]
    In the references of NinjaTrader (not trough the website), i have found this option that could work, but since there is no documentation about it, i'm not sure if i use it correctly

    Code:
    [Gui.CategoryExpandedAttribute("News", false)]
    I have put this line right below the CategoryOrder line (the Order which work), but, the Expanded Attribute, do not do anything set on true or false.


    So, is there a way, to have the region in the parameters grids collapsed by default ? And is the Expanded Attribute line, the way to do so ? If so, how do we make it work ?

    Thank you very much ! Have a fantastic day !

    #2
    Hello Robinson94,

    The is not documented for use in the help guide. Below is a public link.


    I'll ask if anyone has used this successfully and let you know what I find.

    As a tip, an expandable class may achieve your goal. Below is a link to an example.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you for asking around !

      Have a good day !

      Comment


        #4
        Any updates on this?

        Having quick way to define default collapsed property would be very useful when there are a large number of groups. Needing to build an expandable class should not be required.

        Comment


          #5
          Hello aslane,

          Our team is not familiar with this.

          I will submit a feature request on your behalf. Once I have a tracking ID for this I will post in this thread for future reference.

          I appreciate your patience.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Hello aslane,

            I have received tracking ID# SFT-4272 for this request to add expandable class inputs without having to write the code for an expandable class.

            Please note it is up to the NinjaTrader Development team to decide if or when any request will be implemented.

            We appreciate your feedback.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by fiddich, Today, 05:25 PM
            0 responses
            1 view
            0 likes
            Last Post fiddich
            by fiddich
             
            Started by gemify, 11-11-2022, 11:52 AM
            6 responses
            803 views
            2 likes
            Last Post ultls
            by ultls
             
            Started by ScottWalsh, Today, 04:52 PM
            0 responses
            4 views
            0 likes
            Last Post ScottWalsh  
            Started by ScottWalsh, Today, 04:29 PM
            0 responses
            7 views
            0 likes
            Last Post ScottWalsh  
            Started by rtwave, 04-12-2024, 09:30 AM
            2 responses
            22 views
            0 likes
            Last Post rtwave
            by rtwave
             
            Working...
            X