Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

dayBarVolume vs. minuteBarVolume?

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

    dayBarVolume vs. minuteBarVolume?

    In a couple of my indicators I have the following setup:

    ---------------------
    Add(PeriodType.Day,
    1); // Add a 1 day Bar object (default security), BarsInProgres index = 1
    Add("SPY", PeriodType.Minute, 1); // Add a 1 minute Bar object (SPY), BarsInProgres index = 2
    Add("SPY", PeriodType.Day, 1); // Add a 1 day Bar object (SPY), BarsInProgres index = 3

    -----------------------------------------

    When I request:

    Print (Volumes[3][0]);

    the result is 307MM shares for 7/29. This appears to be the correct value.

    However, when I request:

    Print (Volumes[2][0]);

    from minute bars (onclose) and from

    time integers 093100 to 160000 ,

    and then sum all values, the result is 236MM, off by almost 25%.

    I must be missing a Session concept or some similar element in my code.

    BTW, using Kinetic for data and confirming with Yahoo Finance.


    Any ideas? Thanks in advance.



    Regards.

    #2
    alabell, please try summing over the extended trading hours as well as the regular trading hours and see if the volumes match after that.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Thanks for the response Austin.

      Using every trade that happened from 4 AM (i started my minute bars at 030000).

      and going until 10 PM (although last print was at 200000, or 8 PM)

      I get closer...up to 278MM for friday's volume...still a solid 10% lower than what I would have expected, given the value from the one day bar.

      More importantly than % though, is this: where are the 29MM shares that are represented by this 10%? This respresents a substantial amount of trading, in both time and volume.

      Thanks again and kind regards.

      Just to confirm: doing the same methodology for 7/28 (thursday of last week) leaves me short 18MM shares when adding all minute bars...one day volume bar lists 207MM which is confirmed by external sources.
      Last edited by alabell; 07-31-2011, 05:17 PM. Reason: additional info

      Comment


        #4
        alabell, thanks for the additional info. I believe there are some trades that get entered into the total volume figure that aren't reported directly as a trade. These are things like OTC trades, that must be reported to the exchange, but don't appear as individual trades. I will have someone respond tomorrow with some clarification.
        AustinNinjaTrader Customer Service

        Comment


          #5
          Hi alabell, Austin's correct here - there's is unfortunately an expected difference as the daily bar volume does contain the so called 'non last qualifying' trade volumes as well.
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Thank you guys, I can live with this so long as I know how to deal with it, and now I do.

            Regards to both.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by arvidvanstaey, Today, 02:19 PM
            4 responses
            11 views
            0 likes
            Last Post arvidvanstaey  
            Started by samish18, 04-17-2024, 08:57 AM
            16 responses
            60 views
            0 likes
            Last Post samish18  
            Started by jordanq2, Today, 03:10 PM
            2 responses
            9 views
            0 likes
            Last Post jordanq2  
            Started by traderqz, Today, 12:06 AM
            10 responses
            18 views
            0 likes
            Last Post traderqz  
            Started by algospoke, 04-17-2024, 06:40 PM
            5 responses
            47 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X