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

Get Broker's time

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

    Get Broker's time

    Hi NT experts,

    I noticed the computer's clock has offset to broker's time. The offset is typically 3-5 seconds, can be either plus or minus depending on the CPU. The offset is fairly consistent. Even after manually synchronizing with internet time, the offset will be back within an hour.

    I also noticed that the broker's time matches atomic clock.

    So i am wondering if there is way to get broker's time by any chance.

    Regards,

    #2
    Hi binwang2,

    The charts will indeed sync to the computer time.


    So that I can test this on my end, how are you identifying the discrepancy?
    TimNinjaTrader Customer Service

    Comment


      #3
      I am using Interactive brokers. Its TWS has time stamp constantly updating. You can pop up your compuer clock on teh lower hand and clearly see the difference. Most of time 3-4 seconds, sometimes it can be 10 seconds or more.
      I have 2 Intel Core 2 Duo, both ahead of atomic clock by 4 seconds. I have 1 Intel i7-930, behind atomic clock by 4 seconds.
      The atomic clock is a physical one on the wall. The broker's time typically agreess with atomic clock. But PC time is not.
      Since Ninja Trader uses PC clock, the chart will look different at 1 minute level or lower.

      Comment


        #4
        Hi binwang2,

        IB does not time-stamp their own bar, so these would indeed be stamped according to your PC clock. Aside from the PC clock sync, you can also consider a provider that time-stamps their own bars.

        A few providers that do not rely on the PC clock include:

        BarChart
        eSignal
        PFG
        Zen-Fire
        TimNinjaTrader Customer Service

        Comment


          #5
          Thanks for the info.

          Comment


            #6
            Hi binwang2,

            You're very welcome!
            TimNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by traderqz, Today, 12:06 AM
            2 responses
            3 views
            0 likes
            Last Post traderqz  
            Started by RideMe, 04-07-2024, 04:54 PM
            5 responses
            28 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by f.saeidi, Today, 08:13 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by DavidHP, Today, 07:56 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by kujista, Today, 06:23 AM
            3 responses
            11 views
            0 likes
            Last Post kujista
            by kujista
             
            Working...
            X