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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        102 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        144 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X