Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars since last low

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

    Bars since last low

    Ninjascript returns 0 for LowestBar(Low, 20) if it is a new low today. My question is:
    1. Is there a way not to include current bar here?
    2. Is there another way to find how many bars passed
    since the last low if it made a new low in the current bar?

    #2
    Welcome to our forums - not sure I follow you, this will be determined by your CalculateOnBarClose setting, if on false then current building bar would be included.

    You would need custom logic to determine your second count, I'm unfortunately not aware of a method here.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    161 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    309 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    349 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X