Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting Today's time session for some instrument?

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

    Getting Today's time session for some instrument?

    Would it be possible for a Strategy, getting the right time session for the current day ?

    This would be a nice feature for customer's ExitOnClose automatic procedure.

    If yes: how can I access that info through the scruipt?

    if no: Please consider to add this feature to NT

    BY THE WAY: HAPPY NEW YEAR 2016 !!! AND THANKS FOR YOUR WORK

    #2
    Hello,

    Thank you for the question.

    I wanted to double check, you are just trying to get the currently applied Session template from the strategy?

    If so, you may be able to utilize : GetNextBeginEnd()



    This method allows you to get the start and end of a session, it also has a Bars ago parameter in the case you want other than the Current bar.

    I look forward to being of further assistance.

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello,

      Thank you for the question.

      I wanted to double check, you are just trying to get the currently applied Session template from the strategy?

      If so, you may be able to utilize : GetNextBeginEnd()



      This method allows you to get the start and end of a session, it also has a Bars ago parameter in the case you want other than the Current bar.

      I look forward to being of further assistance.
      Hi Jesse.

      Not the Session Template, cause this is a constant. I refer actually to exchange's intrument own calendar. Let me give you an example: today's session for EURUSD will be till 16:00:00 and not the typical 17:00:00, so what I want to get is that my strategy can call this info and apply it to its ExitOnClose procedure.

      Looking forward then

      Thanks

      Comment


        #4
        Hello,

        Thank you for the clarification.

        So you are referring to modified exchange hours such as Holiday hours then correct?

        If that is the case, this has already been accounted for in NT8 but would need to be manually accounted for using logic in NT7.

        For information on NT8 and how this will be going forward, you could see this document: http://ninjatrader.com/support/helpG...urs_window.htm

        For NT7, you would need to manually define the specifc dates or times in your logic as the Session would always remain the same as you had noted.

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        65 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        41 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        23 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        26 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        52 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X