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

Time zone

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

    Time zone

    Hello,

    I've just noticed the chart display is in the intrument's exchange timezone, while code runs on the machine's local time zone.

    It makes a mind bender trying to convert back and forth ...

    LOL is this intentional?

    Many Thanks, Caesar.

    #2
    Actually it's a problem with timezone calcs .... arghhh

    Comment


      #3
      Hello Skechers,

      Thanks for your post.

      The Chart window times will reflect the TimeZone that you have NinjaTrader set to in the Tools > Options > General tab. The instrument bars on the chart will reflect the TimeZone setting you have set. If you are in Mountain Time Zone and run the ES 12-22 instrument on the chart, the bars on the chart will reflect your TimeZone setting. For example, if the instrument's Trading Hours template stops at 4:00PM Central Time, you would see the instrument stop at 3:00PM on the chart since it is set to the Mountain Time Zone, 1 hour behind Central Time Zone.

      You could reference the current time on the chart in NinjaScript using Time[0].

      See this help guide page for more information: https://ninjatrader.com/support/help...eries_time.htm

      If you want to get the current time on your machine, you would use DateTime.Now.

      Let me know if I may assist further.


      Brandon H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by kaywai, Today, 06:26 AM
      1 response
      6 views
      0 likes
      Last Post kaywai
      by kaywai
       
      Started by ct, 05-07-2023, 12:31 PM
      6 responses
      203 views
      0 likes
      Last Post wisconsinpat  
      Started by kevinenergy, 02-17-2023, 12:42 PM
      118 responses
      2,780 views
      1 like
      Last Post kevinenergy  
      Started by briansaul, Today, 05:31 AM
      0 responses
      10 views
      0 likes
      Last Post briansaul  
      Started by traderqz, Yesterday, 12:06 AM
      11 responses
      28 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X