pvr#

API documentation for pandas_ta.volume.pvr Python function.

pvr(close, volume)[source]#

Price Volume Rank

The Price Volume Rank was developed by Anthony J. Macek and is described in his article in the June, 1994 issue of Technical Analysis of Stocks & Commodities Magazine. It was developed as a simple indicator that could be calculated even without a computer. The basic interpretation is to buy when the PV Rank is below 2.5 and sell when it is above 2.5.

Sources:

https://www.fmlabs.com/reference/default.htm?url=PVrank.htm

Calculation:

return 1 if ‘close change’ >= 0 and ‘volume change’ >= 0 return 2 if ‘close change’ >= 0 and ‘volume change’ < 0 return 3 if ‘close change’ < 0 and ‘volume change’ >= 0 return 4 if ‘close change’ < 0 and ‘volume change’ < 0

Args:

close (pd.Series): Series of ‘close’s volume (pd.Series): Series of ‘volume’s

Returns:

pd.Series: New feature generated.