Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How does one change the TradingHours of a Day bar?

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

    How does one change the TradingHours of a Day bar?

    Hello, I'm developing an indicator that uses the previous day's OHLC information. However, since NT8 I've noticed this is defaulting to a 24 hour day and I've not been able to figure out how to change it. Ideally, I would like to be able to select an instrument's regular trading hours to base my calculations on.

    I've tried changing the default TradingHours for the instruments I'm working with and that didn't help. I've also put a day chart up and changed its TradingHours template and no change to the bars.

    Any suggestions on how to do this are much appreciated.
    daqu40
    NinjaTrader Ecosystem Vendor - QTradez

    #2
    Hello daqu40,

    Thanks for your post.

    Daily bars have a fixed trading hours template and cannot be changed. In NT7 this was regular hours(RTH), in NT8 this was changed to extended trading hours (ETH).

    In NT8 you can add a hidden data series to your chart and set its trading hours as needed (except for daily bars). If you need daily bars you can create 1440 minute bars (24 hours * 60 minutes = 1440 minutes) and as it is based on minute bars it will respect the applied trading hours template. If you are using less than daily bars you can just add the same series as the chart bars in the same manner, so for example if you are charting 5 minute bars based on ETH you can add a 5 minute data series based on RTH as the hidden data series and then assign the RTH data series as the input series to your indicator.

    To add a hidden data series to your chart, in the data series window, add another occurrence of the data series, change its trading hours to the template needed, change the chart style to "Line on close" change the color of the line to Transparent, set the panel to panel 1 and turn off "plot executions", this will add and hide a data series.

    When you add an indicator and want to use the hidden dataseries, in the indicator window click in the "input series" and select the 2nd data series listed. The indicator will then plot on the chart but will be using the hidden data series which will be limited to the trading hours you have selected.

    Comment


      #3
      Thanks Paul,

      This is a bit more complicated than I was hoping for but you've confirmed my Day bars are stuck on ETH.

      I'll see if I can adapt my Indicator to find the hidden data series that I can set up with the RTH driven TradingHours I need.
      daqu40
      NinjaTrader Ecosystem Vendor - QTradez

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      599 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      345 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      558 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      558 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X