• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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,
      https://ninjatrader.com/support/help...?lowestbar.htm

      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 pjsmith, 04-14-2018, 06:14 AM
        3 responses
        480 views
        0 likes
        Last Post NinjaTrader_EricB  
        Started by losfer, Today, 05:29 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_EricB  
        Started by otislauwaert, Today, 04:36 AM
        0 responses
        6 views
        0 likes
        Last Post otislauwaert  
        Started by Tiang, Yesterday, 11:33 PM
        0 responses
        5 views
        0 likes
        Last Post Tiang
        by Tiang
         
        Started by MakesTrades23, Yesterday, 07:51 PM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_AlanP  
        Working...
        X