ToTime(Time[0]) function gives only a value of bar's opening.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Time value
Collapse
X
-
Time value
Can you advise how to get a time value updated each second?
ToTime(Time[0]) function gives only a value of bar's opening.Tags: None
-
Hello alexeymarvel,
You can use the DateTime.Now function to get the current timestamp of your PC.
Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
Please note it will work in realtime only and not for historical bars or in backtesting.
Please let me know if I can assist you any further.JoydeepNinjaTrader Customer Service
-
-
It gives the same value as Time[0] as at bar's open. But I need the timer the same as in the replay window.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by RookieTrader, Today, 09:37 AM
|
3 responses
15 views
0 likes
|
Last Post Today, 10:32 AM | ||
Started by kulwinder73, Today, 10:31 AM
|
0 responses
5 views
0 likes
|
Last Post
by kulwinder73
Today, 10:31 AM
|
||
Started by terofs, Yesterday, 04:18 PM
|
1 response
24 views
0 likes
|
Last Post
by terofs
Today, 10:14 AM
|
||
Started by CommonWhale, Today, 09:55 AM
|
1 response
4 views
0 likes
|
Last Post Today, 10:11 AM | ||
Started by Gerik, Today, 09:40 AM
|
2 responses
7 views
0 likes
|
Last Post
by Gerik
Today, 10:04 AM
|
Comment