Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DIFFERENCE GetVolume() and Volume

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

    DIFFERENCE GetVolume() and Volume

    hi,

    what is difference to use the first or the second ?





    Is the same?

    thanks

    #2
    Hello esignal,

    Thank you for your post.

    GetVolume() grabs the current volume value. Volume is a collection of historical volume based on the primary bar series - so how much volume in the 1 minute bar if you are running a 1 minute chart.

    Comment


      #3
      sorry but i don't understand difference :






      Bars.GetVolume(int Index) and Volum[int barsAgo] are different classes but same result?

      Comment


        #4
        Hello esignal,

        Thank you for your patience.

        Bars.GetVolume, Bars.GetHigh, Bar.GetLow, etc. are all essentially the same as pulling Volume, High or Low. The Bars.Get... equivalent will be the count of bars from left to right as they are built. So you could call Bars.GetVolume with CurrentBar - 1 (as in Bars.GetVolume(CurrentBar - 1)) to get the most recent bar. The documentation currently reflects using 0 to pull the current bar but this will need to be changed.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        666 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        377 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        110 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X