Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MAX and MIN indicators

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

    MAX and MIN indicators

    Hello,
    I have a question about the MAX and MIN indicator in NinjaTrader. I understand that this indicator finds the maximum and minimum values of other indicators over a specified number of bars. However, I'm wondering if you could point me to some resources that explain how to find the bar index of the maximum or minimum value.
    Additionally, I'm curious about how to access multiple maximum values in order of their occurrence. For example, if there are multiple equal, maximum values, how can I access the first, second, third, and so on values as they occurred over time?
    Thank you for your assistance!




    #2
    Hello MSerag,

    Thank you for your post.

    Based on what you have described, it sounds like you could use HighestBar() or LowestBar() to get the barsAgo value for when the highest or lowest value occurred within the specified period:To find multiple maximum/lowest values, you could likely use Most and/or Least Recent Occurrence. You could create a condition that checks for the specific high or low value that is found and find different instances of when the price/indicator equaled that high or low value:Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    656 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    373 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X