ROC
Type:
roc
• Category:indicators
Description
Rate of Change
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
dataExp | string | List of prices | no | |
timeperiod | number | no | 10 |
Help
ROC (Rate of Change)
Description
The ROC (Rate of Change) indicator is a momentum indicator used in financial markets to measure the percentage change in price over a specified period of time. It helps traders and analysts identify the speed and direction of price movements.
What does this worker do?
This worker calculates the Rate of Change (ROC) for a given list of prices over a specified time period. The ROC is calculated as the difference between the current price and the price a certain number of periods ago, divided by the price a certain number of periods ago, then multiplied by 100 to get a percentage.
How to interpret the results
The ROC indicator can be interpreted in several ways:
- A positive ROC indicates an upward price movement, while a negative ROC indicates a downward price movement.
- A rising ROC indicates increasing momentum, while a falling ROC indicates decreasing momentum.
- When the ROC crosses above or below a zero line, it can be a buy or sell signal, respectively.
Parameters
The following parameters can be passed to the ROC worker:
Parameters Schema (JSON)
{
"dataExp": {
"type": "string",
"description": "List of prices"
},
"timeperiod": {
"type": "number",
"default": 10
}
}
Detailed Parameters
- dataExp:
- Type:
string
- Description: A list of prices. This should be a string representation of an array of numbers, where each number represents a price at a specific point in time.
- Type:
- timeperiod:
- Type:
number
- Default:
10
- Description: The number of periods to use for the ROC calculation. This determines how far back in time to compare the current price with. A higher value means the ROC will be less sensitive to recent price movements.
- Type:
By adjusting the timeperiod
parameter, you can customize the sensitivity of the ROC indicator to suit your analysis needs.