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 rhyminkevin, Today, 04:58 PM
        4 responses
        51 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Started by iceman2018, Today, 05:07 PM
        0 responses
        5 views
        0 likes
        Last Post iceman2018  
        Started by lightsun47, Today, 03:51 PM
        0 responses
        7 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        14 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        50 views
        0 likes
        Last Post futtrader  
        Working...
        X