Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Low price of n candles on x timeframe

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

    Low price of n candles on x timeframe

    Hello,

    Is there a simple method that I can use to calculate the Low Price for a n number of candles on a x timeframe?

    Example:

    What is the low of the previous 5 (n) candles on a 60 (x) minute timeframe?

    Thanks

    #2
    To illustrate:

    I tried to combine LowestBar() with BarArray[x] and Low() .. But I'm not really sure on how to combine them

    Comment


      #3
      This is what I try.. but I don't know how to finish it:

      Low(LowestBar(5))

      Meaning, I want to get the lowprice of the lowestbar of the last five 1-minute candles.

      Comment


        #4
        siroki,

        I am happy to assist you.

        For more information on LowestBar(), please see the following link : http://www.ninjatrader.com/support/h...?lowestbar.htm

        For more information on BarsArray, please see the following link :


        Essentially, you want to use LowestBar(BarsArray[0],5) I believe.

        Please let me know if I may assist further.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by siroki View Post
          This is what I try.. but I don't know how to finish it:

          Low(LowestBar(5))

          Meaning, I want to get the lowprice of the lowestbar of the last five 1-minute candles.
          Code:
          double desiredLow = Low[LowestBar(Low, 5)];
          or

          Code:
          double desiredLow = MIN(Low, 5)[0];

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          570 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          548 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X