Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sum of Series

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sum of Series

    How can we get a sum of a series of values. Like Close + Volume?



    #2
    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.

    Comment


      #3
      Sum all values in both series...not this......

      Comment


        #4
        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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        636 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        366 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        568 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        571 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X