Rate of change ratio
ROCR measures the ratio of the current price to the price at a previous period. It is calculated as (price/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 |
---|---|
rocr | np.ndarray |