coppock(close, length=None, fast=None, slow=None, offset=None, **kwargs)[source]#

Coppock Curve (COPC)

Coppock Curve (originally called the “Trendex Model”) is a momentum indicator is designed for use on a monthly time scale. Although designed for monthly use, a daily calculation over the same period can be made, converting the periods to 294-day and 231-day rate of changes, and a 210-day weighted moving average.


Default Inputs:

length=10, fast=11, slow=14

SMA = Simple Moving Average MAD = Mean Absolute Deviation tp = typical_price = hlc3 = (high + low + close) / 3 mean_tp = SMA(tp, length) mad_tp = MAD(tp, length) CCI = (tp - mean_tp) / (c * mad_tp)


close (pd.Series): Series of ‘close’s length (int): WMA period. Default: 10 fast (int): Fast ROC period. Default: 11 slow (int): Slow ROC period. Default: 14 offset (int): How many periods to offset the result. Default: 0


fillna (value, optional): pd.DataFrame.fillna(value) fill_method (value, optional): Type of fill method


pd.Series: New feature generated.