Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help wit backtesting vs. live trading a strategy

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

    Help wit backtesting vs. live trading a strategy

    Hello,
    This is my first ever post so please bear with me if I screw it up...

    I've created a strategy where the entry conditions are given by a combination of 180 minute and 60 minute bars. Basically, I check for entry conditions on the FistTickOfBar. For example, if I were trading live, at 11:00, on the 180 minute bar (timestamped 14:00) I would check the previous bar (from 8:00 to 11:00) and I would check the 10:00 (timestamped 11:00) 60 minute bar (from 10:00 to 11:00)

    The problem I have is the following:

    If my understanding is correct, when backtesting, bar sequence will be
    11:00 180 minute bar
    11:00 60 minute bar
    12:00 60 minute bar
    13:00 60 minute bar
    14:00 180 minute bar
    ...

    While on live trading, the sequence would be:
    14:00 180 minute bar
    11:00 60 minute bar
    12:00 60 minute bar
    13:00 60 minute bar
    17:00 180 minute bar
    ...

    #1 Is my understanding correct on how the bars are read?

    If so, my question is:

    #2 Does anyone know how to emulate the behavior of live trading during the backtest? I have not been able to perform adequate backtests because of this. Basically, I can "read" the correct 180 minute bar, but I'm reading the wrong 60 minute chart, actually, three hours wrong...

    I would appreciate any and all help. Thanks!

    #2
    #1. Depends on the order you add the multi series in. You can see what I mean by redoing which series is primary and which is secondary and seeing how the prints happen.

    #2. This may help: http://www.ninjatrader-support2.com/...ead.php?t=6652
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh,
      I finally realized where my mistake was. It was conceptual more than with the actual use of the software. Your comments made me realize what I was doing wrong. I appreciate the help.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      77 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      45 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      27 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      63 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X