• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Number of sessions elapsed between two determined dates

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

    Number of sessions elapsed between two determined dates

    Hello,
    Is there any built-in method to know the number of sessions elapsed between two determined dates?
    (I have searched through the types SessionIterator and TradingHours, and I have not found anything).

    Thanks

    #2
    Hello cls71,

    There are no premade methods for this.

    But one could be designed.

    All of the historical data has to be processed once anyway, you could either increment an int variable or populate an array on the first bar of each session to track these.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea, I will do it that way.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Teebone21, Today, 10:38 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by futurestrader7, Today, 11:31 AM
      0 responses
      3 views
      0 likes
      Last Post futurestrader7  
      Started by J_o_s, 03-30-2020, 12:29 AM
      2 responses
      16 views
      0 likes
      Last Post J_o_s
      by J_o_s
       
      Started by ptpatrader, Today, 10:27 AM
      0 responses
      6 views
      0 likes
      Last Post ptpatrader  
      Started by albertokeira, Today, 09:30 AM
      0 responses
      8 views
      0 likes
      Last Post albertokeira  
      Working...
      X