• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy time zone.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Czarek
    started a topic Strategy time zone.

    Strategy time zone.

    Hello.
    My NT8 default time zone is Hong Kong time. Which is not changed all year.
    I want to develop the strategy for ES which is based on EST time and this time is moved one hour twice a year. How to set it up in the strategy?

  • NinjaTrader_ChelseaB
    replied
    Hello Czarek,

    First, the ES future is traded on the Chicago Mercantile Exchange (CME) which is in Chicago which is Central Time Zone.

    Next, NinjaTrader uses your local PC Clock and converts the time of the exchange to your local time zone automatically for you.

    From my understanding, the daylight savings change will be adjusted automatically.

    Are you finding this is not the case using a comparison?

    One way would be to use some C# code and print your current time (DateTime.Now) or the time of the bar (Time[0]) to that time converted to another time zone.
    Below are public links to the microsoft documentation.
    https://docs.microsoft.com/en-us/dot...een-time-zones
    https://docs.microsoft.com/en-us/dot...ramework-4.7.2

    And you could compare that with another computer using that time zone setting with the pc clock to ensure everything is being converted correctly.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by uiwislth, Yesterday, 11:25 PM
0 responses
3 views
0 likes
Last Post uiwislth  
Started by Steve L, Yesterday, 10:04 PM
0 responses
2 views
0 likes
Last Post Steve L
by Steve L
 
Started by marianfed, Yesterday, 09:47 PM
0 responses
3 views
0 likes
Last Post marianfed  
Started by hir04068, Yesterday, 09:29 PM
0 responses
2 views
0 likes
Last Post hir04068  
Started by iq200, 03-11-2018, 07:49 PM
24 responses
1,011 views
0 likes
Last Post mrlucky1x  
Working...
X