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

Expand/contract GridCategory in code

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

    Expand/contract GridCategory in code

    I have several GridCategory sections for a custom indicator. Whenever I open the Indicators dialog, they are all expanded. I would like to be able to set some of them to be contracted by default as, for example, the default is for individual Plots, where Color, Dash style, etc., are hidden until the user clicks the + icon. Is there a way to code this behavior? Somewhere in here, perhaps?:
    Code:
            [Description("Line color for Opening Range High")]
            [GridCategory("Colors")]
            [Gui.Design.DisplayNameAttribute("O.R. High Color")]
            public Color OrHighColor
            {
                get { return orHighColor; }
                set { orHighColor = value; }
            }
    Thanks!

    #2
    Hello tradesmart,
    Welcome to the forum and I am happy to assist you.

    Unfortunatley I am not aware of it. However instead of creating various Color, DashStyle etc property you can create a single Pen property which will contain all the color, dashstyle etc values.
    Defines an object used to draw lines and curves. This class cannot be inherited.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks for your response. However, I am quite aware of using Pen's various attributes, but that was not my question. I want a way to collapse, by default, specific GridCategory containers in the Indicators dialog box. I only mentioned Plots as an example of how the various Pen properties of that category are collapsed by default: if the user wants to change a plot color, he has to first click the + icon to expand the tree. That's the behavior I'd like to be able to code.

      Comment


        #4
        Unfortunately this would not be possible with supported NinjaScript, but I have this added to our product management enhancement tracking lists to potentially consider for a future upgrade of the platform.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by LawrenHom, Today, 10:45 PM
        0 responses
        3 views
        0 likes
        Last Post LawrenHom  
        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  
        Working...
        X