MrBaffalo, we are going to add a bit more to our documentation to cover this requirement in the near future. To get rid of that error, you need to call AddDataSeries() for any bars series that the hosted indicator is calling, in order to provide the data it requires. When the data is being added by the hosting script, the call to AddDataSeries() in the hosted script will be ignored, so you don't have to worry about redundant data loading.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Pivots
Collapse
X
-
It is always advisable to add data series in State.Configure. You could play around with calling AddDataSeries() in later states, but you may see unexpected results.
MrBaffalo, we are going to add a bit more to our documentation to cover this requirement in the near future. To get rid of that error, you need to call AddDataSeries() for any bars series that the hosted indicator is calling, in order to provide the data it requires. When the data is being added by the hosting script, the call to AddDataSeries() in the hosted script will be ignored, so you don't have to worry about redundant data loading.Dave I.NinjaTrader Product Management
-
I have good news: I devised a way to do what I need to do, in spite of the new requirements:
1) During the strategy's State.Configure processing, create the nested indicator (whose name/identity isn't known until run time.)
2) Query the nested indicator as to which input data series it will need, if any, in addition to the main chart input data series.
3) Also during the strategy's State.Configure processing, add any additional input data series which any nested indicator needs but the containing strategy wouldn't otherwise add.
You should consider documenting that solution for the benefit of others.
Question: Does the same requirement also hold in cases where one indicator is nested inside another?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
670 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 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
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment