Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting using Renko bars close price

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

    Backtesting using Renko bars close price

    Hi,

    I have a strategy using Renko bars which processes the logic at the close of each bar. The strategy logic uses the close of the current and previous bars to generate the trade signal.

    I understand that backtesting in NinjaTrader using Renko bars is not advised due repainting of the bar. If I am not bothered by how the bar forms, just the close price and whether it is red or green will that still have issues for backtesting?

    Thanks,

    Neil

    #2
    Yes, unless you take extra steps e.g. 1-tick series for back-testing and place all of your orders there - a key problem is that the Renko OHLC bars do not reflect the prices that actually traded during that bar's time period.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello Neil,

      Thank you for your post.

      You could still see potential differences between real-time Renko bar values (including the close price and whether it is red or green) and the results from a backtest if you do not use a workaround to aim for achieving more accurate results. You could consider testing using the Playback Connection rather than the Strategy Analyzer, or use a Renko bar type with either the High Order Fill Resolution of 1 tick or submitting orders to a single tick data series as mentioned in the section at the bottom of this page:For a more in-depth description of the differences between backtest vs. real-time results, please see the following post from a colleague:Please let us know if we may be of further assistance.

      Comment


        #4
        Originally posted by QuantKey_Bruce View Post
        Yes, unless you take extra steps e.g. 1-tick series for back-testing and place all of your orders there - a key problem is that the Renko OHLC bars do not reflect the prices that actually traded during that bar's time period.
        Thanks QuantKey_Bruce, I can understand the high & low's not being different during the bars' time period to the final bar but would the open & close prices not be the same?

        Comment


          #5
          No, that is not correct. The opening price is not necessarily a price that even traded during the time period of the bar (because the Renko bricks are all forced to be the block size tall even if only one price traded during that time before the bar advanced) and the closing price is almost certainly not the last price that traded because the price has to trade past that for the block to close. So, if you were to graph just the OHLC of the prices that actually traded, many small Renko bars would actually be dojis.
          Bruce DeVault
          QuantKey Trading Vendor Services
          NinjaTrader Ecosystem Vendor - QuantKey

          Comment


            #6
            QuantKey_Bruce - thanks for your reply, it has helped me better understand the issues.

            I guess as an absolute minimum if you do need to use StrategyAnalyser to backtest a strategy using Renko bars then you'd need to factor in a high degree of slippage if using the close prices to 'fudge' a more real world price.

            Comment


              #7
              Well, yes, and what's really more severe is many strategy designers plan on entering with a limit order, and those are almost certainly going to give false results when tested on Renko bars unless really serious measures are used to get accuracy in the tests. Almost every simple and easy test of limit order strategies on Renkos is false.
              Bruce DeVault
              QuantKey Trading Vendor Services
              NinjaTrader Ecosystem Vendor - QuantKey

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              42 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              124 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              65 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              42 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              46 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X