Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Session Times (HhMmSs)

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

    Session Times (HhMmSs)

    I'm looking to specify market sessions with a timestamp holidays use this:


    <Holiday>
    <Date>2015-01-01T00:00:00</Date>
    <Description>New Year's Day</Description>
    </Holiday>

    sessions are oddly formatted:

    <Session>
    <BeginDay>Friday</BeginDay>
    <BeginTime>930</BeginTime>
    <EndDay>Friday</EndDay>
    <EndTime>1600</EndTime>
    <TradingDay>Friday</TradingDay>
    </Session>
    </Sessions>
    <TimeZone>Eastern Standard Time</TimeZone>​

    please advise

    #2
    Hello, thanks for writing in. It looks like you are looking within a Trading Hours template file within Documents\NinjaTrader 8\templates\TradingHours. Do you have a specific question that I can help with?

    Comment


      #3
      Yes this file only takes hours and minute 9:30 would be 0930 or 930
      however I want 09:30:45 is granularity like this possible?

      Comment


        #4
        Hi, the granularity will not go down to the seconds, only down to the minutes. In a strategy, there is a property called ExitOnSessionCloseSeconds where you can specify the exit time in terms of seconds.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        98 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        142 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        69 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        77 views
        0 likes
        Last Post PaulMohn  
        Working...
        X