Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Report max value over indicator data series

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

    Report max value over indicator data series

    I'm trying to create an indicator which calls for the max absolute value of another indicator over the past x amount of bars. For example, suppose I'm using CCI and want to get the max abs value over the past 500 bars. I want to get the highest CCI reading over the past 500 bars and the min CCI reading over the past 500 bars. Then take the ABS of the min reading and determine the max value of those two readings.
    Where I am stuck is how to determine the max or min over the 500 bars of the indicator. Can someone give me some direction?
    Thanks

    #2
    Hello Tdschulz,

    This is available with custom programming in NinjaScript. There are built in methods MAX() and MIN() that do this.

    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    69 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    42 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    24 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    27 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    54 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X