Rate of change
ROC measures the percentage change in price over a specified period. It is calculated by ((price/prevPrice)-1)*100.
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 |
---|---|
roc | np.ndarray |