Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator as Parameter
Collapse
X
-
Indicator as Parameter
Is there a supported method of adding a parameter to an indicator that allows the user to select another indicator to use in it's calculations? I know we can use 'Input', but I need multiple parameters so the user can select multiple indicators as 'Inputs'.Tags: None
-
Hello SystemTrading,
Thanks for the note.
You could follow this example where a Type Converter is used to display an enum (among other items)
And you can decide what indicator to used based on what the user selects for the enum.
Alternatively, you can use the "FriendlyBoolConverter" that is in this example as well to turn indicators on and off in the script.
EDIT:
Here is an easier enum example for user inputs:
Please let us know if we may be of any further assistance.Last edited by NinjaTrader_ChrisL; 04-12-2018, 10:19 AM.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
81 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
66 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment