Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Finding the high of last 25 bars

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

    Finding the high of last 25 bars

    Hello,
    Is there is to write a code that helps me to identify the lowest level of price out of the last 25 bars traded? I looked at the manual and one of the code that I found was High[25] but that seems to give me the low of the bar 25 bars ago not the lowest level of price thorough out the last 25 bars. Is there a way to find out such lowest level level of price over a number of bars?

    Greatly appreciate your help in advance.

    #2
    Originally posted by pandyav View Post
    Hello,
    Is there is to write a code that helps me to identify the lowest level of price out of the last 25 bars traded? I looked at the manual and one of the code that I found was High[25] but that seems to give me the low of the bar 25 bars ago not the lowest level of price thorough out the last 25 bars. Is there a way to find out such lowest level level of price over a number of bars?

    Greatly appreciate your help in advance.
    MIN() and MAX(), or HighestBar() and LowestBar().

    They are all described in the NT Help. Take a look at the alphabetical reference.

    ref: http://www.ninjatrader.com/support/h..._reference.htm
    Last edited by koganam; 09-24-2014, 05:57 PM.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    72 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X