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 algospoke, Yesterday, 06:40 PM
          2 responses
          19 views
          0 likes
          Last Post algospoke  
          Started by ghoul, Today, 06:02 PM
          3 responses
          14 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          45 views
          0 likes
          Last Post jeronymite  
          Started by Barry Milan, Yesterday, 10:35 PM
          7 responses
          20 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by AttiM, 02-14-2024, 05:20 PM
          10 responses
          180 views
          0 likes
          Last Post jeronymite  
          Working...
          X