Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Highest high and lowest low

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

    Highest high and lowest low

    Colleagues,
    I'm looking for an indicator which will show me the highest high and lowest low of n days.
    Any ideas, please?
    I would appreciate your help.

    #2
    Hello waldymar,
    Thanks for posting today.

    This can be done using a daily chart and the MAX and MIN indicators.
    • From a daily chart
    • Right mouse click and Indicators...
    • Double mouse click to add the MAX and MIN indicators on the list to the left
    • Set the Period to how many days you want to look back for the MAX and MIN indicator
    • Left mouse click OK to apply both these indicators.


    The MAX indicator will show you the highest high in the look back period and the MIN will show you the lowest low in the the look back period.

    Please let us know if we may be of further assistance for anything NinjaTrader.
    Alex G.NinjaTrader Customer Service

    Comment


      #3
      thank you for your quick reply.
      what I can see is that indicators min or max draw a line based on close price and not high/low. how can adjust it to high/low?

      Comment


        #4
        Hello waldymar,
        Thanks for the reply.

        You can change how this is calculated by adjusting what values these are based on and creating your own indicator.
        • From the Control Center>Tools>Edit NinjaScript>Indicators>MAX ( or MIN)
        • Right mouse click and Save As... rename the indicator to create the custom indicator.
        • Adapt the code under the protected override void OnBarUpdate()
        • This code uses the Input[0] change this to the High[0] (or Low[0]) within the OnBarUpdate()
        • This will change the code to calculate the max (or min) on the close instead of the input.
        • Right mouse click and select Compile
        • This custom indicator will now appear in your list of default indicator and can be added to a chart


        Please let us know if we may be of further assistance for anything NinjaTrader.
        Alex G.NinjaTrader Customer Service

        Comment


          #5
          Hi Alex,
          thank you for your comprehensive instructions. Even me, a non-programmer, was able to create my 1st indicator in NT.
          appreciate your help a lot!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Today, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Today, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          21 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          10 views
          0 likes
          Last Post cre8able  
          Working...
          X