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 WHICKED, Today, 12:56 PM
    2 responses
    15 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by Felix Reichert, Today, 02:12 PM
    0 responses
    1 view
    0 likes
    Last Post Felix Reichert  
    Started by Tim-c, Today, 02:10 PM
    0 responses
    1 view
    0 likes
    Last Post Tim-c
    by Tim-c
     
    Started by cre8able, Today, 01:16 PM
    2 responses
    9 views
    0 likes
    Last Post cre8able  
    Started by chbruno, 04-24-2024, 04:10 PM
    3 responses
    49 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X