Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 CortexZenUSA, Today, 12:53 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by usazencortex, Today, 12:43 AM
        0 responses
        5 views
        0 likes
        Last Post usazencortex  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        168 responses
        2,265 views
        0 likes
        Last Post sidlercom80  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        12 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X