How do I add a series of data so that it automatically collects the same time as the graph? I want to add 5-minute volumetric data to a 5-minute graph and if I change the graph to 3 minutes, I also change the volumetric data.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
adddata
Collapse
X
-
adddata
AddVolumetric("ES 03-18", BarsPeriodType.Minute, 1, VolumetricDeltaType.BidAsk, 1);
How do I add a series of data so that it automatically collects the same time as the graph? I want to add 5-minute volumetric data to a 5-minute graph and if I change the graph to 3 minutes, I also change the volumetric data.Tags: None
-
Hello franatas,
Thank you for your post.
Unfortunately, it is not supported to add a data series dynamically. This is noted in the help guide:- "Arguments supplied to AddVolumetric() should be hardcoded and NOT dependent on run-time variables which cannot be reliably obtained during State.Configure (e.g., Instrument, Bars, or user input). Attempting to add a data series dynamically is NOT guaranteed and therefore should be avoided. Trying to load bars dynamically may result in an error similar to: Unable to load bars series. Your NinjaScript may be trying to use an additional data series dynamically in an unsupported manner."
With all that said, there is an existing feature request to add support of dynamically loading a data series. I will gladly add your vote to that request. The internal tracking number for this feature request is SFT-882. Please reference this internal tracking number when contacting Platform Support if you ever have questions regarding this feature request.
When a feature request is implemented, you'll find a description of the new feature in the release notes:Thank you for using NinjaTrader.
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
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment