Announcement

Collapse
No announcement yet.

calculating average volume

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

  • calculating average volume

    i want to compare daily volume to an average vol...e.g. (30day volume)
    i will use the result to create a 'colored bar' in a separate study window.( i can already do this part)

    challenge is getting the current volume and the volume(30).
    thanks for any help.
    'peterl

  • #2
    Re: calculating average volume

    peter
    To calculate the average of volume just use one of moving average functions and pass to it the volume() series as the source eg
    sma(30,volume())
    For the description and syntax of the moving average functions together with examples of their use see this article in the EFS KnowledgeBase
    Also try searching the forum for keywords such as volume AND average and you should find several examples of scripts that calculate the average of Volume as this topic has been covered at length before
    Alex


    Originally posted by peterjerome
    i want to compare daily volume to an average vol...e.g. (30day volume)
    i will use the result to create a 'colored bar' in a separate study window.( i can already do this part)

    challenge is getting the current volume and the volume(30).
    thanks for any help.
    'peterl

    Comment


    • #3
      thanks again alex. that's exactly what i was looking for.
      peter

      Comment


      • #4
        peter
        You are most welcome
        Alex


        Originally posted by peterjerome
        thanks again alex. that's exactly what i was looking for.
        peter

        Comment

        Working...
        X