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 Haiasi, 04-25-2024, 06:53 PM
        2 responses
        16 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        5 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,786 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,407 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X