Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can 15-Minute Bar Backtest bars start on 7:20AM Session Start instead of 7:15 AM?

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

    Can 15-Minute Bar Backtest bars start on 7:20AM Session Start instead of 7:15 AM?

    Hello,

    When backtesting a 15 minute bar strategy on a contract that opens at 7:20 AM, I noticed that that the first 15 minute bar starts at 7:15 AM each day instead of starting at 7:20 on the open, making the first 15 minute bar only a 10 minute bar.

    Is there any way I can get my 15 minute bar backtest bars to start on the open, at 7:20 AM, so that the first 15 minute bar is made up of the first 15 minutes of market activity after the Session Open?

    Thanks in
    advance,

    ChiTrader2000

    #2
    Hi ChiTrader2000, which market are you referring to? NinjaTrader will always use the closing time to stamp the bar.

    Comment


      #3
      Hello NinjaTrader_Bertrand,

      One example of a market I am having a problem with is CME Live Cattle, which opens at 9:05.

      When backtesting as well as charting CME Live Cattle with 15 minute bars, the first bar ends at 9:15 and contains only 10 minutes of data.

      I would like the first 15 minute bar in a CME Live Cattle back test to contain a full 15 minutes of data, starting from 9:05 and ending at 9:20.

      Is this possible in Ninja Trader?

      Thank you very much for the help!

      ChiTrader2000

      Comment


        #4
        Hi ChiTrader2000, you are welcome. I would also expect a bar from 9:05 to 9:20 but I will test this on my end. Which datafeed or broker are you on? Please also sync up your PC clock time and see if that makes any difference in your chars. Thanks!

        Comment


          #5
          Hello NinjaTrader_Bertrand,

          Thank you very much for your information and your time.

          I have figured out that my problem was that I wasn't setting the "Session begins (local time)" and "Session ends (local time)" values in the backtest dialog box.

          Once I did this, the 15 minute bar started at the open time, and ended 15 minutes later, as I desired. This is perfect.

          Thank you once again for the help!

          ChiTrader2000

          Comment


            #6
            Hi ChiTrader2000, you are welcome - great you got it figured out.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            558 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X