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

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 RaddiFX, Today, 10:15 AM
            2 responses
            14 views
            0 likes
            Last Post RaddiFX
            by RaddiFX
             
            Started by patrickmlee007, Today, 09:33 AM
            2 responses
            17 views
            0 likes
            Last Post patrickmlee007  
            Started by magnatauren, 08-15-2020, 02:12 PM
            5 responses
            206 views
            0 likes
            Last Post RaddiFX
            by RaddiFX
             
            Started by rene69851, 05-02-2024, 03:25 PM
            1 response
            22 views
            0 likes
            Last Post rene69851  
            Started by ETFVoyageur, Yesterday, 07:05 PM
            5 responses
            45 views
            0 likes
            Last Post ETFVoyageur  
            Working...
            X