Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculate actual high or low of bar

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

    Calculate actual high or low of bar

    I want to Calculate actual high or low (like Renko chart type) in indicator.Can you provide some code.

    Thank you

    #2
    Hello yeshujbp,

    The high or low of the bar would be the High[0] or Low[0] returned from the bar series.

    Below are public links to the help guide.
    https://ninjatrader.com/support/help...en-us/high.htm
    https://ninjatrader.com/support/help.../en-us/low.htm

    Are you wanting to ignore the bar information and collect ticks and find the highest high or lowest low reached while the bar was open?

    You could add a 1 tick series with AddDataSeries(), update a highest high variable and lowest low variable on the added series, and then reset the variables when the primary series closes.
    The AdvanceDecline indicator does something similar.
    https://ninjatraderecosystem.com/use...vance-decline/


    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi
      Thank reply

      I want to draw a line on actual high (on green bar) or low( on red bar) like this file.so what is actual high or low point in bar
      Click image for larger version

Name:	Capture2.PNG
Views:	306
Size:	25.6 KB
ID:	1051739

      Comment


        #4
        Hello yeshujbp,

        The high of the current bar is High[0].

        The low of the current bar is Low[0].

        Below are links to the help guide.

        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        648 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X