Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using a trading hour template within indicator script

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

    Using a trading hour template within indicator script

    Hi there,

    I'm hoping I can call a trading hour template within an indicator script such as the "CME US Index Futures RTH" trading hour template.

    So that the indicator uses the trading hour template hours for its calculations.

    I want to do this so that I can apply this indicator to a chart thats using "instrument settings", but the indicator is using the CME US Index Futures RTH​ trading hour template.

    Is this possible?

    Any help will be much appreciated


    #2
    Hello RoswellTrader,

    You can add a data series and specify the trading hours.

    AddDataSeries(string instrumentName, BarsPeriod barsPeriod, string tradingHoursName)
    https://ninjatrader.com/support/help...dataseries.htm

    Then you can perform the logic during the BarsInProgress for that series. (If there is only 1 added series this would be during BarsInProgress 1)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you Chelsea, this worked perfectly! Much appreciated

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      52 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      38 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      99 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      60 views
      0 likes
      Last Post PaulMohn  
      Working...
      X