Calculate the Pivot Points for a given price series.

Pivot Points are calculated from the previous period’s high, low and close prices and are used to identify potential support and resistance levels for the current period.

The formula is as follows:

\[\text{Pivot Point} = (\text{Previous High} + \text{Previous Low} + \text{Previous Close}) / 3\] \[\text{Resistance}\; 1 = (2 \cdot \text{Pivot Point}) - \text{Previous Low}\] \[\text{Support}\; 1 = (2 \cdot \text{Pivot Point}) - \text{Previous High}\] \[\text{Resistance}\; 2 = \text{Pivot Point} + (\text{Previous High} - \text{Previous Low})\] \[\text{Support}\; 2 = \text{Pivot Point} - (\text{Previous High} - \text{Previous Low})\] \[\text{Resistance}\; 3 = \text{Previous High} + 2 \cdot (\text{Pivot Point} - \text{Previous Low})\] \[\text{Support}\; 3 = \text{Previous Low} - 2 \cdot (\text{Previous High} - \text{Pivot Point})\]

Also known as: pivot points, floor trader pivots.

Pivot Points in Python or via the MCP

Install the Finance Toolkit with:

pip install financetoolkit -U

Then call get_pivot_points as shown below.

from financetoolkit import Toolkit

toolkit = Toolkit(
    tickers=["EURUSD"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

pivot_points = toolkit.technicals.get_pivot_points().xs("EURUSD", level=1, axis="columns")

pivot_points.loc[:, ["Pivot Point", "Resistance 1", "Resistance 2", "Support 1", "Support 2"]].tail(5)

Or, after setting up the Finance Toolkit MCP, ask:

What were the daily pivot point and the first two support and resistance levels of the euro against the dollar from 26 to 31 December 2025?

Which returns:

Date Pivot Point Resistance 1 Resistance 2 Support 1 Support 2
2025-12-26 1.18 1.1809 1.1817 1.1792 1.1783
2025-12-28 1.1806 1.182 1.1841 1.1785 1.1771
2025-12-29 1.1806 1.1814 1.1827 1.1793 1.1785
2025-12-30 1.1797 1.1819 1.1837 1.1779 1.1757
2025-12-31 1.1709 1.1723 1.1746 1.1686 1.1672

Parameters

get_pivot_points accepts the following parameters.

ParameterTypeDescriptionExample
periodstrThe time period to consider for historical data. Can be “intraday”, “daily”, “weekly”, “monthly”, “quarterly” or “yearly”. Defaults to “daily”."weekly"
close_columnstrThe column name for closing prices in the historical data. Defaults to “Adj Close”, in which case the open, high and low prices are adjusted for dividends in the same way."Close"
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise).2
growthboolWhether to calculate the growth of the Pivot Points. Defaults to False.True
lagint | list[int]The lag to use for the growth calculation. Defaults to 1.4
standardizeboolWhether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.True
Share