• 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

Session times

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

    Session times

    I would like to ask, that if

    Bars.Session.GetNextBeginEnd(checkAtTime, out currentSessionBegin, out currentSessionEnd)

    is called in multi-instrument strategy - how that works?
    • A) can provide various session times depending on currently processed instrument
    • B) provides same session times, because it checks the primary Instrument only


    Which one is true A) or B) ?
    Last edited by misova; 09-05-2015, 02:50 PM.

    #2
    Hello misova,

    Thank you for your post.

    It would be whatever bar series called the OnBarUpdate() method.

    I would use BarsArray[barsSeries Index].Session.GetNextBeginEnd().
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Thank you,

      I am just curious, how that works, that the method needs same Bars on 2 places.

      1st - the method is invoked on the Bars object
      2nd - it takes the same Bars object as parameter on which it is invoked

      One can invoke the method on Bars A and pass there a parameter with Bars B?
      On which one Bars then results will be returned?

      It would be intuitive and logical, that method should automatically use the object on which it is invoked, so no more passing it as parameter should be needed...
      Last edited by misova; 09-07-2015, 07:56 AM.

      Comment


        #4
        Hello,

        Using the standard overloads for this you could pass in either bar series, that is what the overload that includes Bars would be used for.

        In either case you are invoking on that series, either you provide the bars to the method using its overload, or you call the method from the bar series Session as Patrick provided.

        The expected result would be the output for whichever series you have provided to GetNextBeginEnd.

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by login_dejavu, Today, 02:22 AM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Leeroy_Jenkins, Yesterday, 09:17 AM
        1 response
        56 views
        0 likes
        Last Post NinjaTrader_Melissa  
        Started by chaitunt, 03-29-2020, 08:26 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by mbcmbc, Yesterday, 11:01 PM
        2 responses
        17 views
        0 likes
        Last Post mbcmbc
        by mbcmbc
         
        Started by Zuhier Dourgham, Yesterday, 03:55 AM
        1 response
        30 views
        0 likes
        Last Post NinjaTrader_Jim  
        Working...
        X