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 - Order Execution Problem

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

    Renko Backtesting - Order Execution Problem

    Dear support,

    Is there any progress on the issue?




    I have the same issue with the Renko backtesting and I agree with the previous comments in the thread's above.
    This means Order Execution at open price of the next bar is generating an unreliable and inaccurate backtest result.

    In my opinion, the Order Execution in Renko backtesting should take place on Close at Current Bar (this would be desirable as an option in backtesting, because I'm used to this with other trading platforms).
    The usage of multi-timeframes (e.g. tick.1 as second timeframe) is impractical as well, because the duration of the calculation will be massive increased when trying to optimize the strategy.

    Thanking you in advance for your reply.
    Last edited by tulx2305; 11-13-2012, 02:39 AM.

    #2
    tulx2305. thanks for the post and welcome to our forums - this item has been added to our product enhancement list as suggestion, those are being actively used in development as we set the path for our next major upgrade - I could not give you an ETA or commitment though at this point.

    For now, the adding of a 1 tick series to generate more accurate backtest results on those more exotic bars types would be the best approach. Another option is to run your tests in Market Replay, here the intra-bar granularity down to the tick level would be available as well of course.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hello Mr. Betrand,

      thank you for your replay.

      So atm i use a workaround with a own fill type (Fill On Close):
      Unfortunately the Strategy SlipPage calcuation no longer works, do you have any ideas?

      Many thanks and greetings

      --------
      if (order.OrderType == OrderType.Market)
      {
      //Change for buy on Close
      if (order.OrderAction == Cbi.OrderAction.Buy || order.OrderAction == Cbi.OrderAction.BuyToCover) // set fill price
      FillPrice = Math.Min(Strategy.Closes[0][0], Strategy.Closes[0][0] + SlippagePoints);
      else
      FillPrice = Math.Max(Strategy.Closes[0][0], Strategy.Closes[0][0] - SlippagePoints);
      }
      --------

      Comment


        #4
        Slippage would unfortunately not be applicable here, since this is a backtesting item only - there's no historical fill processing with ATM's. I would just try to factor it into the avg trade you received when doing the replay, if a tick or two doesn't hurt too much....
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Carolscogginsi, Yesterday, 10:45 PM
        0 responses
        6 views
        0 likes
        Last Post Carolscogginsi  
        Started by RaddiFX, Yesterday, 10:15 AM
        2 responses
        15 views
        0 likes
        Last Post RaddiFX
        by RaddiFX
         
        Started by patrickmlee007, Yesterday, 09:33 AM
        2 responses
        18 views
        0 likes
        Last Post patrickmlee007  
        Started by magnatauren, 08-15-2020, 02:12 PM
        5 responses
        208 views
        0 likes
        Last Post RaddiFX
        by RaddiFX
         
        Started by rene69851, 05-02-2024, 03:25 PM
        1 response
        24 views
        0 likes
        Last Post rene69851  
        Working...
        X