Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SessionBreak doesn't work on second charts

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

    SessionBreak doesn't work on second charts

    If I print each sessionbreak on a minute or volume chart, I get :
    09/11/2009 15:31:00
    10/11/2009 15:31:00
    11/11/2009 15:31:00
    12/11/2009 15:31:00

    But if I use a 30 second chart I only get
    09/11/2009 15:30:30

    It works on volume charts.

    #2
    What is the closing session time? What is the code snippet you are using? Thank you.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      instrument : ES
      I use default session settings

      Code :
      Code:
       
      protected override void OnBarUpdate()
      {
      // Use this method for calculating your indicator values. Assign a value to each
      // plot below by replacing 'Close[0]' with your own formula.
      if (Bars.SessionBreak)
      Print(Time[0]);
      }

      Comment


        #4
        I can reproduce on a 30secs chart of ES. We'll look into. Thanks for reporting.

        Comment


          #5
          Hi gomifromparis !

          This bug is fixed and the resolution will be available with the next update of NinjaTrader.

          Kind regards,
          Christian
          ChristianSenior Software Developer

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          599 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          344 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          558 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          557 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X