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

Bar Number

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

    Bar Number

    BarsAgoNumber=HighestBar(Closes[0],15);

    The above stmt returns the highest close of the last 15 bars on index=1.
    What I am lookin for is the highest close of the last 15 bars
    beginning with bar 1 not bar 0




    #2
    Can't be done as per this thread: See here: http://www.ninjatrader.com/support/f...ght=highestbar


    Although, I might have a workaround. I will post it over there in a few minutes.



    Originally posted by dukeb View Post
    BarsAgoNumber=HighestBar(Closes[0],15);

    The above stmt returns the highest close of the last 15 bars on index=1.
    What I am lookin for is the highest close of the last 15 bars
    beginning with bar 1 not bar 0



    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by alifarahani, Today, 09:40 AM
    6 responses
    31 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Kaledus, Today, 01:29 PM
    5 responses
    14 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Waxavi, Today, 02:00 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by gentlebenthebear, Today, 01:30 AM
    3 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X