Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting Multi Time Frames

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

    Backtesting Multi Time Frames

    Hi:

    When using multi time frames in a strategy, does NT backtest them properly or does it only look at the primary bars in backtesting?

    Please let me know and what, if anything, needs to happen in order to backtest multi time frame strategies.

    Thanks...

    #2
    As long as you expect that Calculate on Bar Close is always true, then yes backtesting over multiple series will typically backtest properly. Just as properly as doing a single series backtest except using multiple series would allow you to possibly get more accurate with intrabar data.

    Example of this:
    You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by


    Things to note when backtesting:


    The only reason I don't say "always" is because I'm sure there are cases that might cause issues when dealing with some custom bar types.
    LanceNinjaTrader Customer Service

    Comment


      #3
      Ok...will NT stock Line Break as a primary bar and then as secondary bars a regular daily and 60 min on the bar array work ok?

      Greg

      Comment


        #4
        Assuming the script was programmed properly they should.

        One thing I do want to note about the line break is that there can often be differences in a line break chart from real-time and historical data. Just like tick charts as data loads in real time and your computer plots the tick data if you were to reload it the charts may not be identical.

        The order of the series won't be as important except in instances when all three bars close at the same time. The way in which you handle each will matter.
        LanceNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        649 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        576 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X