Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Counter when Bar Creates new High

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

    #16
    Originally posted by NinjaTrader_PaulH View Post
    Hello TraderElegante,

    Thanks for your reply and screenshot.

    If I understand correctly, when your histogram creates a new high you want to then start counting bars when the histogram exceeds the +/- 10 % of that high?

    If that is correct, what part are you having difficulty with? What would be your specific question?
    of course it exceeds + 10% of the minimum .. the difficulty is that I cannot find the maximum with a minimum of 4 bars .. some example ewo> 0

    Comment


      #17


      sorry I'm having problems with the internet
      Last edited by TraderElegante; 10-25-2021, 06:33 AM.

      Comment


        #18
        Hello TraderElegante,

        Thanks for your reply.

        To find the maximum value you might look at using the MAX() method where you specify a look back number of bars to check and it will return the maximum value found in that lookback period.
        Reference:


        Alternatively (or in addition) you might look at HighestBar() method that will return the number of bars ago the high occurred in the lookback period
        Reference https://ninjatrader.com/support/help...highestbar.htm

        Comment


          #19
          Originally posted by NinjaTrader_PaulH View Post
          Hello TraderElegante,

          Thanks for your reply.

          To find the maximum value you might look at using the MAX() method where you specify a look back number of bars to check and it will return the maximum value found in that lookback period.
          Reference:
          https://ninjatrader.com/support/help...aximum_max.htm

          Alternatively (or in addition) you might look at HighestBar() method that will return the number of bars ago the high occurred in the lookback period
          Reference https://ninjatrader.com/support/help...highestbar.htm
          with the MAX() method I tried but it looks for the maximum in the graph .. the other method I will see if I get

          Comment


            #20
            Hello TraderElegante,

            Thanks for your reply.

            In both methods, you specify the lookback period to use.

            The difference is that MAX() returns just the value and HighestBar() returns the Bar that the high occurred on.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            577 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 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
            553 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X