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 samish18, 04-17-2024, 08:57 AM
                16 responses
                55 views
                0 likes
                Last Post samish18  
                Started by arvidvanstaey, Today, 02:19 PM
                3 responses
                9 views
                0 likes
                Last Post NinjaTrader_Zachary  
                Started by jordanq2, Today, 03:10 PM
                2 responses
                8 views
                0 likes
                Last Post jordanq2  
                Started by traderqz, Today, 12:06 AM
                10 responses
                18 views
                0 likes
                Last Post traderqz  
                Started by algospoke, 04-17-2024, 06:40 PM
                5 responses
                47 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Working...
                X