Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BeginTime EndTime timezone ?

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

    #16
    Tried to access Bars.Session. SessionsOfDay[] properties, but I did not get anything. Tried <BeginTime> and <BeginTimeExchange>.

    Is there any way to access the active session template?

    Agree with gomi that BeginTimeLocal does not make sense, as it varies with daylight saving rules.

    Comment


      #17
      Harry,

      This information has been changed several beta versions ago. You will want to use Bars.Session.GetNextBeginEnd() now. The Help Guide docs do not currently reflect this.
      Josh P.NinjaTrader Customer Service

      Comment


        #18
        Yeah nearly went to go and blow my head off after this discussion...

        Well anyway there's a new method, that strangely uses a time as parameter . I use
        Bars.Session.GetNextBeginEnd(time0, out BeginTime, out EndTime);

        Comment


          #19
          Hi Josh,

          thank you for your quick answer. As far as I understand this is a method that returns SessionBegin and SessionEnd, I assume in local time?

          What I want to access is the information stored in the active session template as defined by the chart, such as DayOfWeek of the first day, for which a session is defined, and begin and end of this session as stored in the session template.


          Originally posted by NinjaTrader_Josh View Post
          Harry,

          This information has been changed several beta versions ago. You will want to use Bars.Session.GetNextBeginEnd() now. The Help Guide docs do not currently reflect this.

          Comment


            #20
            Harry,

            Unfortunately that information is not accessible.
            Josh P.NinjaTrader Customer Service

            Comment


              #21
              Renko chart bug

              Just tested whether sessions were correctly displayed on different types of charts. It works quite well. Also Bars.FirstBarOfSession works for all types of charts including the most exotic ones, but with one exception:

              It does not work on Renko charts.

              There is no particular reason that it should not work for Renko charts, as the bars and the sessions are correctly displayed on the chart. Maybe somebody can solve the mystery. As far as I noticed, only the very first session bar on a chart was recognized by Bars.FirstBarOfSession, all other ones were ignored.

              Comment


                #22
                Harry,

                Thanks for the report. We will look into it.
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Leeroy_Jenkins, Today, 03:45 AM
                0 responses
                2 views
                0 likes
                Last Post Leeroy_Jenkins  
                Started by Realsmooth3, Yesterday, 09:10 PM
                1 response
                11 views
                0 likes
                Last Post NinjaTrader_Marco  
                Started by wooofad, 06-15-2020, 01:08 PM
                8 responses
                94 views
                0 likes
                Last Post echoxray  
                Started by bubblegum, Today, 12:00 AM
                0 responses
                2 views
                0 likes
                Last Post bubblegum  
                Started by ctrent, Yesterday, 09:58 PM
                0 responses
                5 views
                0 likes
                Last Post ctrent
                by ctrent
                 
                Working...
                X