ToTime(Time[0]) function gives only a value of bar's opening.
Announcement
Collapse
No announcement yet.
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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
574 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
333 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment