Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

LineBreak bars do not load correctly in real time

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

    LineBreak bars do not load correctly in real time

    When running a strategy live vs in a backtest, LineBreak bars load differently. I have gotten more or fewer breaks in the live environment and then when I pull up a chart ~12 hours later, the bars are corrected

    #2
    Hello samish18,

    LineBreak bars are like renko bars and change the open.

    This bar type (as well as renko bars) build different in backtest and cannot be used with TickReplay.



    I would recommend instead testing using Playback with Market Replay data.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I am not referring to a changing open price, I am referring to a different number of bars altogether. I printed the time and indicator values of each bar for a live test and backtest - the first bars 9/25 were different (as in more breaks)
      Attached Files

      Comment


        #4
        Hello samish18,

        To confirm, you are no longer using LineBreak bars which form differently in backtest due to the nature of this bar type changing the open?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          I am using LineBreakbars. I am well aware that the open of linebreak bars repaints. My issue is that, as shown in the previously attached files the bars load differently not just in opens, but in breaks. Please look at the first bars on 9/25 in the two files - on has far more frequent breaks than the other

          Comment


            #6
            Hello samish18,

            LineBreak bars can form differently in backtest which can affect bars moving forward.

            You could also right click the chart and Reload all historical data if you feel there are gaps in the data.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            45 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            21 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            31 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            50 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            42 views
            0 likes
            Last Post CarlTrading  
            Working...
            X