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 guillembm, Yesterday, 11:25 AM
            2 responses
            9 views
            0 likes
            Last Post guillembm  
            Started by junkone, 04-21-2024, 07:17 AM
            9 responses
            68 views
            0 likes
            Last Post jeronymite  
            Started by trilliantrader, 04-18-2024, 08:16 AM
            4 responses
            20 views
            0 likes
            Last Post trilliantrader  
            Started by mgco4you, Yesterday, 09:46 PM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by wzgy0920, Yesterday, 09:53 PM
            0 responses
            10 views
            0 likes
            Last Post wzgy0920  
            Working...
            X