Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculating Average Range

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

    Calculating Average Range

    Hi,

    I was wondering if anyone tell me how to calculate the average range per bar over a certain number of bars. For example, if would like to calculate the average range of the last 50 price bars, how would I go about doing so. There is an canned indicator called "range", but it only gives you the range of individual bars.

    Thanks alot!

    #2
    Hello Balllightning,

    Thank you for your post.

    You can use the indicator ATR (Average True Range) for this purpose. You can specify the number of bars used to calculate this indicator with the Period parameter.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks alot Ryan I will give that a shot! =)

      Comment


        #4
        Hi,

        Average True Range Indicator will not do the trick for me. I want to find the average of the raw range per bar. Ie. All I want for range is the High - Low for each bar, and then an average of "n" number of bars. where "n" is defined by me.

        Thanks alot.

        Comment


          #5
          Hello Balllightning,


          If True Range doesn't work for you, you can create this with custom programming. I believe you're just looking for a simple moving average of range.

          This tutorial covers how to use custom data series and can be adapated pretty easily for Range. If you are looking for further help constructing this indicator, please use the NinjaScript section of the forums.
          Ryan M.NinjaTrader Customer Service

          Comment


            #6
            ATR Calculation

            Question: I am running a ninjascript strategy on a 3 minute chart but need the ATR value for the last 5 trading sessions... is this possible?

            Regards

            Comment


              #7
              Hello everington_f,

              Thank you for your post.

              This is possible, but would require custom programming. If you are not a programmer, any of the NinjaScript consultants listed at the following link could code this project for you: http://www.ninjatrader.com/webnew/pa...injaScript.htm
              KyleNinjaTrader Customer Service

              Comment


                #8
                I have learnt to program, but was of course wondering if the chart ATR indicator could be used. Thx anyway...

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by bortz, 11-06-2023, 08:04 AM
                47 responses
                1,609 views
                0 likes
                Last Post aligator  
                Started by jaybedreamin, Today, 05:56 PM
                0 responses
                9 views
                0 likes
                Last Post jaybedreamin  
                Started by DJ888, 04-16-2024, 06:09 PM
                6 responses
                19 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Started by Jon17, Today, 04:33 PM
                0 responses
                6 views
                0 likes
                Last Post Jon17
                by Jon17
                 
                Started by Javierw.ok, Today, 04:12 PM
                0 responses
                16 views
                0 likes
                Last Post Javierw.ok  
                Working...
                X