NexusFi: Find Your Edge


Home Menu

 





Keep your pc clock synchronized


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one gomi with 13 posts (30 thanks)
    2. looks_two cunparis with 7 posts (7 thanks)
    3. looks_3 Big Mike with 5 posts (1 thanks)
    4. looks_4 aslan with 5 posts (2 thanks)
      Best Posters
    1. looks_one sam028 with 6.3 thanks per post
    2. looks_two NickA with 3 thanks per post
    3. looks_3 gomi with 2.3 thanks per post
    4. looks_4 cunparis with 1 thanks per post
    1. trending_up 28,425 views
    2. thumb_up 64 thanks given
    3. group 14 followers
    1. forum 48 posts
    2. attach_file 7 attachments




 
Search this Thread

Keep your pc clock synchronized

  #41 (permalink)
 cw30000 
new york
 
Experience: Beginner
Platform: SC, NT
Trading: CL, GC
Posts: 206 since Sep 2009
Thanks Given: 99
Thanks Received: 113

Is it me or IB, I always more than 1 second ahead. I tried both programs, same result. I used win7 64bits and dont know if this might be the problem

Sent from my PC36100 using Tapatalk

Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
23 thanks
My NQ Trading Journal
16 thanks
HumbleTraders next chapter
9 thanks
  #42 (permalink)
 
Zwaen's Avatar
 Zwaen 
Netherlands, Blaricum
 
Experience: Intermediate
Platform: Excel, Python, R
Broker: IB
Trading: Options
Posts: 250 since Dec 2010
Thanks Given: 848
Thanks Received: 238

Thank you guys for this information. I was once very upset to use the button "reload historical data " ( control+shift+r) in NT.

Reply With Quote
  #43 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505


I had a hard time using NTP, and tried to find out what the issues were.

It appears that NTP works needs symetrical delays on the network. If the up/down delays become assymetrical, this ends up with an error :

example of NTP queries against a stratum 1 server :
no network traffic :
Reference ID: TS-2
Root Delay: 0 ms
Root Dispersion: 1,7242431640625 ms
Round Trip Delay: 35,1391 ms
Local Clock Offset: 2,92545 ms


heavy download:
Reference ID: TS-2
Root Delay: 0 ms
Root Dispersion: 1,89208984375 ms
Round Trip Delay: 108,8157 ms
Local Clock Offset: -32,88685 ms


heavy upload :
Reference ID: TS-2
Root Delay: 0 ms
Root Dispersion: 2,1209716796875 ms
Round Trip Delay: 66,39 ms
Local Clock Offset: 18,5578 ms


So depending on your network traffic during the queries, your local offset estimation can vary a lot , and NTPV4's feedback loop will go crazy.



So the idea is "let's get rid of the network"

I used the tutorial here : NTP on Vista and Windows-7

You need a 35 USD GPS board that provides a 20 ns PPS precision (see measurements : MG1613S GPS Receiver)



Then all you need to do is solder a wire on the board as per the tutorial,



and voilà :


10 µs jitter clock, for 35 USD, I'd say this is awesome. But I'm a geek, so I find lots of stuff awesome that other people don't ;-)

Reply With Quote
  #44 (permalink)
 
Ducman's Avatar
 Ducman 
The Netherlands
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: NINJATRADER Brokerage / Continuum
Trading: CL
Posts: 473 since Nov 2010
Thanks Given: 413
Thanks Received: 640


gomi View Post
I had a hard time using NTP, and tried to find out what the issues were.

10 µs jitter clock, for 35 USD, I'd say this is awesome. But I'm a geek, so I find lots of stuff awesome that other people don't ;-)

LOL

Ducman

Visit my NexusFi Trade Journal Reply With Quote
  #45 (permalink)
 
Ducman's Avatar
 Ducman 
The Netherlands
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: NINJATRADER Brokerage / Continuum
Trading: CL
Posts: 473 since Nov 2010
Thanks Given: 413
Thanks Received: 640


gomi View Post
I did some research on this time sync issue.

Basically, the way "NTV V3" clients, like the Windows Time Service, work, is by regularly querying the time on a Time Server, updating the computer time, and waiting for next resync.

This is not a very good solution because
1. each time measure is not very precise
2. anyway the clock drifts between two measurements.

The solution is to install an NTP V4 Daemon. This system corrects both flaws : it uses multiple time sources to increase the precision of the time measurement, and it continually adjusts the local time clock using a PLL. It evaluates the hardware clock drift and keeps correcting it.

@ gomi,

Installed the latest version, went smooth. My PC was also off a few seconds.

@cunparis

Thanks for bringing the subject up!

Ducman

Visit my NexusFi Trade Journal Reply With Quote
  #46 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505

If you installed NTP V4 daemon, you might want to check what you offset looks likeover time
You can use Meinber NTP monitor
NTP Time Server Monitor

here's mine for today : still about 10µs accuracy

Reply With Quote
Thanked by:
  #47 (permalink)
 
Ducman's Avatar
 Ducman 
The Netherlands
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: NINJATRADER Brokerage / Continuum
Trading: CL
Posts: 473 since Nov 2010
Thanks Given: 413
Thanks Received: 640


gomi View Post
If you installed NTP V4 daemon, you might want to check what you offset looks likeover time
You can use Meinber NTP monitor
NTP Time Server Monitor

here's mine for today : still about 10µs accuracy
Attachment 59407

I get errors when activating the statistics, can't stop or start the NTP service from out the monitor. Tried various new installs but no luck so far.

Ducman

Visit my NexusFi Trade Journal Reply With Quote
  #48 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505

If you want to start/stop the service, you need to run the monitor as administrator.

Just in case, here is my conf file :

# ref-clock drivers
server 127.127.22.1 minpoll 4 # PPS - serialpps.sys
server 127.127.20.1 minpoll 4 mode 18 prefer # NMEA serial port, 16 = 9600 baud, 2 = $GPGGA

# Other servers
server 0.fr.pool.ntp.org minpoll 10
server 1.fr.pool.ntp.org minpoll 10
server 2.fr.pool.ntp.org minpoll 10
server 3.fr.pool.ntp.org minpoll 10
###########################################################
#Section insert by NTP Time Server Monitor 20/12/2011

enable stats
statsdir "C:\NTP\etc\"
statistics loopstats
###########################################################

driftfile c:\ntp\etc\drift

Reply With Quote
Thanked by:
  #49 (permalink)
 roztom 
Chicago, IL. USA
 
Experience: Advanced
Platform: IRT, Bookmap
Broker: Rithmic MBO Data
Trading: ES/NQ/Volume Profile
Posts: 42 since Oct 2011
Thanks Given: 24
Thanks Received: 96

I use AtomTime Pro..it is a free download..works on XP & Win7 and can be done manually or on auto...

Free is Good..

Regards,

Tom

Regards,

Tom

Trading Is A Journey of Self-Discovery, Not A Destination.
Follow me on Twitter Reply With Quote




Last Updated on January 13, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts