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.
    JesseNinjaTrader Customer Service

    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.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by samish18, 04-17-2024, 08:57 AM
        16 responses
        55 views
        0 likes
        Last Post samish18  
        Started by arvidvanstaey, Today, 02:19 PM
        3 responses
        9 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by jordanq2, Today, 03:10 PM
        2 responses
        8 views
        0 likes
        Last Post jordanq2  
        Started by traderqz, Today, 12:06 AM
        10 responses
        18 views
        0 likes
        Last Post traderqz  
        Started by algospoke, 04-17-2024, 06:40 PM
        5 responses
        47 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X