Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting high and low of first n bars of session

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

    Getting high and low of first n bars of session

    Hello

    I am trying to get the high and the low of first n bars of session. Code is attached. I have run with different number of bars and every time first bar of session is excluded. How can I fix it?

    Thans in advance
    Attached Files

    #2
    Hello Impeesa,

    I took a look at the code you used and I am not completely clear on what you are seeing. Are you saying that the logic is executed on every bar except the first bar of the session? If you are otherwise trying to include more data, for example 1 more bar to include a farther back range you could add 1 to Bars.BarsSinceNewTradingDay. Bars.BarsSinceNewTradingDay + 1.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

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