Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Highest bar from certain period

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

    Highest bar from certain period

    Hi,
    This is my first post on this forum and I'm relatively new so this might be a stupid question....
    I want to find the Highest bar in a certain period, say in the period from bar[5] to bar[20].
    How can I get this value in the best way. Because standard I get the Highest bar from "bars ago" (from the newest bar [0]) and that is not what I want.

    Thanks in advance.
    Anne

    #2
    Originally posted by trail View Post
    Hi,
    This is my first post on this forum and I'm relatively new so this might be a stupid question....
    I want to find the Highest bar in a certain period, say in the period from bar[5] to bar[20].
    How can I get this value in the best way. Because standard I get the Highest bar from "bars ago" (from the newest bar [0]) and that is not what I want.

    Thanks in advance.
    Anne
    Use the MAX() class. ref: http://www.ninjatrader.com/support/h...aximum_max.htm

    Comment


      #3
      Thanks for your quick answer, koganam. I will try to work it out with the MAX class.
      Should I use a BarsArray in it? (To be clear: I don't need bars of another timeframe.)
      I hoped there would be a more simple way to do this. (For instance, just like in MS Excel when using formula's you can specify the place in a string.)

      Comment


        #4
        The MAX class was usefull. This gave me the right answer:
        MAX(High,15)[5])

        Thanks again,
        Anne

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,404 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        95 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        159 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        8 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X