Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars coming in late?

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

    Bars coming in late?

    I'm seeing some weird behavior in my live strategy.

    For the last 2 hours, all of my bars are coming in about 10 minutes late. That is, they're time stamped 10 minutes before the point I actually receive them. (I compare Time[0] to DateTime.Now.)

    My system clock is absolutely correct. My data provider is IQFeed. Any ideas??

    #2
    Oh, I guess I see the problem, even if I don't understand it.

    IQFeed's client (iqconnect) is taking up 50% of my (quad-core) CPU load. This is bizarre. Anyone seen anything like it?

    Comment


      #3
      heech,

      IQFeed data is all natively timestamped. This means the timestamp of the bars you receive is timestamped by DTN. If there is a mismatch against DateTime.Now which is your PC clock then that is the reason for the discrepancy.

      You have to somehow sync your PC clock with DTN's timestamping.

      Edit: CPU load could play a factor too. Which client version are you on?
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        Josh, what are the benefits of a natively timestamped database?

        Comment


          #5
          Not really an advantage or disadvantage. It is just a different approach.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          68 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          38 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 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