Coppock Curve
Calculate the Coppock Curve for a given price series.
The Coppock Curve is a long-term momentum indicator that Edwin Coppock designed for monthly closes of a stock index, to time buying after a bear market (Coppock, 1962, “Practical Relative Strength Charting”, Trendex Research Group, first presented in Barron’s). He took the 11 and 14 months from the time an Episcopal bishop told him mourning takes, as the time investors need to get over a loss.
The formula is as follows:
\[\text{Coppock Curve} = \operatorname{WMA}(\operatorname{ROC}(\text{Close},\; \text{long\_roc\_window}) + \operatorname{ROC}(\text{Close},\; \text{short\_roc\_window}),\; \text{wma\_window})\] \[\operatorname{ROC}(\text{Close},\; n) = \frac{\operatorname{Close}(t)}{\operatorname{Close}(t - n)} - 1\]with WMA the linearly Weighted Moving Average, so the defaults give WMA10(ROC14 + ROC11). The windows count periods of the chosen period: the curve as Coppock defined it is period=”monthly”, the default “daily” applies the same windows to days, as the other technical indicators do. The classic signal is the curve turning up while below zero; Coppock did not use it for sell signals. The Rates of Change are decimals, so the curve is a weighted sum of decimal returns (0.30 where charting platforms show 30).
For more information, see the following sources:
- TA-Lib: COPPOCK, the reference implementation (https://ta-lib.org/functions/coppock.html).
Also known as: Coppock Indicator, Coppock Guide.
Coppock Curve in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_coppock_curve as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(
tickers=["^GSPC"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2016-01-01",
end_date="2025-12-31",
)
toolkit.technicals.get_coppock_curve(period="monthly").tail(5)
Or, after setting up the Finance Toolkit MCP, ask:
How did the monthly Coppock curve of the S&P 500 move from August to December 2025?
Which returns:
| Date | ^GSPC | Benchmark |
|---|---|---|
| 2025-08 | 0.3174 | 0.3475 |
| 2025-09 | 0.3183 | 0.3481 |
| 2025-10 | 0.3173 | 0.3469 |
| 2025-11 | 0.3228 | 0.3521 |
| 2025-12 | 0.3274 | 0.357 |
Parameters
get_coppock_curve 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”. | "Close" |
long_roc_window | int | Number of periods of the longer Rate of Change. Defaults to 14. | 14 |
short_roc_window | int | Number of periods of the shorter Rate of Change. Defaults to 11. | 11 |
wma_window | int | Number of periods of the Weighted Moving Average of the summed Rates of Change. Defaults to 10. | 10 |
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 Coppock Curve. 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 |