Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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?

    Chris L.NinjaTrader Customer Service

    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.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by traderzoso, 12-27-2020, 05:19 PM
        6 responses
        227 views
        0 likes
        Last Post lekor
        by lekor
         
        Started by ETFVoyageur, 05-18-2024, 12:45 AM
        4 responses
        26 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by Skifree, Today, 11:47 AM
        4 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by molecool, Today, 01:48 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by ETFVoyageur, Today, 12:26 PM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X