![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
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?
|
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Yes, there can be bars with the same timestamp.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
|
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
It is on our list of future considerations.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
|
Would love to have millisecond precision.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |