Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Some Range Bars have zero volume

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

    Some Range Bars have zero volume

    Add the Vol indicator to a chart that is using Range Bars and some of the bars have 0 volume. I think this is a bug.
    Attached Files

    #2
    This is possible and accurate.

    The reason is that range bars are built when a price trades outside of a range. If you have a range set for 4 ticks, and the current trade is 9 ticks away from the last trade, we would put in 2 synthetic bars (that have no volume) to represent the 8 ticks (2 full bars) of range that just gapped.

    This is the correct approach for range bars.
    RayNinjaTrader Customer Service

    Comment


      #3
      Phantom Bars

      These are also referred to as "phantom bars" in that they appear to represent the traded price but they really don't. Keep in mind while backtesting range bars that should your indicator or setup trigger a trade in the midst of several of these phantom bars, there will be no underlying volume to fill your order and you will get unrealistic performance results for that trade.

      I have found range bars most useful when applied to forex markets to allow more bar closing evaluation points than when the price action can breakout suddenly and all within a single 30 minute bar, for example.

      Regards,

      Whitmark
      whitmark
      NinjaTrader Ecosystem Vendor - Whitmark Development

      Comment


        #4
        Thanks for the further explanation Whitmark.
        RayNinjaTrader Customer Service

        Comment


          #5
          One could add a test such as volume>0 to ensure you aren't using a phantom bar.

          Doesn't always work for forex though .. no volume.

          Ray .. perhaps you could add a testable property such as 'isPhantomBar' ?

          That would remove all doubt and second-guessing.

          Comment


            #6
            Will add to list of future possible enhancements.
            RayNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by OllieFeraher, 05-09-2024, 11:14 AM
            6 responses
            18 views
            0 likes
            Last Post OllieFeraher  
            Started by PaulMohn, 05-02-2024, 06:59 PM
            2 responses
            41 views
            0 likes
            Last Post PaulMohn  
            Started by ETFVoyageur, Today, 02:10 AM
            0 responses
            8 views
            0 likes
            Last Post ETFVoyageur  
            Started by rayyyu12, Today, 12:47 AM
            0 responses
            8 views
            0 likes
            Last Post rayyyu12  
            Started by ETFVoyageur, 05-07-2024, 07:05 PM
            17 responses
            137 views
            0 likes
            Last Post ETFVoyageur  
            Working...
            X