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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          51 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          142 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          160 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          96 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          275 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X