powered by
Calculates the positive volume index, uses closing price of the time period
pvi(df)
Returns a 1 x # of columns in df dataframe
Dataframe with price data
pvi(tail(SPYdaily, 200))
Run the code above in your browser using DataLab