I'm wonder if I can put the Color property inside the SimpleFont group like in the image below:
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Color inside SimpleFont group
Collapse
X
-
Color inside SimpleFont group
Hey guys,
I'm wonder if I can put the Color property inside the SimpleFont group like in the image below:
Tags: None
-
Hello rafaelcoisa,
The post you linked is just for making an expandable object however that will not work correctly in all cases. The properties won't be displayed correctly in the UI like you have pictured, it shows the color as #FFF4500 and includes the internal naming of the type.
When you want to make a color for a text you need to make a seperate Brush property.
If you wanted to group these items you can use a Display attribute and use the same group for all of the properties: https://ninjatrader.com/support/help...yattribute.htm
Comment
-
Hey NinjaTrader_Jesse ,
"SimpleFont" and "Stroke" do not work with "ExpandableObject" in order to further customize the UI of an indicator. But, for "Strokes", you can, within an "ExpandableObject" class, create the necessary properties to fill a "Stroke" object created in "State.Configure". I wonder if there is a procedure like this for "SimpleFont" object. An "ExpandableObject" class with an "int" property and a "string" property to fill the "SimpleFont" object in "State.Configure". How to make the string part?
Comment
-
Hello rafaelcoisa,
There is not a way to add more properties to an existing type, for example you can't add a new stroke to the SimpleFont. The UI is only displaying what the SimpleFont is programmed to display for its existing properties.
This would be a situation where we would recommend using groups in the grid rather than using an expandable object. You can make multiple public properties for what you want and then group them together using the Display attribute.
[Display(GroupName="MyOverallPropertyName")]
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment