public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object component, Attribute[] attrs)
{[INDENT]PropertyDescriptorCollection propertyDescriptorCollection = ...[/INDENT]
}
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
hiding output properties
Collapse
X
-
hiding output properties
Hi, I have a need to hide some input and output properties based on some input properties. I mastered the Dynamic Properties to control the visibility of the input properties using IndicatorBaseConverter.
Is there a way to control the output properties (exposed public [Browsable(false)][XmlIgnore] public Series<double>...)?Code:Tags: None
-
Hello Shai Samuel,
Thank you for your reply.
What is the intended use case here? If they're not user inputs we wouldn't expect them to show up in the UI. Do you mean that you want that public series to not be public based on user input?
If you mean you want to dynamically change access modifiers on a property or attributes on a property, that would not be possible, however, you could simply set that series to null if you're not going to use it based on user input.
Please let us know if we may be of further assistance to you.
-
Thank you Kate,
The indicator expose a few datasets using public series. I would like have different datasets exposed, based on the input params. For example, if an input param request HTF (bool UseHTF), I would like to expose the relevant HigherTimeFrame dataset that the indicator calculate. If the UseHTF is false, I would like these data sets not to be exposed.
This is something which should be set based on the input params, so it will not change dynamically during OnUpdate, but only at the loading phase of the indicator.
If this is not possible, it's OK.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
331 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
549 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
549 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment