NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 09-04-2009, 11:57 AM   #1
davewolfs
Member
 
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
Default How is Time[].... calculated?

Hoping that someone could explain how values based on Time[] are stamped, is the time per bar based on the local time of the machine?
davewolfs is offline  
Reply With Quote
Old 09-04-2009, 12:00 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Time[] is the timestamp of the bar. These are the ending timestamps of the bar, not the beginning.

Some data providers timestamp their data and others don't so it depends who you are connected to for if it is local or native.
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-04-2009, 12:06 PM   #3
davewolfs
Member
 
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
Time[] is the timestamp of the bar. These are the ending timestamps of the bar, not the beginning.

Some data providers timestamp their data and others don't so it depends who you are connected to for if it is local or native.
So if you are using Zen-Fire and are using Volume Bars, if there is enough volume to cover multiple bars in the span of 1 second would it be possible for two bars to have the same timestamp since NT maintains timestamps with up to 1 second of precision.
davewolfs is offline  
Reply With Quote
Old 09-04-2009, 12:12 PM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Yes, there can be bars with the same timestamp.
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-04-2009, 12:14 PM   #5
davewolfs
Member
 
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
Yes, there can be bars with the same timestamp.
Any plans to be adding millisecond precision or historical tick data to NT 7?
davewolfs is offline  
Reply With Quote
Old 09-04-2009, 01:20 PM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

It is on our list of future considerations.
NinjaTrader_Josh is offline  
Reply With Quote
Old 05-20-2010, 03:04 AM   #7
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
Default

Would love to have millisecond precision.
cunparis is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No Commissions calculated despite inputs tooearly Strategy Analyzer 3 07-04-2009 01:37 PM
Self-calculated returns for optimization heech Suggestions And Feedback 3 12-07-2008 01:06 AM
Plotting time series calculated in a strategy The Kid Strategy Development 7 11-07-2008 06:56 AM
displaying calculated variables NinjaCustomer Indicator Development 8 02-20-2008 05:21 AM
Is a function calculated each time when it is called? FireFly General Programming 3 12-26-2007 01:09 PM


All times are GMT -6. The time now is 03:58 PM.