Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarsType + TickReplay + Indicators

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

    BarsType + TickReplay + Indicators

    I attach a custom bars type to display volume bars. It is very similar to the standard VolumeBarsType. It works fine.

    When I load the VOL indicator to verify the custom bars type, the values are correct. All values surround 500.

    The bug happens when a second indicator is loaded on the chart (for example SMA), then the values are wrong.

    Video with the bug:

    Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.




    Test:

    Beta 6.
    Instrument ES 12-15.
    BarsType = Zb8VolumeBars.
    Value = 500.
    Tick Replay = true.
    Days to load = 2.
    Disconnected from datafeed.
    Attached Files

    #2
    Hello cls71,

    Thanks for your post.

    Using your custom bar type I could recreate the conditions in your video. Using standard volume bars I could not recreate the conditions.

    You might want to review the Volume bar type to assist in creating yours. One difference is that your bars are built from minute bars (which might suggest the volume you are seeing) whilst the Volume bars are built from tick data.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thanks Paul,

      I have tested with BarsPeriodType.Tick and it happens the same.

      Sometimes an exception is catched in the log. This exception points to the bar number 8528 when there are only 8512 bars in the chart.

      The exception is thrown by the SMA standard.

      I reviewed my code very throughly before publishing this bug and didnt see any error in the code.
      Attached Files

      Comment


        #4
        Resolved. This condition must be added:

        Code:
        if (!bars.IsResetOnNewTradingDay || !bars.SessionIterator.IsNewSession(time, isBar))
        Thanks

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DavidHP, Today, 07:56 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by kujista, Today, 06:23 AM
        3 responses
        9 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by Mindset, Yesterday, 02:04 AM
        2 responses
        18 views
        0 likes
        Last Post NinjaTrader_RyanS  
        Started by f.saeidi, Today, 08:03 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by samish18, 04-17-2024, 08:57 AM
        15 responses
        53 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X