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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          31 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, Yesterday, 02:41 AM
          0 responses
          14 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          22 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          34 views
          0 likes
          Last Post CarlTrading  
          Working...
          X