Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Use of Highest and Lowest Bar Condition and Action

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

    Use of Highest and Lowest Bar Condition and Action

    I wanted to enter a trade that included the condition such that the trading strategy would take action when the highest bar in the last 20 periods was identified. I am attempting to automate John Carter's HOLP and LOHP set up.

    set up description http://thedogwoodreport.blogspot.com...-and-lohp.html
    Last edited by Ironplates; 01-17-2013, 10:33 AM.

    #2
    Hello Ironplates,
    You can use the MIN, MAX function to find out the highetst high and the lowest lows for the last 20 bars.

    A sample code will be like:
    Code:
    double highestHigh = MAX(High, 20)[1];

    JoydeepNinjaTrader Customer Service

    Comment


      #3
      how does the highest bar lowest bar work?

      Comment


        #4
        Hello Ironplates,
        To clarify further are your trying to find the cdes for the Max, Min indicators. If so then please follow the below steps to see it:
        • In Control Center menu bar goto Tools>Edit NinjaScript>Indicator
        • From the indicators dialog select MAX and click the Ok button.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          I clearly understood the information you provided on the MIN MAX condition and thank you as this helped tremendously!

          I was also aiming to get a better understanding of the Highestbar and Lowestbar condition as well so I might be able to apply such a condition as I found appropriate.

          Comment


            #6
            Originally posted by Ironplates View Post
            I clearly understood the information you provided on the MIN MAX condition and thank you as this helped tremendously!

            I was also aiming to get a better understanding of the Highestbar and Lowestbar condition as well so I might be able to apply such a condition as I found appropriate.
            They identify the actual bar that has the condition.

            Comment

            Latest Posts

            Collapse

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