Price Volume Trend (PVT)
Calculate the Price Volume Trend (PVT) for a given price series.
The Price Volume Trend is a running total of volume weighted by the period’s percentage change in price. On-Balance Volume adds or subtracts the whole volume depending on the direction of the close; the PVT adds only the share of the volume that matches the size of the move, so a small change in price moves the line only a little.
The formula is as follows:
\[\text{PVT} = \text{Previous PVT} + \frac{\text{Volume} \cdot (\text{Close} - \text{Previous Close})}{\text{Previous Close}}\] \[\text{PVT} = 0 \;\text{on the first date},\;\; \text{which has no previous close}\]The level of the PVT has no meaning by itself, since it starts at 0 on the start date; only its direction and its divergences from price matter. A rising PVT confirms an uptrend carried by volume, and a PVT that fails to follow price to a new high warns that the move lacks participation. The line is in shares, so it cannot be compared across stocks.
For more information, see the following sources:
- TA-Lib: PVT, the reference implementation (https://ta-lib.org/functions/pvt.html).
Also known as: PVT, Price and Volume Trend, Volume Price Trend.
See breadth_model.get_price_volume_trend for the references.
Price Volume Trend (PVT) in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_price_volume_trend as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(
tickers=["AAPL", "MSFT"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.technicals.get_price_volume_trend().tail(5)
Or, after setting up the Finance Toolkit MCP, ask:
How did the price volume trend of Apple and Microsoft, counted from the start of 2021, move from 24 to 31 December 2025?
Which returns:
| Date | AAPL | MSFT | Benchmark |
|---|---|---|---|
| 2025-12-24 | 6.67008e+07 | 2.02096e+07 | -9.46523e+06 |
| 2025-12-26 | 6.66686e+07 | 2.02039e+07 | -9.46945e+06 |
| 2025-12-29 | 6.66998e+07 | 2.01903e+07 | -9.69239e+06 |
| 2025-12-30 | 6.66449e+07 | 2.02012e+07 | -9.74998e+06 |
| 2025-12-31 | 6.65229e+07 | 2.00776e+07 | -1.02993e+07 |
Parameters
get_price_volume_trend accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The time period to consider for historical data. Can be “intraday”, “daily”, “weekly”, “monthly”, “quarterly” or “yearly”. Defaults to “daily”. | "weekly" |
close_column | str | The column name for closing prices in the historical data. Defaults to “Adj Close”, so that the change in price is the return including dividends. | "Close" |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the PVT. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |