Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Time value
Collapse
X
-
Hello alexeymarvel,
In addition to koganam's query, can you say what CalculateOnBarClose you are using?
I look forward to assisting you further.
-
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.
Leave a comment:
-
Hello alexeymarvel,
You can try the below unsupported code
Please let me know if I can assist you any further.Code:this.Bars.MarketData.Connection.Now
Leave a comment:
-
Yes I Know how to get it in real time. But how to get it in market replay mode?
Leave a comment:
-
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.
Leave a comment:
-
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
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
218 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
135 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
149 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
233 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
192 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Leave a comment: