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 Rapine Heihei, Today, 08:19 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 08:25 PM
    0 responses
    5 views
    0 likes
    Last Post Rapine Heihei  
    Started by f.saeidi, Today, 08:01 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 07:51 PM
    0 responses
    6 views
    0 likes
    Last Post Rapine Heihei  
    Started by frslvr, 04-11-2024, 07:26 AM
    5 responses
    97 views
    1 like
    Last Post caryc123  
    Working...
    X