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 chbruno, Today, 04:10 PM
|
0 responses
3 views
0 likes
|
Last Post
by chbruno
Today, 04:10 PM
|
||
Started by josh18955, 03-25-2023, 11:16 AM
|
6 responses
436 views
0 likes
|
Last Post
by Delerium
Today, 03:42 PM
|
||
Started by FAQtrader, Today, 03:35 PM
|
0 responses
6 views
0 likes
|
Last Post
by FAQtrader
Today, 03:35 PM
|
||
Started by rocketman7, Today, 09:41 AM
|
5 responses
19 views
0 likes
|
Last Post Today, 03:33 PM | ||
Started by frslvr, 04-11-2024, 07:26 AM
|
9 responses
127 views
1 like
|
Last Post
by caryc123
Today, 03:12 PM
|
Comment