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: 3 min candles- Multi timeframe - OnTickUpdate

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

    Backtest: 3 min candles- Multi timeframe - OnTickUpdate

    How can I genuinely (and as accurately as possible) backtest a strategy that relies on ES-3mins candles. Has multi timeframe checks. Logic written on OnTickUpdate.

    If i use the regular backtest it gives me flawed results, as NT only has High-Low-Open-Close values for each bar. I cant use ontickreplay, because it has Multiple timeframes.

    Any help or suggestions?

    #2
    Hello GauthamK,

    Are the hosted indicators using added series or just the host strategy?

    Adding a 1 tick series for accuracy with order fills, and to trigger intra-bar actions is possible. However, indicators would not update their prices on each tick or price change unless TickReplay is enabled.

    Below is a link to a forum post about intra-bar granularity.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea.

      Yes i have added a series for 2nd timeframe. That is why i cant use the tick replay. Any other suggestions?

      Comment


        #4
        Hello GauthamK,

        If the hosted indicator has multiple series it would not be possible for these series to work with TickReplay.
        The indicator would need to be designed to run using a 1 tick series as the primary series.
        Or you would need to accept the indicator will only be updating when the bar closes.
        Or you can use Playback to test the script on a chart in real-time playback using MarketReplay data or historical 1 tick data, without taking advantage of the Strategy Analyzer.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by warreng86, 11-10-2020, 02:04 PM
        4 responses
        1,354 views
        0 likes
        Last Post mathewlo  
        Started by Perr0Grande, Today, 08:16 PM
        0 responses
        2 views
        0 likes
        Last Post Perr0Grande  
        Started by elderan, Today, 08:03 PM
        0 responses
        5 views
        0 likes
        Last Post elderan
        by elderan
         
        Started by algospoke, Today, 06:40 PM
        0 responses
        10 views
        0 likes
        Last Post algospoke  
        Started by maybeimnotrader, Today, 05:46 PM
        0 responses
        12 views
        0 likes
        Last Post maybeimnotrader  
        Working...
        X