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

Collapsed Properties

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

    Collapsed Properties

    This sounds like it should be simple, but the answer eludes me.
    Is there a quick easy way to have the Property sections display "collapsed" as opposed to "expanded".... (see the attached screen grabs "this" and "not this").
    Thanks........
    Attached Files

    #2
    Hello,

    Thank you for the question.

    The default indicator properties will only be controlled by the platform, so for those, it would not be directly possible.

    For custom properties in your indicator, these are controllable.

    Any class that has the attribute: [CategoryDefaultExpanded(false)] will display its properties as collapsed.

    This is applied at the class level so it applies to all properties that can be collapsed:


    Code:
    [CategoryDefaultExpanded(false)]
    public class Test : Indicator
    {

    I look forwad to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks!!! As always I appreciate the support and quick replies

      Comment


        #4
        Hi,
        This does not work in NT 8.0.22.2 on Windows 10. Any other way to achieve this.

        Regards

        Vivek

        Comment


          #5
          Hello AnkaS,

          There is not any supported means to control that, the property shown in post #2 is not a documented property so it may behave poorly depending on the use case.

          Please let me know if I may be of further assistance.
          JesseNinjaTrader Customer Service

          Comment


            #6
            Hello,
            Correct way to do this is:-
            Code:
            [Gui.CategoryExpanded("Custom", false)]
            public class Test : Indicator
            This may or may not work sometimes, especially if any template is saved it don't works. Usually working with new indicators fresh without any templates.
            Hope it helps!
            Last edited by s.kinra; 04-20-2021, 10:51 AM.

            Comment


              #7
              Hi, I scanned all issues regarding ways to start the Indicator parameter screen with group/category collapse. The only valid but unsupported solution I saw, was the use of [CategoryDefaultExpanded(false)] and/or [CategoryExpanded("Group/Category Name", false)]. I did try them both, with or without the

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by cre8able, Today, 03:20 PM
              0 responses
              5 views
              0 likes
              Last Post cre8able  
              Started by Fran888, 02-16-2024, 10:48 AM
              3 responses
              47 views
              0 likes
              Last Post Sam2515
              by Sam2515
               
              Started by martin70, 03-24-2023, 04:58 AM
              15 responses
              114 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by The_Sec, Today, 02:29 PM
              1 response
              7 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by jeronymite, 04-12-2024, 04:26 PM
              2 responses
              31 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Working...
              X