Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing Trading Hours Template for my Instrument?

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

    Accessing Trading Hours Template for my Instrument?


    Hi there, I'm confused as to how to access the trading hours for the instrument I'm trading. Say I'm trading the ES. Two questions. According to the help page

    https://ninjatrader.com/support/help...ghours_session s.htm


    "Each index value will represent a new defined session for the Trading Hours template. For example, accessing Bars.TradingHours.Sessions[0] would provide you with information for the first trading session configured in the Trading Hours template:"

    Would that mean that index 0 represents the first listing defined, index 1 represents the second listing defined, as so on? (see image)


    Second question: How do I determine which template applies to an instrument? If I'm trading the ES, how would I determine it's categorization?

    Thanks,







    Attached Files

    #2
    Hello timmbo,

    Thank you for your post.

    You can access the trading hours using the TradingHours property.



    Sessions refers specifically to the sessions configured within a single template.

    The trading hours template is defined in the Data Series window.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X