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:

    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.




    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.

    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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        672 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        577 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X