Announcement

Collapse
No announcement yet.

Positive volume index with moving average

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

  • Positive volume index with moving average

    Dear Sirs

    Can you please help me with the positive volume indicator with a moving average user defined input of i.e 21, 15 etc,

    One also need to be able to plot it intraday.

    The formula is :
    If (V>ref(V,-1)) then
    PVI=I+(((C - ref(C,-1)) / ref(C,-1)))
    If (V<=ref(V,-1)) then
    PVI=I

    Where :
    C = Today's closing price
    ref(C,-1) = Yesterdays closing price
    I = Yesterday's positive volume index
    PVI = Today's positive volume index
    ref(V,-1) = Yesterday's volume


    Then to plot a moving average of the Poitive volume indicator so that you have two lines, one of the PVI and the other the moving avrage

    Thank you very much
Working...
X