Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No zero volume bars.

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

    No zero volume bars.

    NinjaTrader 7.0.1000.4 with Interactive Brokers

    For historical minute data, NinjaTrader always displays a minimum volume of 1 for each bar, even if there was no trade. I have now modified my volume indicator by using the following formula

    Code:
    volume = Math.Max(0,Volume[0]-1);
    Is this a NinjaTrader problem, or is this related to the historical data downloaded from Interactive Brokers?

    #2
    Hi Harry, on which instruments are you seeing this in your testing? There was an IB adapter change in R4 (4377 in the release notes) related.



    Thanks,
    BertrandNinjaTrader Customer Service

    Comment


      #3
      All futures contracts with Interactive Brokers showed that behavior.

      If there is a minimum volume of 1 this will falsify the volume data. I understand that there can be a division by zero problem, if volume is allowed to be 0.

      The problem here is that some data suppliers insert empty (zero volume) time-based bars if no trade occurred. This includes Interactive Brokers. NinjaTrader then adds volume to those bars, which in the end will give false volume for these bars and a false total volume as well.

      So, why is the volume set to a minimum value of 1?

      Comment


        #4
        Thanks Harry, development clarified that this is an internal NT requirement, all historical bars have this minimum volume. It's on our list for the future to allow bars with 0 volume.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Bertrand,

          thank you for your answer.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Aviram Y, Today, 05:29 AM
          0 responses
          2 views
          0 likes
          Last Post Aviram Y  
          Started by quantismo, 04-17-2024, 05:13 PM
          3 responses
          25 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          34 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          6 views
          0 likes
          Last Post cls71
          by cls71
           
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          217 views
          1 like
          Last Post PaulMohn  
          Working...
          X