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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      214 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      130 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      146 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      230 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      192 views
      0 likes
      Last Post CarlTrading  
      Working...
      X