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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            68 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            37 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            61 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            53 views
            0 likes
            Last Post CarlTrading  
            Working...
            X