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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      619 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      359 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      562 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      566 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X