Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest Trading Hours Positions Discrepancy?

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

    Backtest Trading Hours Positions Discrepancy?

    I'm backtesting an ES futures strategy (Jun24 contract) using all the same values & information on each of the 3 backtests with the exception of what trading hours I'm using. The attachment shows the orders executed for each backtest. The first chart (on top) has "Use Instrument Settings" trading hours, the 2nd (middle chart) has CBOE US Index futures RTH, and the 3rd (bottom chart) has CBOE US Index futures ETH. I would expect the top chart & bottom chart to have similar results (if not exactly the same) which they do (I'm assuming ES "Instrument Setting" is similar to CBOE US Index futures ETH). What I do not understand is why the trades showing in the middle chart for CBOE US Index futures RTH are not also included in the other two charts since the times for those trades should be inclusive in the other two charts timeframes (those trades occurred at 1:13 pm and 10:38 am). Am I missing something? Anyone know the rationale behind this possible discrepancy? What are the specific times for each of the above mentioned trading hours?

    #2
    Hello obiwan_cashobi,

    Thanks for your post.

    You could view the Trading Hours templates start/end times in the Tools > Trading Hours window.

    See this help guide page for more information about viewing Trading Hours templates: https://ninjatrader.com/support/help...urs_window.htm

    To view what Trading Hours template an instrument uses, you can use the Instruments window. Search for and select the instrument in the Instruments window and note the 'Trading hours' property listed.

    See this help guide page for more information about using the Instruments window: https://ninjatrader.com/support/help...nstruments.htm

    By default, the ES instrument uses the CME US Index Futures ETH trading hours template.

    If backtest are not using the same exact settings and data to calculate the backtest then reported results could differ. For example, changing the Trading Hours template would alter the data the strategy is calculating on so the 2nd Strategy Analyzer window could have different results than the 1st and 3rd Strategy Analyzer windows.

    Further, please review the help guide document on the differences on real-time vs backtest (historical) which is important to keep in mind.

    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thank you so much NinjaTrader_BrandonH . The information you have provided completely answers my questions. Specifically, "changing the Trading Hours template would alter the data the strategy is calculating on so the 2nd Strategy Analyzer window could have different results than the 1st and 3rd Strategy Analyzer windows." I vey much appreciate your time. Have a great week!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X