Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Times for tick and minute timeframes do not match

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

    Times for tick and minute timeframes do not match

    Hello, I'm testing a strategy which uses 5min timeframe for logic and 1-tick timeframe for order handling (5min is default, 1 tick is added). At the start of the second session I have Times[0][0] == {24.9.2012 15:45:00} but Times[1][0] == {21.9.2012 22:14:59}. The session starts at 15:30 and ends at 22:15, so 3 bars have been processed from the first timeframe, but none from the second. Moreover, orders are placed in the previous day context and the fills are incorrect. AFAIK, the Times[0] and Times[1] values should correspond to the same bar at the higher timeframe, right? Am I missing something?

    #2
    Hello mantak007,
    Timestamps for minute based bars and tick based bar may not match.

    Please refer to our help guide which further clarifies how the bars are built and how the time are reference to a bar.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hi, thanks for a quick but unfortunately not very helpful answer. The problem was in invalid tick data. After reloading everything worked as expected. Even the minute and tick bars matched as expected.

      Comment


        #4
        Hello mantak007,
        Thanks for the clarification.

        You can filter out the bad ticks from:
        In Control Center menu bar goto Tools>Options>Data tab and please check on the option "Filter bad ticks" and set an appropriate "% off market" value.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        56 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        143 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X