• 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

    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?

    #2
    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.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by alextrd, Today, 01:51 PM
    0 responses
    3 views
    0 likes
    Last Post alextrd
    by alextrd
     
    Started by Boonfly8, Today, 12:10 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by NinjaTrader_PaulH, Today, 11:24 AM
    0 responses
    4 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by catulopc, Today, 10:58 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_SergeyS  
    Started by swcooke, Today, 09:20 AM
    7 responses
    22 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X