Rate of change Percentage
ROCP calculates the percentage change in price between two periods. It is calulated as (price-prevPrice)/prevPrice.
Method
Inputs
Parameter | Argument type | Description | Default Value |
---|---|---|---|
source | pd.Series | Input data series | - |
timeperiod | int | Number of periods for the indicator | 10 |
Outputs
Output | Type |
---|---|
rocp | np.ndarray |