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 burtoninlondon, Today, 12:38 AM
        0 responses
        10 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        14 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        14 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,983 views
        3 likes
        Last Post jhudas88  
        Working...
        X