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

Backtest Tick Replay vs Order Fill Resolution High

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

    Backtest Tick Replay vs Order Fill Resolution High

    Hello ,

    ► 1) I tested my strategy once with TickReplay and later with Order Fill Resolution on high.
    I had 81 trades with TickReplay and only 51 trades with O.F.R High.
    Which setting is more precise now? Shouldn't I have more trades with O.F.R High or at least as many as with TickReplay?
    I have already read the Ninjatrader manual. I can therefore not fully explain the results

    ► 2) Even if I choose TickReplay for the normal backtest, does it only calculate it based on the closing price? The tick data are then only used for the indicators?

    ► 3) If I want the same results in live trading as in the backtest (without O.F.R High)! Should I then simply set the -> live mode (!) To Calculate based on the closing price?
    Would I get the results 1 to 1 like in the normal backtest (with TickReplay) ?

    ► 4) If I choose a very small unit of time or volume (additional Data) for GetCurrentBid, would I get a much more accurate result in the test?
    For Example : For example: I choose Series 1 for CurrentBid with the setting 1 second (see attachment)

    Then it would cover almost all price changes, although it only takes the closing price ?
    Would this be a good alternative solution to get the backtest even more accurate?

    Thank you in advance for your help!


    Best Regards

    #2
    Hello Yannick,

    TickReplay does not increase accuracy with order fills.

    Below is a link to a forum post about intra-bar granularity, tick replay, and order fill resolution.


    When TickReplay is enabled, OnBarUpdate will update according to the Calculate setting. If set to .OnEachTick, OnBarUpdate will update for every tick. However, those updates are not used for fill prices.

    If you want the same results (or as close as possible) in historical as real-time, add 1 tick intra-bar granularity to the script and place orders to that added series and also enable TickReplay.

    GetCurrentBid() returns the close price in historical data.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Ok, to make sure again. If I want to get the same results as in the normal backtest, how do I have to use the strategy in live trading?
      Would I get the same results as in the backtest if I choose "Calculate based on closing price"?
      Normally he would have to do the same as in the backtest, right?

      Not that I work on the strategy all the time and in the end all the effort was in vain

      Best Regards

      Comment


        #4
        Hello Yannick,

        The Calculate setting should be the same in real-time as in historical. TickReplay should be used if Calculate is not set to OnBarClose.

        If you are running with Calculate as OnPriceChange in real-time, use TickReplay with Calculate as OnPriceChange in historical.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by elirion, Today, 01:36 AM
        0 responses
        3 views
        0 likes
        Last Post elirion
        by elirion
         
        Started by gentlebenthebear, Today, 01:30 AM
        0 responses
        4 views
        0 likes
        Last Post gentlebenthebear  
        Started by samish18, Yesterday, 08:31 AM
        2 responses
        9 views
        0 likes
        Last Post elirion
        by elirion
         
        Started by Mestor, 03-10-2023, 01:50 AM
        16 responses
        391 views
        0 likes
        Last Post z.franck  
        Started by rtwave, 04-12-2024, 09:30 AM
        4 responses
        34 views
        0 likes
        Last Post rtwave
        by rtwave
         
        Working...
        X