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 zstheorist, Today, 07:52 PM
      0 responses
      3 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      149 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      5 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      5 views
      0 likes
      Last Post tkaboris  
      Working...
      X