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

Min/max

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

    Min/max

    LowValuePast=MIN(Lows[0],30)[1];


    This will return
    1) The lowest bar value
    2) On index 0 (my current chart)
    3) It will go 30 bars back
    4) Beginning 1 bar ago (It will ignore the current bar)
    If I changed this value to 5 it would ignore bar 0-4 and begin the search on bar 5.
    This would mean it will go back 30 - 5 bars back or 25 bars or will it begin to
    count 30 bars back from 5 bars ago?

    Do I have this right ??
    Thank you..



    #2
    Hello dukeb,

    It will begin 5 bars ago and then go back 30 additional bars, so it will basically check 35 to 5 bars ago for the lowest value.

    Let us know if we can be of further assistance.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by oviejo, Today, 12:28 AM
    0 responses
    1 view
    0 likes
    Last Post oviejo
    by oviejo
     
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    125 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Yesterday, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Yesterday, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Working...
    X