Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator Input
Collapse
X
-
Indicator Input
I'd like for my indicators to have flexibility for their data series inputs (eg, Medians[0], Lows[0]). What's the best way to do that?Tags: None
-
Hello spottysallrite,
I would suggest looking at the SMA and how its coded, you need to use the Input property to accept the Input series overload for your indicator.
If you want to deal with a variety of inputs that are not bar series you can see some examples of detecting the type of input in the following help guide page: https://ninjatrader.com/support/help.../nt8/input.htm
I have also attached a example of the ADX indicator modified to support input, that would be for use cases where the indicators logic uses specific series like High or Low and how to deal with that situation when an indicator is input instead of a bar series.
Attached Files
-
Ok, I thought that was the way to go (ie, "Input[0]"), and I did poke around on SMA before I made the original post here, but somehow I couldn't get that to work after some brief attempts. Looks like it's working now. Thanks !
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