Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to read a session template?

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

    How to read a session template?

    I'm trying to read the start and end times of weekly sessions.
    Its in Bars.Session.SessionsOfDay[x].BeginTime.
    I'm able to read it in debuger but in NT script it gives me an error.

    Baruch

    #2
    Is this what you're trying to do?

    Comment


      #3
      No I want the whole template Sun 1700-Mon 1600; Mon 1700- Tue 1600.....

      Comment


        #4
        Baruch,

        What is the error in the debugger you are getting?
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Adam,
          I'm able to read it in debuger but in NT script it gives me an error.
          I show my quote again, to show you that your question was wrong.
          I don't have any problem in debugger, I see the values there. The problem is when I put the same line in NT script and try to compile. The error is:
          'NinjaTrader.Data.SessionOfDay' does not contain a definition for 'BeginTime' and no extension method 'BeginTime' accepting a first argument of type 'NinjaTrader.Data.SessionOfDay' could be found (are you missing a using directive or an assembly reference?)

          Comment


            #6
            Baruch,

            Without your code it would be hard to determine, however this Bars.Session.SessionsOfDay[x] isn't supported code so it could be that its being called in an area where it wouldn't exist.

            I would suggest using this : http://www.ninjatrader.com/support/h...xtbeginend.htm
            Adam P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            649 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            370 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            573 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            576 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X