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 sjsj2732, 03-23-2026, 04:31 AM
|
0 responses
69 views
0 likes
|
Last Post
by sjsj2732
03-23-2026, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
312 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
306 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
146 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
105 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment