![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
|
I have developed a strategy that references specific time of day. If I am not in the EST zone how do I enforce EST times?
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi Occam,
There is a C# method you can use for this. It will convert any time object ToUniversalTime(). You can add or subtract from this to get to Eastern time. int easternTime = ToTime(Time[0].ToUniversalTime().AddHours(-4));
Ryan M
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| time zone? | stalt | Miscellaneous Support | 6 | 10-31-2012 11:57 AM |
| time zone | tonynt | Miscellaneous Support | 8 | 11-24-2010 12:19 AM |
| time zone colour | reggiedonald | Charting | 1 | 02-16-2010 09:42 AM |
| Time Zone / globalization | blarouche | Version 7 Beta General Questions & Bug Reports | 2 | 11-11-2009 05:42 PM |
| time zone setting/time displayed on charts | always4nu | Charting | 2 | 09-29-2009 09:10 AM |