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 CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    27 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    27 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    31 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    30 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X