Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Range of bar which has lowest low

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

    Range of bar which has lowest low

    Hi All,

    How to call on the range of the bar that has the lowest low in in the last 10 bars ?
    So, if bar index [2] shows it has the lowest low - how to I return that bar's range ?

    Easy return the lowest low of the last X bars, but now trying to acess other properties of that bar.. such as the high[x] to get my range.....


    Thanks
    AK

    #2
    Originally posted by akvevo View Post
    Hi All,

    How to call on the range of the bar that has the lowest low in in the last 10 bars ?
    So, if bar index [2] shows it has the lowest low - how to I return that bar's range ?

    Easy return the lowest low of the last X bars, but now trying to acess other properties of that bar.. such as the high[x] to get my range.....


    Thanks
    AK
    You imply that you already know how to get the index of the bar with the lowest low. Once you have the index, finding the range of the bar just requires you to subtract the low from the high of that very bar. No? Am I missing something here?

    Comment


      #3
      Hello akvevo,

      Thank you for your note.

      As koganam mentioned, you would use the following to get the bar index of the lowest bar,


      Once you had that information, you could then pass that to say High[ <BarIndexOfLowest Low > -Low[<BarIndexOfLowest Low > ] which would give you the range of that bar.

      Please let us know if you need further assistance.
      Alan P.NinjaTrader Customer Service

      Comment


        #4
        Thank you both,

        Thats exactly what I was after.
        I know how to get the lower prices in the last X bars, but didnt know how to extract the index of this bar, looks like LowestBar() should do the trick

        Thanks
        A

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X