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.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Unsuitable, Today, 07:26 PM
    0 responses
    1 view
    0 likes
    Last Post Unsuitable  
    Started by jvanelli, Today, 06:36 PM
    1 response
    6 views
    0 likes
    Last Post jeronymite  
    Started by twitch251, Today, 05:14 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by robforee2, Today, 05:07 PM
    0 responses
    4 views
    0 likes
    Last Post robforee2  
    Started by blar58, Today, 03:16 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Melissa  
    Working...
    X