Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Different Results between strategy analyzer and running strategy live

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

    #16
    It seems that line break charts, like renko, repaint the open.

    Comment


      #17
      Hello samish18,

      Thanks for your response.

      I looked at the code for LineBreak and it does utilize IsRemoveLastBarSupported similar to Renko (although this is not mentioned in the Help Guide page for backtesting considerations).

      You are correct, they are similar to Renko in that they can change the open price after the bar is formed. This wouldn't work well for backtesting and is not compatible with Tick Replay.

      If you want to backtest using Line Break charts, it may be better to do backtesting using Playback with Market Replay for higher accuracy.

      Comment


        #18
        Would it be possible to add a minute data series to the strategy and execute orders on the minute series to correctly simulate using linebreak charts? I tried doing this and the executions are nothing like the charts

        Comment


          #19
          Hello samish18,

          You can always try implementing intrabar granularity to try to get more accurate results by submitting orders to a more granular series.



          However as mentioned, since LineBreak bars use IsRemoveLastBarSupported like Renko they are also not ideal for backtest and are very difficult to simulate historically.

          The other would be to use the Playback Connection with Market Replay data, this would simulate getting real-time data from the data that you have either recorded/downloaded.

          Comment


            #20
            Just for clarification: the close of a bar on a line break chart is the correct close, it is just the open that is incorret?

            Comment


              #21
              Hello,

              It is likely that the Close will remain the same if the ticks that built the bar are exactly the same. However, it is possible that ticks can be included with different bars because of the time stamp or that the real-time ticks are different than the historical ticks, which could cause a different Close.

              Comment

              Latest Posts

              Collapse

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