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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
35 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
12 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
18 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
20 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment