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

HighestBar with Renko bars

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

    HighestBar with Renko bars

    Hi All

    HighestBar is defined that it "returns the number of bars ago the highest price value occurred for the lookback period".

    With time and range bars this would only happen rarely but with renko bars, you can very frequently have two or more bars within the lookback period that have precisely the same 'high' value.

    Is HighestBar coded to give the first (i.e. the right-most) highest bar it finds, and if not, the last one?

    Many thanks in advance for any insight into this.

    (Renko bars are the best to use given the huge choice in Ninja, in my opinion, but you have to be oh-so careful in working with them, as can be seen in other threads to do with renko bars).

    #2
    Hello,

    Thank you for the question.

    It looks like the way that HighestBar works would be using a Greater than equation rather than a Greater than or Equal to.

    So this would mean that if you have two bars with the same value, only the first bar would be used as the second bar was not greater than the current HighestBar.

    For LookBack periods this would be going Right side of the chart to the left so in your example this would be the right most bar.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks very much, Jesse.

      That's answered my question exactly!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DanielTynera, Today, 01:14 AM
      0 responses
      2 views
      0 likes
      Last Post DanielTynera  
      Started by yertle, 04-18-2024, 08:38 AM
      9 responses
      40 views
      0 likes
      Last Post yertle
      by yertle
       
      Started by techgetgame, Yesterday, 11:42 PM
      0 responses
      10 views
      0 likes
      Last Post techgetgame  
      Started by sephichapdson, Yesterday, 11:36 PM
      0 responses
      2 views
      0 likes
      Last Post sephichapdson  
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,615 views
      0 likes
      Last Post aligator  
      Working...
      X