Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Session Problems : FirstBarOfSession isn't

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

    Session Problems : FirstBarOfSession isn't

    Hello

    I'm using a custom session for Forex. From 6am to 6am next day.

    Bars.SessionBreak gives true at Midnight
    Bars.FirstBarOfSession gives true at Midnight

    Bars.BarsSinceSession gives 0 at 6:15 as it should !


    so right now i'm using (Bars.BarsSinceSession == 0) to replace FirstBarOfSession.

    #2
    It would be important to understand the session template's timezone and the PC clock's timezone. Can you please inform us of both?

    Also, Bars.SessionBreak should never be used. It is a deprecated property.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      It would be important to understand the session template's timezone and the PC clock's timezone. Can you please inform us of both?

      Also, Bars.SessionBreak should never be used. It is a deprecated property.


      ...............

      My timezone GMT+1
      Session timezone GMT+1

      Comment


        #4
        Just tried and it is working as expected. Please find attached indicator used in the screenshot which highlights the Bars.FirstBarOfSession. It is on the correct session open.

        Please ensure you are on NT7B22 for this.
        Attached Files
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        597 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 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
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        555 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X