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 f.saeidi, Today, 12:12 AM
|
0 responses
2 views
0 likes
|
Last Post
by f.saeidi
Today, 12:12 AM
|
||
Started by Conall, Today, 12:06 AM
|
0 responses
5 views
0 likes
|
Last Post
by Conall
Today, 12:06 AM
|
||
Started by proptradingshop, 03-21-2024, 09:50 AM
|
6 responses
27 views
0 likes
|
Last Post Today, 12:02 AM | ||
Started by mly916, Yesterday, 09:48 PM
|
1 response
11 views
0 likes
|
Last Post Yesterday, 11:54 PM | ||
Started by Mikey_, Yesterday, 09:21 PM
|
0 responses
11 views
0 likes
|
Last Post
by Mikey_
Yesterday, 09:21 PM
|
Comment