• 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

NT8 Equivalent of Bars.Session.GetNextBeginEnd()

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

    NT8 Equivalent of Bars.Session.GetNextBeginEnd()

    Hello,

    I'm in process of convert custom NT7 indicators to NT8.

    i'm see in beta of NT8, the convert of this are:

    Bars.SessionIterator....

    But Bars.SessionIterator seem not exist anymore on released verison fo NT8/

    How i'm can get the next session begin/end time ?

    #2
    Hello Twanaar,

    Thanks for the post.

    The Session iterator is its own class and does not belong to the Bars class. It does take a Bars object as a parameter.

    To get the next session begin and end times, use GetNextSession().

    The help guide has a good example of how to use this, it gets the next session and subsequently gets the begin/end time of the next session. GetNextSession() will return a boolean confirming if it was able to successfully calculate the next session. If it returns true you can use the methods available in the SessionIterator and all values returned will be relative to the next session.

    Please see the help guide page on SessionIterator and SessionIterator.GetNextSession()

    https://ninjatrader.com/support/help...oniterator.htm - SessionIterator main page, this page has the example you are looking for.

    https://ninjatrader.com/support/help...extsession.htm - GetNextSession()


    Please let us know if we may be of any further assistance.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Duval, Today, 08:38 AM
    0 responses
    6 views
    0 likes
    Last Post Duval
    by Duval
     
    Started by i2w8am9ii2, 02-13-2019, 04:28 PM
    7 responses
    61 views
    0 likes
    Last Post sledge
    by sledge
     
    Started by woodyfox, Yesterday, 08:33 PM
    0 responses
    7 views
    0 likes
    Last Post woodyfox  
    Started by rblunsom, Yesterday, 11:19 AM
    2 responses
    29 views
    0 likes
    Last Post guidoisot  
    Started by drewski1980, Yesterday, 02:38 PM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X