Calculates the positive volume index, uses closing price of the time period
pvi(df)
df
Dataframe with price data
Returns a 1 x # of columns in df dataframe
pvi(tail(SPYdaily, 200))