[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; } }
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!
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
NinjaTrader
Expand/contract GridCategory in code
Collapse
X
-
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: -
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.
JoydeepNinjaTrader Customer Service
-
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by techgetgame, Today, 11:42 PM
|
0 responses
6 views
0 likes
|
Last Post
by techgetgame
Today, 11:42 PM
|
||
Started by sephichapdson, Today, 11:36 PM
|
0 responses
1 view
0 likes
|
Last Post Today, 11:36 PM | ||
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,612 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
9 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
19 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
Comment