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,

    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.

        Comment


          #5
          Bertrand,

          thank you for your answer.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          21 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          121 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          175 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          92 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          134 views
          0 likes
          Last Post cmoran13  
          Working...
          X