Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    6 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Started by alifarahani, Today, 09:40 AM
    6 responses
    41 views
    0 likes
    Last Post alifarahani  
    Working...
    X