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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
152 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
89 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
133 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
127 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment