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 reynoldsn, 05-10-2024, 07:04 PM
      6 responses
      37 views
      0 likes
      Last Post reynoldsn  
      Started by ETFVoyageur, 05-07-2024, 07:05 PM
      22 responses
      181 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by ETFVoyageur, Today, 02:15 AM
      5 responses
      30 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by drnoggin, Today, 12:19 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by synthhokie, Today, 12:00 PM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X