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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    58 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    35 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    59 views
    0 likes
    Last Post PaulMohn  
    Working...
    X