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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
156 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
90 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
140 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment