Announcement

Collapse
No announcement yet.

average bar length

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

  • average bar length

    Can anybody suggest how i might plot the average bar length over 5 periods
    Thanks

  • #2
    raymillen
    Could you explain further what you mean by "average bar length"
    Alex

    Comment


    • #3
      Possibly using the Average True Range indicator will solve your issue. It was developed by Welles Wilder I believe, and depending on the instrument you're trading, should give you an accurate picture for recent volatility.

      Typically, the setting is for 14 periods, but I've been using 9 periods of ATR as an additional indicator for recognizing breakouts and risk assessment.

      Comment


      • #4
        Hi Alex

        Im trying to plot the average length / range of a bar.
        ie the simple average of the high minus the low over say five periods, as a measue of volatility or marker noise if you prefer.
        The ATR gets involved with closing prices and this confuses the issue on very small time frames, mainly used for electronic traded futures. i have this as easylanguage code but am new to esignal and would appreciate any efs assistance.

        TTFN

        Comment


        • #5
          Originally posted by Alexis C. Montenegro
          raymillen
          Could you explain further what you mean by "average bar length"
          Alex
          Hi Alex

          Im trying to plot the average length / range of a bar.
          ie the simple average of the high minus the low over say five periods, as a measue of volatility or marker noise if you prefer.
          The ATR gets involved with closing prices and this confuses the issue on very small time frames, mainly used for electronic traded futures. i have this as easylanguage code but am new to esignal and would appreciate any efs assistance.

          TTFN

          Comment


          • #6
            this will plot the avg of the last 5 highs and lows
            Attached Files

            Comment


            • #7
              Originally posted by dloomis
              this will plot the avg of the last 5 highs and lows
              Hi David
              Many thanks its obviously easy when you know how.
              Ta Ta and a happy new year

              Comment

              Working...
              X