Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Sum of Series
Collapse
X
-
Hello r3n3v,
Thank you for your inquiry.
To clarify, are you simply wanting to add the close price of a bar to the volume of that bar, are you wanting to sum up all values in the close series and all the values in the volume series and then add those togther, or something else entirely? If you can clarify the use case that'd be helpful.
If you're just wanting to add the values together you could do something like this on each bar update, for example:
double AddedValues = Close[0] + Volume[0];
Thanks in advance; I look forward to assisting you further.
-
Hello r3n3v,
Thank you for your reply.
In that case you can simply use SUM():
For example: SUM(Close, CurrentBar)[0] would give you the sum of all the values of the close prices for each bar on the chart up to and including the most recent bar.
Please let us know if we may be of further assistance to you.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
63 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
91 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
48 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
105 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
63 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment