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 aslan with 5 posts (2 thanks)
    4. looks_4 Big Mike with 5 posts (1 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,209 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

  #1 (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

After suffering for months of having my trade markers be 1-2 bars off, I finally found the cause (thanks to Ninjatrader support who analyzed my log files).

My PC clock runs slow. Very slow.

Windows vista will update the clock once a day, that's not enough for me.

So the solution is this free program which will update your clock every minute if you wish:

Thinking Man Software - Dimension 4 v5.0

So far it works great. Very fast and my clock is in sync. if your chart markers are off, check your pc clock.

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Deepmoney LLM
Elite Quantitative GenAI/LLM
Futures True Range Report
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
26 thanks
The Program
18 thanks
  #2 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

I had the same problem, with one of my workstation, and then synchronize it every 2 minutes. And it's very important to be perfectly synchronize, especially if you compare your charts with you trading mates in live, and you don't have the same patterns .

The NTP polling interval is just a key in the Windows registry (for XP, I think it's same thing on Vista and Seven), and you don't see an extra software to do this:
Tip

Start the Registry Editor
Go to HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ W32Time \ TimeProviders \ NtpClient \
Double-click the SpecialPollInterval value, and change the Base of the Value data to Decimal
change the Value data to the time interval you desire, noting that the time is given in seconds (120 for 2 minutes, 300 for 5 minutes, ...)



Some details here.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
  #3 (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


That explains why I had a hard time finding a little program to do it, it's obsolete.

or maybe not. Often when updating my time it times out. With the software I found, you can select a time server so i select INRIA which is close to where I live. Should be quicker and more reliable.

So I set windows to do it every 10 minutes as a backup.

Follow me on Twitter Started this thread Reply With Quote
  #4 (permalink)
trader9278
louisiana
 
Posts: 14 since Jun 2009
Thanks Given: 0
Thanks Received: 0


sam028 View Post
I had the same problem, with one of my workstation, and then synchronize it every 2 minutes. And it's very important to be perfectly synchronize, especially if you compare your charts with you trading mates in live, and you don't have the same patterns .

The NTP polling interval is just a key in the Windows registry (for XP, I think it's same sthink on Vista and Seven), and you don't see an extra software to do this:
Tip

Start the Registry Editor
Go to HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ W32Time \ TimeProviders \ NtpClient \
Double-click the SpecialPollInterval value, and change the Base of the Value data to Decimal
change the Value data to the time interval you desire, noting that the time is given in seconds (120 for 2 minutes, 300 for 5 minutes, ...)



Some details here.

sam what is best to use 30 seconds , 1 minute ,5 minute ? would 1 second keep it perfectly in sync ?

Reply With Quote
  #5 (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


trader9278 View Post
sam what is best to use 30 seconds , 1 minute ,5 minute ? would 1 second keep it perfectly in sync ?

Depends on how fast/slow it is. Mine loses 0.022 seconds per minute. That's 31 seconds per day and is enough to make the trade markers off by one bar if you're entering around the bar open or close.

I can't figure out why my pc clock would be off so much. It's not an old machine and it's always on so no battery issues. Not overclocked either.

Follow me on Twitter Started this thread Reply With Quote
  #6 (permalink)
trader9278
louisiana
 
Posts: 14 since Jun 2009
Thanks Given: 0
Thanks Received: 0


cunparis View Post
Depends on how fast/slow it is. Mine loses 0.022 seconds per minute. That's 31 seconds per day and is enough to make the trade markers off by one bar if you're entering around the bar open or close.

I can't figure out why my pc clock would be off so much. It's not an old machine and it's always on so no battery issues. Not overclocked either.

cunparis i dont think im off that much but i went to google and typed what time is it and i get the official US time clock. right now im off by 5 seconds but i just set it last week around this time,so it is not that bad but its not keeping up

Reply With Quote
  #7 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

Some timer chipset are better than others, no matter how new is your pc.
I found that machines with variable frequency processors (and using this function) seems to have more issues with this.
In a previous life, in a large financial institution, we were using GPS and radio devices for our NTP servers, like these, but for individual traders, an NTP update every 5-10 minutes, and having a 0.1 second difference with the real atomic time, it's ok, imho.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #8 (permalink)
 dsherman 
Michigan
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus/Vision & Stage5/Vision
Trading: Futures
Posts: 40 since Jul 2009
Thanks Given: 22
Thanks Received: 18

Thanks Cunparis. btw, you might want to spell check your original message. :-)

Reply With Quote
  #9 (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


dsherman View Post
Thanks Cunparis. btw, you might want to spell check your original message. :-)

hahah good catch!!!

Follow me on Twitter Started this thread Reply With Quote
Thanked by:
  #10 (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,396 since Jun 2009
Thanks Given: 33,172
Thanks Received: 101,534


I was recently writing code for a customer that needed to know the price market time, regardless of the PC clock time.

I found that there is actually a function to do this in Ninja, but it would seem that Zen Fire does not support it. Or I could be completely wrong, as I didn't investigate too deep.

But if you look at the BarTimer code as an example, it actually uses the data feed as the source for the time stamp.

So it seems that it is at least possible for your local PC clock to not matter, being off a few seconds, etc. I really don't know and haven't tried it, I keep my clock synced every few hours because I thought the same thing as you guys, that the bar formation was based on local time. And I still think it is, at least for Zen Fire.

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




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