Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RC1 SessionIterator not using BarsArray input

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

    RC1 SessionIterator not using BarsArray input

    I have simple indicator that adds a DataSeries for another symbol, and then creates a session iterator using the BarsArray as described in the doc
    Code:
                else if (State == State.Historical)
                {
                    sessionIterator = new SessionIterator(BarsArray[1]);
                }
    When I later try to access the session info with code below from doc, the values are from the main Bars instrument instead of from BarsArray[1] instrument. For example, when the main instrument is ES and the second instrument is ^TICK, the session end time comes back from ES instead of ^TICK. This is running with NT8 RC1.

    Code:
    [COLOR=#0000ff]if (BarsInProgress == 1)
    { 
       if[/COLOR](Bars.IsFirstBarOfSession)
       {
           Print([COLOR=#800000]"Calculating trading day for "[/COLOR]+Time[[COLOR=#ff6600]0[/COLOR]]);
    [COLOR=#008000]        // use the current bar time to calculate the next session[/COLOR]
           sessionIterator.GetNextSession(Time[[COLOR=#ff6600]0[/COLOR]],[COLOR=#0000ff]true[/COLOR]);
     
    [COLOR=#008000]        // store the desired session information[/COLOR]
           DateTimetradingDay=sessionIterator.ActualTradingDayExchange;
           DateTimebeginTime=sessionIterator.ActualSessionBegin;          
           DateTimeendTime=sessionIterator.ActualSessionEnd;
    
           Print([COLOR=#0000ff]string[/COLOR].Format([COLOR=#800000]"The Current Trading Day {0} starts at {1} and ends at {2}"[/COLOR],
    tradingDay.ToShortDateString(),beginTime,endTime));
        }
    }

    #2
    Hello aslane,

    Thanks for your post.

    We will investigate and update this thread when we have further information.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      This is still failing in RC2.

      Comment


        #4
        Hello aslane,

        Thanks for your post.

        I can confirm your observations.

        I have added the note concerning RC2 to the investigation ticket.

        We will update this thread when we have further information.

        Thanks in advance for your patience.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Hello aslane,

          Just to update, the issue has been assigned to NT8-10533 Secondary series using trading hours of primary unexpectedly

          I will update this thread when that has been completed.
          Paul H.NinjaTrader Customer Service

          Comment


            #6
            Hello aslane,

            To update this thread:

            The bug NT8-10533 Secondary series using trading hours of primary unexpectedly, has been closed with a resolution of fixed and should be available for the next release of NinjaTrader 8.

            Thanks for reporting.
            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sidlercom80, 10-28-2023, 08:49 AM
            169 responses
            2,268 views
            0 likes
            Last Post QuantKey_Bruce  
            Started by Irukandji, Yesterday, 02:53 AM
            2 responses
            17 views
            0 likes
            Last Post Irukandji  
            Started by adeelshahzad, Today, 03:54 AM
            0 responses
            3 views
            0 likes
            Last Post adeelshahzad  
            Started by CortexZenUSA, Today, 12:53 AM
            0 responses
            3 views
            0 likes
            Last Post CortexZenUSA  
            Started by CortexZenUSA, Today, 12:46 AM
            0 responses
            1 view
            0 likes
            Last Post CortexZenUSA  
            Working...
            X