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 kinfxhk, 07-14-2026, 09:39 AM
          0 responses
          89 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 10:18 AM
          0 responses
          92 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 09:50 AM
          0 responses
          70 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 07:21 AM
          0 responses
          87 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-11-2026, 02:11 AM
          0 responses
          64 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X