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,449 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

  #21 (permalink)
 
aslan's Avatar
 aslan 
Madison, WI
 
Experience: Advanced
Platform: ALT
Trading: ES
Posts: 625 since Jan 2010
Thanks Given: 356
Thanks Received: 1,127


gomi View Post
Well Dimension seems to be a basic NTPV3 client, so see above for drawbacks ;-)

Yes it is, but my clock is always very close. D4 shows you how much it moves the clock, and I never see more than very small fractions of a second, which is close enough for most things. Running your new GomTimeMeasure, it stays rock solid at <= 30ms delay. Good enough for me.

With that said, I am going to check out the NTP V4 though.

I assume you are looking at this to improve your GomRecorder?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #22 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505

Yes I was trying to see if the network latency is constant so I coould use System.Now as a time source to generate millisecond files. In my case it is not constant at all.

Please keep in mind that the indicator's meaningful value is when you see the values changing, so it gives you an indication of network lag increasing and decreasing, but the absolute number is meaningless unless you gave a good local clock precision (hence the NTPV4 stuff).

For instance, if your clock is 3 sec late, and the delay between the exchange and yourself is 3 sec, the indicator will show 0, even when in fact you're getting the ticks with 3 second lactency.

If your clock is 3 seconds ahead, and the network latency is 0 ms, the indicator will always show a delay of 3000 ms even when in fact you're getting your ticks in real time.

So I think there is a real use to get the clock of the PC at the best possible accuracy.

PS : there is a nice web site with screenshots of the install of NTPV4 client here:
https://www.satsignal.eu/ntp/setup.html

Reply With Quote
Thanked by:
  #23 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,603


gomi, you should call up or email Ray @ NT and ask him to hire you. I know your not solely in it for the money, based simply on how much you've given away to the community for free. And I know you don't have gobs of free time. But I think there is a possibility for a good compromise, and you could only benefit their team with your experience

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #24 (permalink)
 
cunparis's Avatar
 cunparis 
Paris, France
 
Experience: Advanced
Platform: Market Delta & Ninjatrader
Trading: ES
Posts: 2,565 since Jun 2009
Thanks Given: 1,162
Thanks Received: 2,093


gomi View Post
Well Dimension seems to be a basic NTPV3 client, so see above for drawbacks ;-)

I'm curious what the limitation is of NTPV3? I read a theoretical limitation but in real concrete numbers. My PC clock was off several seconds and that messed up my chart markers. Now with dimension 4 my chart markers are never off. So I think it's within a second which is "good enough" for me. But I'm curious how much better this other solution could be.

Follow me on Twitter Started this thread Reply With Quote
  #25 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505


Big Mike View Post
gomi, you should call up or email Ray @ NT and ask him to hire you.

Thanks Mike, it could be an idea but I have had some bad relations with the support team.
I can remember a specific time where I nearly YouTube - Really bad day at the office? 'ed my keyboard trying to explain to the developers the problem with time zone conversion due to the DST not being the same day for everyone.
It's here : BeginTime EndTime timezone ? - Page 2 - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

They just weren't listening, and Dierk posted a message stating
"You are incorrect in your understanding. It's very simple to calculate the Begin/EndTimeLocal from the Begin/EndTimeExchange, the actual date is totally irrelevant. Just DayOfWeek matters. You will see with NTB5."

He withdrew his message, and what we actually saw in NTB5 was the implementation I had been asking for during the whole thread.... No apology, no thank you, no nothing...

So they are not really on my employer wishlist... I've had my lot of non-listening people !


Big Mike View Post
I know your not solely in it for the money


Nah, I'm on bigmike for the ego soothing ;-) Thanks guys !

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


cunparis View Post
I'm curious what the limitation is of NTPV3? I read a theoretical limitation but in real concrete numbers. My PC clock was off several seconds and that messed up my chart markers. Now with dimension 4 my chart markers are never off. So I think it's within a second which is "good enough" for me. But I'm curious how much better this other solution could be.

From what I've read NTPV4 is 10x more precise than NTPV3
NTPV3 on a WAN will give you accuracy ranging from a few 10s to a few 100s of millisecs
NTPV4 on a WAN will give you accuracy ranging from a few to a few 10s of millisecs.

With NTPV3 you clock drifts between updates, and the updates are made using "steps" . With NTPV4 you clock frequency is modified to compensate for drifts, clock modifications < 128 ms are smooth

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

Little upgrade on the topic. Here's how my clock is doing.

As you can see, for now the algo isn't making my offset converge.
Offset is the measure you're interested in, because it indicates the error between the local clock and the estimated global NTP time( time of servers with * or + on the NTP status)

What I know though is that my time is somewhere between +20/-20 ms of the estimated time. I want better !

Attached Thumbnails
Click image for larger version

Name:	loopstats.png
Views:	322
Size:	28.1 KB
ID:	13643   Click image for larger version

Name:	ntpstatus.png
Views:	293
Size:	22.8 KB
ID:	13644  
Reply With Quote
Thanked by:
  #28 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


gomi View Post
...
I want better !

Only one solution for you, a GPS antenna and this.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #29 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505

Less expensive and more fun :

Using ntpd, let's do some soldering on a Garmin OEM GP receiver (you need the OEM one because the standard one doesn't give you the PPS pulse)

An NTP Stratum-1 clock usng a GPS 18 LVC and Windows 2000/XP/Windows-7

Max offset : 200µs


In Europe we can also use DCF77
Synchronising your network to a Conrad DCF77 receiver


In the meantime, I'm pretty sure 1-10 ms accuracy is attainable only using ntpv4 and time servers. Still fiddling with the settings....

Reply With Quote
Thanked by:
  #30 (permalink)
 
aslan's Avatar
 aslan 
Madison, WI
 
Experience: Advanced
Platform: ALT
Trading: ES
Posts: 625 since Jan 2010
Thanks Given: 356
Thanks Received: 1,127


I have been running with NTP for a couple of days now, and I have to say that my clock may or may not be more accurate than it was with D4.

Using D4, it was routinely within 5 ms (based on how much it was adjusted). For me, D4 usually was only moving the clock 1 or 2ms, and never had big adjustments.

Running NTP, the stats summary routinely shows the offset to be up to 50ms off, and it moves around during the day from being on to being off again. Using the GomTimeMeasure comfirmed this, as the delay would move all over the place during the day with NTP (although it was bounded to reasonable values), and with D4 it remained relatively stable. I have let it run for a long time to make sure it was stable, and have used very good local servers.

I know NTP can be better, but I guess I am just pointing out that it may not be.

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