Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

On using MAX

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

    On using MAX

    The help guide on using MAX is the following:
    MAX(IDataSeries inputData, int period)[int barsAgo]

    My question is on the [int barsAgo] if barsAgo is not 0. I use barsAgo =15 as an example;

    MAX(High, 40)[15],
    i should get the highest high for the bars between 54 and 15, NOT highest high for most recent 40 bars. In other wors, the period is started at barsAgo and is counted further into the past by 'period' amount.
    Is this understaning correct?

    #2
    You got it binwang2.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NM_eFe, 04-30-2024, 06:14 AM
    5 responses
    30 views
    0 likes
    Last Post NM_eFe
    by NM_eFe
     
    Started by Jonker, 04-27-2024, 01:19 PM
    2 responses
    20 views
    0 likes
    Last Post Jonker
    by Jonker
     
    Started by Max Baxter, 03-07-2019, 09:20 PM
    8 responses
    266 views
    0 likes
    Last Post Ymcapital  
    Started by Felix Reichert, 04-26-2024, 02:12 PM
    9 responses
    53 views
    0 likes
    Last Post Felix Reichert  
    Started by AaronKoRn, 04-27-2024, 09:49 PM
    3 responses
    31 views
    0 likes
    Last Post AaronKoRn  
    Working...
    X