• 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

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:
    if (BarsInProgress == 1)
    { 
       if(Bars.IsFirstBarOfSession)
       {
           Print("Calculating trading day for "+Time[0]);
            // use the current bar time to calculate the next session
           sessionIterator.GetNextSession(Time[0],true);
     
            // store the desired session information
           DateTimetradingDay=sessionIterator.ActualTradingDayExchange;
           DateTimebeginTime=sessionIterator.ActualSessionBegin;          
           DateTimeendTime=sessionIterator.ActualSessionEnd;
    
           Print(string.Format("The Current Trading Day {0} starts at {1} and ends at {2}",
    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 GMiller64, Today, 01:13 PM
            1 response
            2 views
            0 likes
            Last Post NinjaTrader_Kate  
            Started by itrader46, Today, 12:51 PM
            4 responses
            27 views
            0 likes
            Last Post itrader46  
            Started by hemlock, Today, 11:45 AM
            3 responses
            9 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Started by gbulle, Today, 11:31 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by JPPoulin, Today, 10:43 AM
            6 responses
            20 views
            0 likes
            Last Post JPPoulin  
            Working...
            X