NexusFi: Find Your Edge


Home Menu

 





Slow system clock when market is busy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one jstnbrg with 4 posts (0 thanks)
    2. looks_two MXASJ with 3 posts (0 thanks)
    3. looks_3 Big Mike with 2 posts (1 thanks)
    4. looks_4 redratsal with 2 posts (0 thanks)
    1. trending_up 7,054 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 16 posts
    2. attach_file 5 attachments




 
Search this Thread

Slow system clock when market is busy

  #11 (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,599

If you are doing really critical time stuff, you need to be sure to use a full NTP client. The Windows Time protocol simply adjusts the clock, it does not do a drift adjustment. So it means one second the clock could be 10:00:00AM and the next second it could be 9:59:57AM (-3 seconds). This is not good, a lot of time sensitive programs could have a real problem with that.

A true NTP client will slowly adjust the drift of the clock to keep it accurate. Meinberg NTP is good but you have to be a somewhat advanced user to install it and disable the existing Windows Time service.

@MXASJ has done a lot of time work with NinjaTrader, he is the go to guy for measuring time drift and latency with NinjaTrader.

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

Can you help answer these questions
from other members on NexusFi?
Increase in trading performance by 75%
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #12 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

More of a Google guy than a go-to guy, but here are some links that might help:

Windows Time Service Tools and Settings: Windows Time Service

Support boundary to configure the Windows Time service for high accuracy environments

Publishers of Time and Frequency Software

Key takeaway:

The W32Time service is not a full-featured NTP solution that meets time-sensitive application needs. The W32Time service is primarily designed to do the following:
  • Make the Kerberos version 5 authentication protocol work.
  • Provide loose sync time for client computers.
The W32Time service cannot reliably maintain sync time to the range of 1 to 2 seconds. Such tolerances are outside the design specification of the W32Time service.

Reply With Quote
  #13 (permalink)
 jstnbrg 
Chicago, Illinois
 
Experience: Advanced
Platform: Ninjatrader, TT, InvestorRT
Broker: Advantage Futures, Ninja/TT and InvestorRT/IQFeed.
Trading: Treasury futures
Posts: 312 since Nov 2010
Thanks Given: 194
Thanks Received: 912


Thanks to everyone who posted on this thread. For some reason the "Thanks" button is not showing up for this thread. I'm going with Thinking Man Software - Dimension 4 v5.0 as the solution for now. I've set it to update the clock every minute.

"You don't need a weatherman to know which way the wind blows..."
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #14 (permalink)
 jstnbrg 
Chicago, Illinois
 
Experience: Advanced
Platform: Ninjatrader, TT, InvestorRT
Broker: Advantage Futures, Ninja/TT and InvestorRT/IQFeed.
Trading: Treasury futures
Posts: 312 since Nov 2010
Thanks Given: 194
Thanks Received: 912


Big Mike View Post
If you are doing really critical time stuff, you need to be sure to use a full NTP client. The Windows Time protocol simply adjusts the clock, it does not do a drift adjustment. So it means one second the clock could be 10:00:00AM and the next second it could be 9:59:57AM (-3 seconds). This is not good, a lot of time sensitive programs could have a real problem with that.

A true NTP client will slowly adjust the drift of the clock to keep it accurate. Meinberg NTP is good but you have to be a somewhat advanced user to install it and disable the existing Windows Time service.

@ MXASJ has done a lot of time work with NinjaTrader, he is the go to guy for measuring time drift and latency with NinjaTrader.

Mike

I often get out of stuff a few seconds before the close. I just need to make sure I don't miss it.

"You don't need a weatherman to know which way the wind blows..."
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #15 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


jstnbrg View Post
I often get out of stuff a few seconds before the close. I just need to make sure I don't miss it.


Hi jstnbrg

Also, you can modify the frequency Windows sync update your clock:

1) type Regedit through the windows search window
2) goto Specialpollinterval (see file 1 attached) and double click
3) Modify the frequency in seconds your computer will update its clock
4) click on your clock bottom right and modify
5) Set sync server to time.nist.gov

The computer will now update its clock to the selected server each n sec you have set

Attached Thumbnails
Click image for larger version

Name:	2011-01-24_0949.png
Views:	146
Size:	149.6 KB
ID:	29072   Click image for larger version

Name:	2011-01-24_0950.png
Views:	163
Size:	29.9 KB
ID:	29073   Click image for larger version

Name:	2011-01-24_0953.png
Views:	161
Size:	32.9 KB
ID:	29074   Click image for larger version

Name:	2011-01-24_1005.png
Views:	166
Size:	76.7 KB
ID:	29076  
Visit my NexusFi Trade Journal Reply With Quote
  #16 (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,599

@redratsal just remember, Windows Time is not a true NTP service, so it will literally "adjust" the clock. One moment the clock may show 10:00:00 AM exactly, then when you "adjust" it the clock may skip backwards to 9:59:58 AM for instance. This kind of behavior may happen over and over again, as the Windows Time service is only accurate to within 2-3 seconds.

A true NTP service like Meinberg will drift the clock very slowly over time, no huge movements, and is usually accurate to within 20-50ms depending on the time sources available in your region.

Also some servers restrict you to only 1 or 2 updates per hour. Check ntp.org for more info and a list.

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
Thanked by:
  #17 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


Big Mike View Post
@ redratsal just remember, Windows Time is not a true NTP service, so it will literally "adjust" the clock. One moment the clock may show 10:00:00 AM exactly, then when you "adjust" it the clock may skip backwards to 9:59:58 AM for instance. This kind of behavior may happen over and over again, as the Windows Time service is only accurate to within 2-3 seconds.

A true NTP service like Meinberg will drift the clock very slowly over time, no huge movements, and is usually accurate to within 20-50ms depending on the time sources available in your region.

Also some servers restrict you to only 1 or 2 updates per hour. Check ntp.org for more info and a list.

Mike

Hi Mike,

This was clear as you mentioned at #11, I was just replying to jstnrg who is using an external software #13 which does exactly what windows can already do. If he is closing positions a few seconds before the close as in #14 than he can adjust and sync the clock a few seconds before this operation as per my description.

Visit my NexusFi Trade Journal Reply With Quote




Last Updated on January 25, 2011


© 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