Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 maykingoh1, Today, 05:25 AM
        0 responses
        1 view
        0 likes
        Last Post maykingoh1  
        Started by Human#102, Today, 05:18 AM
        0 responses
        4 views
        0 likes
        Last Post Human#102  
        Started by ntram, 05-08-2024, 05:39 PM
        3 responses
        21 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Zach55, 02-19-2024, 07:22 PM
        3 responses
        68 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by warpinator, 05-16-2024, 10:44 AM
        3 responses
        30 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X