Weâ€™ve posted before about how important it is to keep your Windows time in sync with official time servers. NinjaTrader references your computerâ€™s clock (aka Windows time) to perform many of its calculations. Now we will show you how to keep your computer time clock accurate without any 3rd party software.
Weâ€™re big fans of NinjaTraderâ€™s Bar Timer tool. You can add this tool to your chart by right clicking the chart > Indicators > Find â€œBarTimerâ€and double-click it > Click OK. Provided you are connected to a working data feed, in the bottom right of your chart, you should see a countdown of the time remaining for the current plotting bar. This countdown is based on the time frame of the chart. For example, a five-minute chartâ€™s Bar Timer will count down from five-minutes when a new bar appears. Pretty simple, right?
Hereâ€™s where things normally go wrong â€“ by default, Windows 7 syncs your computer clock with official time servers once a day. In our tests, our computer clocks went out of sync by a couple of seconds each day. When it came time for trading, this was enough of a difference to cause inaccuracy problems with the Bar Timerâ€™s countdown. We would see extra time added to the bar timer and it would appear to be a bit â€œjumpy.â€ Other areas of NinjaTrader are also inaccurate because of this, such as the Time and Sales window.
Whatâ€™s the fix? You can use the Windows Task Scheduler to force your time to sync with the official time servers at a regular interval â€“ every half-hour or hour in this example:
In Windows 7, go to Start > begin typing â€œTask Schedulerâ€ without quotes > click on Task Scheduler when it appears
Go to the bottom of the Task Scheduler window and find the Active Tasks box. Scroll through the Active Tasks box, find â€œSynchronizeTimeâ€ and double click it
In the new screen, double click the SynchronizeTime entry at the top and go to the Triggers tab and click Edit
Make sure â€œOn a scheduleâ€ is in the top box, â€œDailyâ€ is selected along with Recur every 1 days. Under â€œAdvanced settingsâ€, checkâ€ Repeat task everyâ€ and change the value to 30 minutes (or one hour if you prefer). Set the duration to indefinitely.
Make sure Enabled is checked at the bottom and click OK. Close the windows you opened and youâ€™re all set.
Note that you will need an active internet connection to keep your clock perfectly synced. This shouldnâ€™t be a problem as youâ€™ll need internet access to trade. You will also need Windows administrator privileges to create the task.
Windows will execute the task at the interval you have set. Windows will barely consume resources as the task is launched and then closed automatically. The task is also persistent through computer reboot