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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
37 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
14 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
20 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
22 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment