Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Open Pit Hours

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

    Open Pit Hours

    From within an indicator script, how can I determine what the current Bars regular trading hours are?

    I could hard code it, but if the instrument changes, it might now apply. My current chart is using the ETH.

    startTime = TradingHours.Get("CME US Index Futures RTH").Sessions[0].BeginTime;
    Last edited by dynoweb; 05-07-2023, 11:55 AM. Reason: I wanted to add additional details

    #2
    There is not a field for this in the instrument database. It would be nice to add, and the answer is sort of obvious for ES and the like, but for some instruments, there isn't an obvious answer what it should be set to. I've had the same issue here, and I ended up just making a list for now of what I consider the RTH to be for each one, since there isn't a field for this that I could query in Instrument.MasterInstrument.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      NinjaTrader support, this would be a good field to add to the instrument setup. Even if it defaulted to blank and we could fill it in if we wanted to though it would be good to fill in the most common ones where there is no question what RTH means.
      Bruce DeVault
      QuantKey Trading Vendor Services
      NinjaTrader Ecosystem Vendor - QuantKey

      Comment


        #4
        Originally posted by QuantKey_Bruce View Post
        NinjaTrader support, this would be a good field to add to the instrument setup. Even if it defaulted to blank and we could fill it in if we wanted to though it would be good to fill in the most common ones where there is no question what RTH means.
        Thanks Bruce, I was afraid of that. I'll second the new feature.

        Comment


          #5
          Hello dynoweb and QuantKey_Bruce,

          Thanks for your posts.

          QuantKey_Bruce is correct in stating that there is no field for this in the instrument database at this moment.

          I have submitted this feature request to the Development team and added your votes to it. This request is being tracked under the number SFT-5916.

          As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

          Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment

          Latest Posts

          Collapse

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