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 TradeForge, 04-19-2024, 02:09 AM
    2 responses
    28 views
    0 likes
    Last Post TradeForge  
    Started by aprilfool, 12-03-2022, 03:01 PM
    3 responses
    327 views
    0 likes
    Last Post NinjaTrader_Adrian  
    Started by giulyko00, Today, 12:03 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by f.saeidi, Today, 12:14 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by AnnBarnes, Today, 12:17 PM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Working...
    X