Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TimeZoneInfo

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

    TimeZoneInfo

    The NT7 help is unclear. Is this the exchange time zone (one hopes) rather than my local PC time zone?

    Code:
    // The session template's timezone
         Print("The session time zone is: " + Bars.Session.TimeZoneInfo.Id)
    which would imply the other Session information must also be the same time zone
    Code:
    // On the start of a new session, get the next session's begin and end times
         if (Bars.SessionBreak)
              Bars.Session.GetNextBeginEnd(Time[0], out sessionBegin, out sessionEnd);  
          Print("Next Session Start: " + sessionBegin + " Next Session End: " + sessionEnd);
    It would make sense that this return exchange time information....
    Please clarify (and update the help). Thanks!

    #2
    Hello,

    Thank you for your forum post.

    You will get a response from someone on Monday.

    Thank you for your patience.
    BrettNinjaTrader Product Management

    Comment


      #3
      LostTrader, this would give you the TimeZone the session template is setup with under Tools > Instrument Manager. For example if you use the CME related ones this is exchange time then, as the CME resides in Central Time / Chicago.

      Comment


        #4
        Thank you, Bertrand. I wondered where that was hidden. I was surprised that the Futures default to the stock session times but now I know where to fix that.

        BTW, the link (at least on TF) did not work.

        Comment


          #5
          Thanks, we'll update the link to https://www.theice.com/productguide/ProductDetails.shtml?specId=86

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          599 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          344 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          558 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          557 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X