Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Renko backtesting wrong behavior

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

    Renko backtesting wrong behavior

    Hello NT friends

    I think its a serious problem
    I was backtesting a stratey in Renko bars and the results was very good. I suspect that some thing was bad, and yes, some thing its very bad.

    The Renko historical backtesting NOT close the orders correctly in spite of "CalculateOnBarClose= true"


    The historical backtest close positions WHEN the next bar open, NOT when the last bar close....

    Luckily I tried the strategy replaydata, where the orders are close corretly where the last bar close.

    How could i solve it? Its an NT bug whitout solution?

    Please, Could you help me?
    Attached Files
    Last edited by ninjo; 09-13-2015, 05:13 AM.

    #2
    Some help to configure my strategy for close the orders when the last bar close in renko charts?

    Thank you for any idea

    Comment


      #3
      Hello ninjo,

      Thank you for your inquiry.

      Unfortunately, utilizing Renko bars through backtesting will not give you accurate results due to how Renko bars are built.

      If you are looking to backtest on Renko bars, you should utilize the concept of intrabar granularity: http://ninjatrader.com/support/forum...ead.php?t=6652

      If you want to simulate real time as close as possible, it would be best to utilize Market Replay rather than backtesting if you would like to use Renko bars.

      I would also suggest reading this link in our help guide for the discrepancies between real-time and backtesting: http://ninjatrader.com/support/helpG...ime_vs_bac.htm

      Please, let us know if we may be of further assistance.
      Zachary G.NinjaTrader Customer Service

      Comment


        #4
        Thank you Zachary

        I think i could go crazy with intrabar granularity concept.
        And test real data with replay... Can download 1 year of historical data in one time? or i need to download day by day... I think i could go crazy testing one year in replay with real data.

        I think it would be much easier if NT calculate the backtesting correctly when the last bar is closed and NOT when the next bar is opened....


        Have NT programmers team any problem with it? I think its an extremely simple task with a very high utility for us.

        Thank you.

        Comment


          #5
          Originally posted by ninjo View Post
          Some help to configure my strategy for close the orders when the last bar close in renko charts?

          Thank you for any idea
          Search the forum on the string: "renko backtest problem", and you will get an education on why you should not be trusting anything that you get on a Renko Chart, whether backtesting or trading realtime. Heck, especially trading realtime. This particular post is particularly apposite: http://ninjatrader.com/support/forum...ad.php?t=69783

          If that leaves you still unconvinced, do a search for posts by me that include the "Renko" word. I have a few choice words in there.
          Last edited by koganam; 09-14-2015, 10:05 PM. Reason: Corrected spelling.

          Comment


            #6
            Hello ninjo,

            Unfortunately, through the NinjaTrader platform, you will only be able to download one day of Market Replay data at a time.

            However, you can enable the Replay Recorder in order to record live data when you are connected to a data feed. All live data from instruments that are active in any NinjaTrader window will be recorded for replay.

            To do this, you'll want to click on Tools -> Options in the NinjaTrader Control Center. Once the Options window pops up, you'll want to select the Data tab and check mark the box next to "Record for market replay".

            For more information about using the Market Replay recorder, please take a look at the NinjaTrader help guide at this link: http://ninjatrader.com/support/helpG.../?set_up12.htm

            To clarify, strategies are processed at the close of each bar during backtesting.
            Zachary G.NinjaTrader Customer Service

            Comment


              #7
              I have very good consistency between backtest and Live trading using a strategy applied to RENKO Chart.

              You need to add tick series for ASK and BID of the Instrument you trade, and send all market orders to the tick series, so you get an 'immediate' entry and Exit, albeit with some slippage sometimes, which depends on fill conditions.

              I still use only the RENKO brick closes for the entry signals.

              On Ninja Continuum, you can download about one year worth of tick data.

              Hope, this helps.

              Cheers,
              Martin

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by rhyminkevin, Today, 04:58 PM
              0 responses
              12 views
              0 likes
              Last Post rhyminkevin  
              Started by lightsun47, Today, 03:51 PM
              0 responses
              6 views
              0 likes
              Last Post lightsun47  
              Started by 00nevest, Today, 02:27 PM
              1 response
              14 views
              0 likes
              Last Post 00nevest  
              Started by futtrader, 04-21-2024, 01:50 AM
              4 responses
              48 views
              0 likes
              Last Post futtrader  
              Started by Option Whisperer, Today, 09:55 AM
              1 response
              15 views
              0 likes
              Last Post bltdavid  
              Working...
              X