Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Hide indicator in list?
Collapse
X
-
Hide indicator in list?
Is there any way to have an indicator NOT show up in the indicators window, e.g. by setting an attribute like [Gui.Design.DisplayName("Name")]? I have some indicators which I access programatically from other indicators but which are not meant to be added to a chart directly by the user (therefore I want to hide them in the list).
Tags: None
-
Depending on how robust NT's reflection code is you might be able to hide them by using a surrogate type.
You could also try using Reflection.Emit to generate the types at runtime after NT has created its indicators list.
Or perhaps non-public child classes of another indicator?
Not sure if any of those will work but just ideas off the top of my head =)
Comment
-
thanks for the ideas. i don't think that will work though because indicators are not created directly (i.e. new myindicator) but through a medthod which is added to the indicator base class and which is defined in the ninjatrader generated code section (i.e. NT does not use reflection i think). as far as i understand it, things like caching etc. are done in this method so i guess just creating an indicator directly (or defining it with emit without adding that method to the base class) won't work.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
344 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
557 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment