• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 ?

    http://ninjatrader.com/support/helpGuides/nt8/en-us/

    http://ninjatrader.com/support/helpGuides/nt8/en-us/

    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.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      sorry but i don't understand difference :

      https://gyazo.com/1ba423733c9faf83b7edb0deecbb5497

      https://gyazo.com/30777c6a6ad586e170de4a4821a1121c


      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.
        Patrick H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by babouin77, Yesterday, 08:37 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by tomd0361, Yesterday, 08:58 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by Talicer, Today, 05:40 AM
        0 responses
        1 view
        0 likes
        Last Post Talicer
        by Talicer
         
        Started by PG7940, Today, 04:36 AM
        0 responses
        3 views
        0 likes
        Last Post PG7940
        by PG7940
         
        Started by elliot5, Today, 03:40 AM
        0 responses
        6 views
        0 likes
        Last Post elliot5
        by elliot5
         
        Working...
        X