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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X