Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Getting Current Time in NT timezone
Collapse
X
-
Getting Current Time in NT timezone
Hi , In my indicator I am accessing the current time using "DateTime.Now". I have GMT+8 timezone in NT and GMT-8 timezone in laptop. The method DateTime.Now is giving the DateTime in laptop timezone(GMT-8) instead of NT timezone (GMT+8). How to get the current time in NT timezone ?Tags: None
-
Hello nandhumca,
Thanks for your post.
You could use NinjaTrader.Core.Globals.Now to access the current date and time in a custom NinjaScript.
If you are wanting to get the time of the bars, you could use Time[0].
See this help guide for more information on Time[]: https://ninjatrader.com/support/help...eries_time.htm
Let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
85 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
123 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
64 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
114 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment