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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    80 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X