Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator Property - Pick List
Collapse
X
-
Indicator Property - Pick List
I need to allow my user to select an indicator and plot to use as a stop loss value. How would I implement the property so the user gets a list of installed indicators? Thanks.Tags: None
-
Hello, thanks for your post.
This stack overflow answer gets a list of items in a namespace using reflection. For the "string nspace = "...";" variable, you would substitute "string nspace = "NinjaTrader.NinjaScript.Indicators";"
See the "friendly enum" property converter in this example for an example of making an enumeration property.
Best regards.
-
Thanks for the swift reply. I posted in NT7. Do you have an example for the second part for NT7?
"See the "friendly enum" property converter in this example for an example of making an enumeration property."
Comment
-
Hello, sorry about that. The same applies to NinjaTrader 7. Just re-create the "MyEnum" property under "Use Case #4: Display "friendly" enum values"
Edit: I found this reference sample for NT7:
Last edited by NinjaTrader_ChrisL; 07-26-2019, 11:59 AM.
Comment
-
For anyone who might want to use this, if you are using NT7, the namespace filter should be NinjaTrader.Indicator, not NinjaTrader.NinjaScript.Indicators which is NT8.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
45 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
14 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
20 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
22 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment