Announcement

Collapse
No announcement yet.

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.


      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      41 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      28 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      45 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      37 views
      0 likes
      Last Post CarlTrading  
      Working...
      X