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 Barry Milan, Yesterday, 10:35 PM
      5 responses
      16 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by DanielSanMartin, Yesterday, 02:37 PM
      2 responses
      13 views
      0 likes
      Last Post DanielSanMartin  
      Started by DJ888, 04-16-2024, 06:09 PM
      4 responses
      12 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by terofs, Today, 04:18 PM
      0 responses
      11 views
      0 likes
      Last Post terofs
      by terofs
       
      Started by nandhumca, Today, 03:41 PM
      0 responses
      8 views
      0 likes
      Last Post nandhumca  
      Working...
      X