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 Rapine Heihei, Today, 08:19 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 08:25 PM
        0 responses
        6 views
        0 likes
        Last Post Rapine Heihei  
        Started by f.saeidi, Today, 08:01 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 07:51 PM
        0 responses
        8 views
        0 likes
        Last Post Rapine Heihei  
        Started by frslvr, 04-11-2024, 07:26 AM
        5 responses
        98 views
        1 like
        Last Post caryc123  
        Working...
        X